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
/*! | |
* angular-loading-bar v0.7.1 | |
* https://chieffancypants.github.io/angular-loading-bar | |
* Copyright (c) 2015 Wes Cruver | |
* License: MIT | |
*/ | |
/* | |
* angular-loading-bar | |
* | |
* intercepts XHR requests and creates a loading bar. |
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
GULP | |
http://paislee.io/a-healthy-gulp-setup-for-angularjs-projects/ | |
https://github.com/paislee/healthy-gulp-angular/blob/master/gulpfile.js | |
https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md | |
https://github.com/gulpjs/gulp | |
http://www.alsacreations.com/tuto/lire/1685-ebauche-de-workflow-gulp-taches-uncss-includes-critical-css.html | |
https://www.npmjs.com/package/gulp-html-replace | |
https://github.com/jonkemp/gulp-useref | |
https://github.com/nlundquist/gulp-replace-build-block/blob/master/readme.md |
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
<? | |
ini_set('display_errors', 1); | |
ini_set('error_reporting', E_ALL); | |
/* permet d'aficher le contenu d'une page au fur et à mesure ... très bon pour le dev ou quand on veut suivre un process */ | |
header( 'Content-Encoding: none; ' );//disable apache compressed | |
@ini_set('zlib.output_compression', 0); | |
@ini_set('implicit_flush', 1); | |
ob_implicit_flush(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
Traduction (PoEdit) | |
1. Créer la liste des fichiers contenant des chaînes à traduire : | |
find -name *.php > fichiersatraduire.txt | |
2. Créer le fichier .pot contenant toutes les chaînes à traduire trouvées dans les fichiers contenu dans fichiersatraduire.txt | |
xgettext -f fichiersatraduire.txt -o wine-trip.pot --from-code utf-8 | |
3. Dans PoEdit : |
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
Lien : http://doc.ubuntu-fr.org/pure-ftp | |
Installer un serveur ftp : | |
sudo apt-get install pure-ftpd | |
sudo groupadd ftpgroup | |
sudo useradd -g ftpgroup --system winetrip | |
cd /etc/pure-ftpd/conf/ | |
sudo cp NoAnonymous LimitRecursion | |
nano LimitRecursion |
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
curl "http://www.website-to-visit.com" | |
-H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" | |
-H "User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36" | |
-H "Host:www.google.de" | |
--compressed | |
--proxy PROXY_IP_ADDRESS:PROXY_IP_PORT | |
-u/U PROXY_USERNAME:PROXY_PASSWORD | |
--proxy-anyauth | |
--proxy-digest | |
--proxy-ntlm |
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
<!-- HTML meta refresh URL redirection after 2 seconds --> | |
<meta http-equiv="refresh" content="2; url=http://website-to-redirect-to.com"> | |
<!-- custom SKYPE anchor tags --> | |
<a href="skype:user123?userinfo">link to user123 skype's profile </a> | |
<a href="skype:user123?add">add user123 as a Skype contact</a> | |
<a href="skype:user123?call">call user123 using Skype</a> | |
<a href="skype:user123?chat">chat with user123 using Skype</a> |
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
<?php | |
// IN SAME REPO AS THIS FILE | |
// YOU SHOULD HAVE my_database_dump.sql FILE | |
// ADD AT TOP OF THIS FILE | |
// use my_database_name; | |
echo "Your database is being restored.......<br>"; | |
system("cat my_database_dump.sql | mysql --host=localhost_or_other --user=my_db_username --password=my_db_password my_database_name"); |
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
Trouver les doublons dans une table : | |
SELECT app_id, ville_cp FROM appellation_zone GROUP BY app_id, ville_cp HAVING COUNT(*) > 1; | |
Puis créer un index Unique avec les 2 colonnes pour que ça ne se reproduise pas ! | |
Réindexer une table (si l'on veut les id commencent à 1 ou que l'on veut des id qui se suivent sans 'trous') | |
# 1. Copier table | |
# 2. Supprimer clé primaire auto incrément | |
ALTER TABLE test DROP COLUMN id) |
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
# AUTH LOGIN | |
# PREPARE YOUR USERNAME / PASSWORD Base64 encoded (@ must be escaped : \@) | |
$ perl -MMIME::Base64 -e 'print encode_base64("YOUR_USERNAME")' | |
YOUR_ENCODED_USERNAME | |
$ perl -MMIME::Base64 -e 'print encode_base64("YOUR_PASSWORD")' | |
YOUR_ENCODED_PASSWORD | |
# AUTH PLAIN | |
$ perl -MMIME::Base64 -e 'print encode_base64("\0YOUR_USERNAME\0YOUR_PASSWORD")' | |
YOUR_ENCODED_USERNAME_PASSWORD |
OlderNewer