-i - ignore errors
-c - continue
-t - use video title as file name
--extract-audio - extract audio track
| import requests | |
| import time | |
| import json | |
| token = '' | |
| #Delete files older than this: | |
| ts_to = int(time.time()) - 30 * 24 * 60 * 60 | |
| def list_files(): |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| require 'net/http' | |
| require 'json' | |
| require 'uri' | |
| @token = '' | |
| def list_files | |
| ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
| params = { | |
| token: @token, |
| #!/usr/bin/env python2 | |
| import SimpleHTTPServer | |
| import SocketServer | |
| import logging | |
| PORT = 8000 | |
| class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): |
| ####################################################################### | |
| # Automated Dev Environment Installation for APTrustDPN on Ubuntu 14.04 | |
| # Author: Jean M. Lescure | |
| # | |
| # To use: | |
| # *download to home folder | |
| # chmod 777 init.sh | |
| # ./init.sh | |
| ####################################################################### | |
| echo -e "\E[0;36m--> 1. Installing rabbitmq ...\E[0m" |
| Byobu Commands | |
| ============== | |
| byobu Screen manager | |
| Level 0 Commands (Quick Start) | |
| ------------------------------ | |
| <F2> Create a new window |
#Mac OS X
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"