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
for group in $(grep user1 /etc/group | cut -d':' -f1 | sed '/user1/d'); do adduser user2 $group; done |
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
; | |
; BIND reverse data file for reverse 2001:0bc8:dead::/48 | |
; | |
@ IN SOA dns1.domain.fr. webmaster.domain.fr. ( | |
2013112022 ; Serial | |
1h ; Refresh | |
30m ; Retry | |
1w ; Expire | |
1d ) ; Negative Cache TTL | |
; |
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
file = /var/log/squid3/access.log | |
pattern = "TCP_DENIED" | |
mailto = xxx | |
template = /etc/log2mail/mail |
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
<?php | |
/* Geolocalization part. */ | |
$bannedCountry = array(); | |
$bannedCountry['Love Lab'] = array('FR', 'BE'); // BE pour tester ;) | |
$visitorCountry = geoip_country_code_by_name($_SERVER['REMOTE_ADDR']); | |
$post = get_post(); | |
$postTitle = $post->post_title; | |
foreach($bannedCountry as $animeTitle => $bannedCountryCode) { | |
if($animeTitle == $postTitle) { |
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
Je fais partie des gens qui « piratent » puis achètent et je reste toujours incompréhensif devant ces gens et ces entreprises (comme @Wakanim) qui n'arrêtent pas de râler à propos du téléchargement illégal. | |
Selon moi, que vous le vouliez ou non, il n'y a rien à faire pour le « piratage ». | |
Exemple, je suis allé voir en août 2012 (sorti en juillet) au cinéma <a href="http://www.allocine.fr/film/fichefilm_gen_cfilm=206736.html">Les Enfants Loups</a> et j'ai adoré, du coup voici ce qui que j'ai fait : | |
— Tiens, je le reverrais bien en Blu-ray, quand est-ce qu'il sort en France ? Quoi ? En Juin 2013 ? Are you fucking kidding me? | |
— Bon quand est-ce qu'il sort au Japon (vosta) ? Février 2013. | |
— Ok donc en France on doit attendre 10 mois pour acheter le Blu-ray et 6 mois au Japon (déjà trop !). | |
— Février 2013 : Let's download it! (vosta) |
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
--- evomaintenance.old 2013-08-09 16:46:33.677096878 +0200 | |
+++ evomaintenance.sh 2013-08-09 16:47:53.656405527 +0200 | |
@@ -44,6 +44,13 @@ | |
echo "To cancel, [Ctrl+C] else press [Enter]" | |
read enter | |
+# GIT part. Commit all modifications for /etc. | |
+if [ -d /etc/.git ]; then | |
+ cd /etc/ | |
+ git add . |
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
avconv -f x11grab -r 5 -s 800x641 -i :0.0+1060,69 -vcodec libvpx -pre libvpx-720p output.webm |
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
tail -n100 /var/log/squid3/access.log | grep -oE 'http.*' | cut -d ' ' -f1 | sort | uniq |
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
# SRC Server | |
mysql mysql -e "select * from user WHERE USER='user1' OR USER='user2' INTO OUTFILE '/tmp/mysql_user';" | |
mysql mysql -e "select * from db WHERE USER='user1' OR USER='user2' INTO OUTFILE '/tmp/mysql_db';" | |
# DST Server | |
scp server:/tmp/mysql_{db,user} /tmp | |
chmod 664 /tmp/mysql_{db,user} | |
mysql mysql -e "LOAD DATA INFILE '/tmp/mysql_user' INTO TABLE user;" | |
mysql mysql -e "LOAD DATA INFILE '/tmp/mysql_db' INTO TABLE db;" |
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 | |
regex="([A-Za-zéôçèÉÊ-]+) ([A-Za-zéôçèÉÊ-]+) <([a-zA-Z]){1}[a-z-]+\.([a-z]+)" | |
regex2="<(.*)>" | |
lastuidNumber=3075 | |
while read line; do | |
[[ $line =~ $regex ]] | |
# Get name | |
lastName=${BASH_REMATCH[1]} | |
firstName=${BASH_REMATCH[2]} |