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
function cal() { | |
var total = 0; | |
for(var i=1; i<=16; i++) { | |
total += i*2; | |
total += 27; | |
} | |
return total - 25*16; | |
} |
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
cp configServer.json config.json | |
rm -rf node_modules | |
npm install | |
#npm test | |
if forever list | grep 'wsmanager' ; then | |
forever stop wsmanager | |
fi | |
forever start --append --uid wsmanager app.js | |
#forever list | grep 'wsmanager' |
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 -L 3333:github.com:9418 user@sshServer -N | |
#forward the local port 3333 to the git protocole | |
#example: git clone git://localhost:3333/epayet/... |
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
_ Interface graphique | |
_ Pool d'imprimantes | |
_ Capable de donner son temps d'impression | |
_ Serveur | |
_ 3 communications | |
_ Annuler | |
_ Ajouter | |
_ Get infos | |
_ Communication (TCP/socket) |
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
#Setup | |
git clone http://github.com/epayet/Ecampue.git | |
sudo apt-get install python2.7 python-pip | |
sudo pip install pytz icalendar mechanize | |
#peut-être beautifulsoup4 | |
#Run : | |
cd Ecampue | |
sudo python main.py /var/www | |
#sudo si besoin d'écriture dans le dossier choisi |
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
sudo setfacl -d -Rm o::rwx /media/data/ | |
#don't forget to add acl to fstab |
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 filter-branch --index-filter "git rm -rf --cached --ignore-unmatch angular-app/.idea/" --prune-empty -- --all | |
git push origin master --force |
NewerOlder