Use at your own risk! As with any backup method, test out your backup by restoring from it before you trust it.
-
Install
qrcodeto generate the QR code:pip install qrcode -
Export the key, piping the output to
qr, and save this to a png file:
| #!/bin/sh | |
| # Based on instructions found here: http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat#FFMpegInstallationonCentOSandRedHat-InstallX264 | |
| if [ "`/usr/bin/whoami`" != "root" ]; then | |
| echo "You need to execute this script as root." | |
| exit 1 | |
| fi | |
| cat > /etc/yum.repos.d/centos.repo<<EOF |
| <?php | |
| /* | |
| Backup script for trakt.tv (API v2). | |
| */ | |
| // create a Trakt app to get a client API key: http://docs.trakt.apiary.io/#introduction/create-an-app | |
| $apikey = "CLIENT_API_KEY"; | |
| $username = "YOUR_USERNAME"; |
| # Heavily depends on: | |
| # libqrencode (fukuchi.org/works/qrencode/) | |
| # paperkey (jabberwocky.com/software/paperkey/) | |
| # zbar (zbar.sourceforge.net) | |
| # Producing the QR codes: | |
| # Split over 4 codes to ensure the data per image is not too large. | |
| gpg --export-secret-key KEYIDGOESHERE | paperkey --output-type raw | base64 > temp | |
| split temp -n 4 IMG | |
| for f in IMG*; do cat $f | qrencode -o $f.png; done |
| git clean -xfd | |
| git submodule foreach --recursive git clean -xfd | |
| git reset --hard | |
| git submodule foreach --recursive git reset --hard | |
| git submodule update --init --recursive |
| #!/bin/sh | |
| # | |
| # CloudFlare Dynamic DNS | |
| # | |
| # Updates CloudFlare records with the current public IP address | |
| # | |
| # Takes the same basic arguments as A/CNAME updates in the CloudFlare v4 API | |
| # https://www.cloudflare.com/docs/client-api.html#s5.2 | |
| # | |
| # Use with cron jobs etc. |
| <!-- | |
| Rastgele TC Kimlik No Üreticisi | |
| Random Turkish Identification Number Generator | |
| https: //github.com/CanerBasaran | |
| --> | |
| <html><p id="tc"></p> | |
| <script type="text/javascript"> | |
| var tcno = "" + Math.floor(900000001 * Math.random() + 1e8), | |
| list = tcno.split("").map(function(t) { | |
| return parseInt(t, 10) |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| #!/bin/bash | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ### Step 1. Make sure you have a local copy of all "old repo" | |
| ### branches and tags. |
| #!/bin/bash | |
| id="$1" | |
| host="http://vidble.com/album/" | |
| mkdir "$id" | |
| wget -nv -O - "$host$id" |grep -e "<img src='" |grep -Eo '/[^" ]+(jpg|jpeg|JPG|GIF|gif|PNG|png)' |sed -e 's/_med//' -e 's@^@http://vidble.com@' > $id/links.txt | |
| sed -i '/logo/d' $id/links.txt | |
| wget -i $id/links.txt -P $id |