This file contains hidden or 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
package main | |
import "fmt" | |
// fibonacci retourne une fonction (closure) qui génère les nombres de la suite de Fibonacci. | |
func fibonacci() func() int { | |
a := 0 | |
b := 1 | |
return func() int { | |
current := a |
This file contains hidden or 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 | |
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/apache2 | |
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php | |
apt-get -yqq update | |
apt-get -yqq dist-upgrade | |
apt-get -y install htop vim byobu zsh wget curl pwgen git ssh tcpdump mtr | |
curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bash | |
apt-get install -y powerline fonts-powerline |
This file contains hidden or 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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCY4GISSDVm4LyE9X9LTZ6aLYzm2Af998ko5ZaF2H9WsZWDkD1uPXzxlZolXMtct4+yL4R/8zRYI4cnEB3IUSNX9oUwuGOvxyceAtqNG/mSY9BdvTY30btif9Wzj2KcYITpk26SlcFsnXNDTyK9N5olPrprpAnTGijCRUg2N4mdVDMCzEgGVLEou7YIy5Y7iWzfyEg8bcTWlhraPRs1wRDAh9vdtYTx2zTahHVYLB2jrj2iVNGdu5SCqdbgE/Xc9cHl5qx3zPxY6WCN6KdgXiW9xeHfJwJcJaT89KAyMnozuQEi+NXH15VUt4SHiHzdbq3tAdXoK0PbEc369L/nTWPd vignemail1 |
This file contains hidden or 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
PAGER="cat" | |
if which kubectl-neat &> /dev/null ; | |
then | |
PAGER="kubectl-neat" | |
fi | |
MAJ_MIN="" | |
if which jq &> /dev/null ; | |
then | |
MAJ_MIN=$(kubectl version --client=false -o json | jq -r '.serverVersion|().major + "." + .minor)') |