|
Mémo des astuces d'utilisation de ces outils.
TODO :
find . -name '*.xml' -ls -exec sh -c "sed -e 's,> ,\n> ,g' {} | grep -c algorithme" \;
yum list
mktemp truc.XXX
- Virer les doublons dans firefox :
mail.server.default.dup_action 1
- TmpWatch, LogWatch, mailx (commande mail)
lsof -i | grep http ; netstat -netalup ; ss -a
- strace:
$ strace -o /tmp/aaa -f -r trace=network -s 4096 {CMD}
- disassemble :
# apt-get install x86dis
$ x86dis -e 0 -s intel -f a.out
# apt-get install pax-utils
$ dumpelf a.out
$ apt-cache show radare
- pdftk: cf scripts (
pdftk cvNicolasRoche.pdf burst )
- voir les mémoires flash:
lsscsi -c
- ping via netbios:
nmblookup -A {IP}
- renommer tous les fichiers d'un répertoire en minuscule:
rename 'y/A-Z/a-z/' *
- reprepro
# mkdir -p /var/www/repos/apt/debian
$ gpg --gen-key
# apt-get install dpkg-sig
$ gpg --armor --export nroche@narval.tk --output nroche@narval.tk.gpg.key > nroche@narval.tk.gpg.key
$ dpkg-sig --sign builder mediatex.deb
$ mkdir conf
$ cat > conf/distributions <<EOF
Origin: apt.narval.tk
Label: apt repository
Codename: lenny
Architectures: i386 source
Components: main
Description: Narval debian package repo
SignWith: yes
Pull: lenny
EOF
# apt-get install reprepro
$ reprepro --ask-passphrase -Vb . includedeb squeeze mediatex.deb
cat > /etc/apt/sources.list <<EOF
deb http://localhost/repos/apt/debian squeeze main
EOF
$ wget -O - http://localhost/repos/apt/debian/nroche@narval.tk.gpg.key | apt-key add -
# apt-get install mediatex
- serveur bash:
nc -l -p 12345 -k -c 'xargs -n1 echo'
- extraction audio:
avconv -i YouTube.mp4 -acodec libmp3lame -ar 44100 -ac 2 -ab 192k son.mp3
|
|