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
# I n i t i a l i s a t i o n ------------------------------------------ | |
[ -z "$PS1" ] && return # si il ne s'agit pas d'un shell interactif, ne rien faire | |
[ $EUID -ne 0 ] && clr="36m" || clr="31m" # couleur du prompt (bleu = user normal, rouge = root) | |
# E x p o r t s --------------------------------------------------------- | |
export PAGER=less # pager par défaut | |
export EDITOR=vim # editeur par défaut | |
export HISTSIZE=10000 # nombre de commandes enregistrées dans history | |
export HISTFILESIZE=${HISTSIZE} # idem | |
export HISTCONTROL=ignoreboth # ignore les doublons et les lignes vides dans history |
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
GCC=gcc | |
RM=rm | |
SRC=$(wildcard *.c) | |
OBJ=$(SRC:.c=.o) | |
FLAGS= | |
EXEC=main | |
all : $(EXEC) |
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
# Pour avoir un screen qui ne demande pas de confirmation lorsque l'on veut fermer une fenetre avec kill, il faut le compiler nous-même ! | |
# 1) Télécharger le code source sur git | |
# 2) installer autoconf et libncurses5-dev | |
# 3) Commenter les lignes 1329 à 1337 de process.c (correspond au test "Really want to kill ... [y/n]") | |
# 4) faire aclocal && autoheader && automake && autoconf && ./configure && make | |
# 5) installer notre nouvelle version de screen avec mv ./screen /usr/bin | |
startup_message off | |
autodetach on | |
defscrollback 1024 |
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
set history=700 | |
set ruler | |
set magic | |
set lazyredraw | |
" Search stuff | |
set incsearch | |
set hlsearch | |
set ignorecase | |
set smartcase |
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
# tout rejeter (par défaut) | |
iptables -P INPUT DROP | |
iptables -P FORWARD DROP | |
iptables -P OUTPUT DROP | |
# accepter les paquets de la boucle locale | |
iptables -t filter -A INPUT -s 127.0.0.1 -i lo -j ACCEPT | |
iptables -t filter -A OUTPUT -s 127.0.0.1 -j ACCEPT | |
# autoriser les connections déjà établies |
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
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |