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
# | |
# Example of a user's .screenrc file | |
# | |
# This is how one can set a reattach password: | |
# password ODSJQf.4IJN7E # "1234" | |
# no annoying audible bell, please | |
vbell on |
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
"Set Mapleader | |
let mapleader = "," | |
let g:mapleader = "," | |
"Theme | |
colo zenburn | |
"NERDTree | |
map <Leader>, :NERDTreeToggle<cr> |
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
# sqlitetojson.awk | |
# convert SQL SELECT Result from sqlite to json | |
# usage : sqlite3 -header dbfilename 'SELECT * FROM database' | awk -f sqlitetojson.awk | |
# nota : -header is mandatory | |
BEGIN { | |
FS="|"; | |
nh = 0; | |
printf "["; | |
} | |
NR==1 { |
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
#!/bin/sh | |
# btsync service | |
# Replace with linux users you want to run BTSync clients for | |
BTSYNC_USERS="mendel" | |
DAEMON=/usr/bin/btsync | |
start() { | |
for btsuser in $BTSYNC_USERS; do | |
HOMEDIR=`getent passwd $btsuser | cut -d: -f6` | |
config=$HOMEDIR/.sync/config.json |
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
#!/bin/bash | |
HOSTNAME=`hostname` | |
SERVER="SRVHOST" | |
USERNAME="USER" | |
export RSYNC_PASSWORD="password" | |
PREFIX="/backup" | |
AREXCLUDE=( "/dev/*" "/proc/*" "/sys/*" "tmp/*" "/run/*" "/mnt/*" "/media/*" "lost+found" "/usr/share/*" "/lib/*" "/var/lib/*" "/usr/lib/*" "/var/swap" "/var/cache/*" "/var/lock/*" "/var/run/*") | |
START=$(date +%s) | |
DAYNUM=`date '+%u'` |
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
#!/bin/bash -l | |
GIT_REPO=/opt/git/blog.git | |
TMP_GIT_CLONE=/tmp/awesomeblog | |
PUBLIC_WWW=/usr/share/nginx/www/jekyll/ | |
git clone $GIT_REPO $TMP_GIT_CLONE | |
jekyll build -s $TMP_GIT_CLONE -d $PUBLIC_WWW | |
rm -Rf $TMP_GIT_CLONE | |
exit |
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
# git-shell-commands | |
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
------------------------------------------------------------------------------ | |
-- | |
-- Copyright © 2016 Le TisseurDeToile <[email protected]> and released under | |
-- the GNU General Public License, v2 or later. | |
-- NOTA : don't forget to create variable | |
-- | |
-- Installation : | |
-- Créer les variables Utilisateurs suivantes : CONSO_LAST, CONSO_LAST_HC, CONSO_LAST_HP | |
-- Créer deux capteur virtuel : Capteur electrique ent noter leur index | |
------------------------------------------------------------------------------ |
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
git config --global user.name yourName | |
git config --global user.email [email protected] | |
git config --global color.diff always | |
git config --global color.diff.frag magenta bold | |
git config --global color.diff.meta yellow bold | |
git config --global color.diff.whitespace red reverse | |
git config --global core.whitespace '-trailing' | |
git config --global diff.mnemonicPrefix true | |
git config --global diff.renames true |
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
#!/bin/bash | |
# fetch file ending with the alphet letter | |
# with curl pretending to firefox 3 on windows xp | |
# | |
for x in {a..z} | |
do | |
echo "http://www.website.com/letter_$x.pdf" | |
curl -silent -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3" --remote-name http://www.website.com/letter_$x.pdf | |
done |
OlderNewer