Skip to content

Instantly share code, notes, and snippets.

@xsenechal
xsenechal / install_git.sh
Created Oct 30, 2020 — forked from fraserxu/install_git.sh
setup nodenv on ubuntu
View install_git.sh
#!/bin/bash
set -ex
sudo apt-get update
sudo apt-get install -y git
View clean.sh
# remove all docker containers, images, ...
du -hs ~/Library/Containers/com.docker.docker
docker system prune -a
# empty download folder
rm -rf ~/Downloads/*
# empty maven files
rm -rf ~/.m2/repository/* ~/.m2/wrapper/*
View xamppvm.sh
######### Install xampvm ###################
# https://www.apachefriends.org/download.html
######### Ajout d'un vhost ###################
1. Se connecter en "SSH" adans la VM.
2. Dans le fichier /opt/lampp/etc/httpd.conf, décommenter la ligne
Include etc/extra/httpd-vhosts.conf
3. dans le fichier /opt/lampp/etc/extra/httpd-vhosts.conf, ajoute les lignes suivantes
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]