Skip to content

Instantly share code, notes, and snippets.

View vignemail1's full-sized avatar

vignemail1 vignemail1

View GitHub Profile
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
#!/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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCY4GISSDVm4LyE9X9LTZ6aLYzm2Af998ko5ZaF2H9WsZWDkD1uPXzxlZolXMtct4+yL4R/8zRYI4cnEB3IUSNX9oUwuGOvxyceAtqNG/mSY9BdvTY30btif9Wzj2KcYITpk26SlcFsnXNDTyK9N5olPrprpAnTGijCRUg2N4mdVDMCzEgGVLEou7YIy5Y7iWzfyEg8bcTWlhraPRs1wRDAh9vdtYTx2zTahHVYLB2jrj2iVNGdu5SCqdbgE/Xc9cHl5qx3zPxY6WCN6KdgXiW9xeHfJwJcJaT89KAyMnozuQEi+NXH15VUt4SHiHzdbq3tAdXoK0PbEc369L/nTWPd vignemail1
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)')