This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assert [] != null | |
assert [] instanceof ArrayList | |
assert ![] | |
assert [1, 2] | |
assert [1, 2] + [3, 4] == [1, 2, 3, 4] | |
assert [1, 2] != [2, 1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
sudo apt-get update | |
sudo apt-get install -y git |