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
<!-- 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
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
<?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
# 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 |
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
# List cron tasks for user www-data | |
sudo crontab -u www-data -l | |
# Edit cron tasks for user www-data | |
sudo crontab -u www-data -e | |
# Backup current user crontab | |
crontab -l > cron-backup.txt | |
# Restore current user crontab | |
crontab cron-backup.txt |
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
# Install | |
sudo pip install supervisor | |
# Copy / Edit /etc/supervisord.conf | |
# http://www.onurguzel.com/supervisord-restarting-and-reloading/ | |
# STOP | |
supervisorctl -c /etc/supervisord.conf stop thruway // all | |
# RESTART | |
supervisorctl -c /etc/supervisord.conf restart all |
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
# Query Google Cache | |
http://webcache.googleusercontent.com/search?q=cache:<your url without "http://"> |
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
# List installed packages for current user | |
npm list | |
# List globally installed packages | |
npm list -g | |
# List details about a package | |
npm list PACKAGE_NAME | |
# Show outdated packages | |
npm outdated -g | |
https://www.npmjs.com/package/npm-check | |
https://www.npmjs.com/package/npm-check-updates |
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
# PIP | |
# install package | |
pip install package | |
# install from git repository | |
pip install git+git://github.com/gvalkov/tailon.git |