Skip to content

Instantly share code, notes, and snippets.

View egarciam's full-sized avatar

Ernesto Garcia egarciam

View GitHub Profile
@egarciam
egarciam / kind-multus-test.log
Created July 4, 2024 08:35 — forked from s1061123/kind-multus-test.log
Kind with Multus log
## Create 3-node environment config
[tohayash@tohayash-lab tmp]$ cat << EOF > config-3node.yml
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
nodes:
- role: control-plane
- role: worker
- role: worker
# Note: uncomment if you install cni plugin by yourself
#networking:
@egarciam
egarciam / sample-tmc-deployment.yaml
Created February 20, 2023 13:38 — forked from pichuang/sample-tmc-deployment.yaml
Tanzu Mission Control Agent Deployment
apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: extension-manager
tmc-extension: "true"
controller-tools.k8s.io: "1.0"
name: vmware-system-tmc
---
apiVersion: v1
@egarciam
egarciam / ciSeedJob.groovy
Created May 4, 2022 14:49 — forked from marcelbirkner/ciSeedJob.groovy
Jenkins Job DSL Seed Job for Continuous Integration Jobs
import groovy.sql.Sql
import java.util.Date
import java.text.SimpleDateFormat
/*
* THIS IS AN EXAMPLE SNIPPET. FOR MORE DETAILS SEE THE FOLLOWING BLOG ARTICLE:
* https://blog.codecentric.de/en/?p=30502
*
* This Jenkins Job DSL Groovy Script creates Continuous Integration (CI) Jobs
* for all Maven & Ant projects that exist on a GitLab Server.
@egarciam
egarciam / promises.md
Created January 25, 2020 16:13 — forked from domenic/promises.md
You're Missing the Point of Promises

This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
 // the rest of your code goes here.
@egarciam
egarciam / Artefactos de test en Java
Last active June 4, 2020 07:11 — forked from aslakknutsen/console.log
Configure Surefire to scan specific Dependencies for Test classes to include in the test run.Allows us to create reusable test jars without having to unpacking the jar content to disk and setting up testClassesDirectory configurationhttp://jira.codehaus.org/browse/SUREFIRE-569
[INFO]
[INFO] --- maven-surefire-plugin:2.14-SNAPSHOT:test (tck-tests) @ arquillian-jbossas-remote-6 ---
[INFO] Surefire report directory: /home/aslak/dev/source/testing/arquillian-container-jbossas/jbossas-remote-6/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.arquillian.tck.container.cdi_1_0.CDIBeanLookupWarTestCase
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.866 sec
Running org.arquillian.tck.container.servlet_2_5.MultipleWebContextLookupMultiWarTestCase
@egarciam
egarciam / README.md
Created June 12, 2019 18:52 — forked from christiangalsterer/README.md
Atlassian Jira: Number of issues in a Jira Query Language (JQL) search

Description

A Dashing widget to display the number of issues returned by a Jira Query Language (JQL) search. The number of issues will be displayed using the Numbers widget. This widget is a generalized version of the Atlassian Jira: Number of issues in a Jira filter query widget, which shows the number of issues for saved Jira filter.

Dependencies

The following dependencies are required. Please add them to your dashing gemfile.

gem 'jira-ruby', :require => 'jira'
@egarciam
egarciam / certs.md
Last active August 21, 2020 06:45 — forked from kyledrake/gist:d7457a46a03d7408da31
Creating a self-signed SSL certificate, and then verifying it on another Linux machine

Generate cert and key

openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365

or

openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
pushd /usr/local/bin >/dev/null && \
curl -s -L $(curl -L -s "https://api.github.com/repos/openshift/origin/releases/latest"|python -c "import sys, json;x=json.load(sys.stdin);print([ r['browser_download_url'] for r in x['assets'] if 'openshift-origin-client-tools' in r['name'] and 'linux-64bit' in r['name']][0])") -o /tmp/oc.tgz && \
tar xz -f/tmp/oc.tgz --wildcards "*/oc" --strip-components=1 && \
popd >/dev/null
@egarciam
egarciam / reup
Last active May 26, 2019 20:27 — forked from chmouel/reup
#!/bin/bash
PATH=$PATH:/usr/local/bin
set -ex
#DOMAIN=openshift3.egarciam.com
DOMAIN=188.166.83.218
VERSION=3.10.0
OC_VERSION=oc-v${VERSION}
INSTALLPATH=/etc/origin