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
ssh root@dest tcpdump -U -s0 -w - 'tcp port 389' | wireshark -k -i - |
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
python -m SimpleHTTPServer 80 |
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
awk '(NR%20==0)' data.txt | |
NF The number of fields in the current input record. | |
NR The total number of input records seen so far. |
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
d = {'site1': {'servername': 'test.org', 'serveralias': 'www.test.org'}} | |
for key, value in d.iteritems(): | |
print key | |
print value['servername'] |
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
Private key : openssl genrsa -out ssl.key 1024 | |
Certificate : openssl req -new -x509 -days 3650 -key ssl.key -out ssl.crt | |
Verification : openssl x509 -in ssl.crt -text -noout |
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
find -name 'IMG*.JPG' | while read PIC; do DATE=$(exiftool -p '$DateTimeOriginal' $PIC | | |
sed 's/[: ]//g'); touch - t $(echo $DATE | sed 's/\(..$\)/\.\1/') $PIC;echo "Date:" $DATE "- " $PIC; mv -i $PIC $(dirname $PIC)/`date +%Y%m%d_%T`_$DATE.jpg; done | |
Renommer : | |
exit2 -t *.jpg | |
exiv2 -r Description_%Y%m%d_%H%M%S *.jpg | |
Ajouter copyright | |
exiftool -copyright="John Doe" *.jpg |
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
/etc/apt/apt.conf.d/50tmp | |
APT | |
{ | |
ExtractTemplates | |
{ | |
TempDir "/var/tmp"; | |
}; | |
}; |
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
Host * | |
ForwardAgent yes | |
# With Windows DC as DNS --> no | |
GSSAPIAuthentication no | |
AddressFamily inet | |
IdentityFile ~/.ssh/id_rsa | |
SendEnv LANG LC_* | |
HashKnownHosts yes | |
GSSAPIDelegateCredentials no | |
EscapeChar ~ |
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
defaults write com.apple.screencapture location /Full/Path/To/Folder |
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
In /etc/apt/apt.conf | |
APT::Install-Recommends "0"; |
OlderNewer