Skip to content

Instantly share code, notes, and snippets.

xsenechal

Block or report user

Report or block xsenechal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Deis_workflow_minikube
# http://kubernetes.io/docs/getting-started-guides/minikube/
# install kubectl
curl -Lo kubectl http://storage.googleapis.com/kubernetes-release/release/v1.3.0/bin/darwin/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
# install minikube
# https://github.com/kubernetes/minikube/releases
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.9.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
View Vagrant_deis_workflow.sh
mkdir deisv2 && cd deisv2
# install deis cli
curl -sSL http://deis.io/deis-cli/install-v2.sh | bash
cp deis ~/bin/deisv2
ln -fs ~/bin/deisv2 /usr/local/bin/deis
# install helmc (kubernetes package manager)
curl -s https://get.helm.sh | bash
cp helmc ~/bin/helmc
@xsenechal
xsenechal / parseWadl.groovy
Last active Sep 8, 2015
Application wadl to CSV
View parseWadl.groovy
def parser = new XmlParser()
def result = parser.parseText("<?xml ...</application>")
def lst = []
def url = "/rest"
def url2
def url3
def httpMethod
def javaMethod
def responseType
@xsenechal
xsenechal / gist:1792c51a0ba3c2c3123a
Last active Aug 29, 2015
Jenkins continuous deploy for nodejs
View gist:1792c51a0ba3c2c3123a
#install NodeJS plugin, then in the global settings, create a NodeJS install
#in the job config check the box "Provide Node & npm bin/ folder to PATH"
export http_proxy="http://user:pwd@domain:8080"
export https_proxy="http://user:pwd@domain:8080"
echo $path
node --version
bower --version
npm install
@xsenechal
xsenechal / linux.sh
Last active Jan 18, 2019
Linux stuff
View linux.sh
#keyboard layout
dpkg-reconfigure keyboard-configuration
#change user password
sudo passwd user
#install xorg & dwm (a dynamic window manager for Xorg)
wget http://dwm.suckless.org/ **tar.gz
tar -xvf *.tar.gz
View GroovyCollection.groovy
assert [] != null
assert [] instanceof ArrayList
assert ![]
assert [1, 2]
assert [1, 2] + [3, 4] == [1, 2, 3, 4]
assert [1, 2] != [2, 1]
You can’t perform that action at this time.