This file contains hidden or 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
| #!/bin/env python3 | |
| # Trying to automate android backups but fed up with bash :( | |
| # TODO: Nicer mode selection? | |
| import os | |
| import subprocess | |
| import sys | |
| SD_DIR = "sdcard1" |
This file contains hidden or 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
| #!/bin/sh | |
| # -n for dry run, --del to delete at dest | |
| # --info and --no-i-r just for showing progress | |
| rsync -avh --del /home/jx --info=progress2 --no-i-r --stats \ | |
| --exclude .local/share/Trash --exclude .cache \ | |
| '/media/jx/Toshiba 2TB/ubuntu_backup_latest' 2> rsync.err |
This file contains hidden or 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
| # requires xq with --raw output support (https://github.com/boyska/xq fork) | |
| xq -r '//item/enclosure/@url' Podcast.ashx | wget -i - |
This file contains hidden or 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
| -- Just add this to the end of the control.lua file in the save file and then replay the file | |
| script.on_nth_tick(1800, function(event) | |
| game.take_screenshot{ | |
| surface = game.surfaces[1], | |
| position = {0,0}, | |
| resolution = {3840,2160}, | |
| zoom = 0.2, | |
| path = "timelapse/" .. string.format("%06d", event.tick/event.nth_tick) .. ".jpg", | |
| quality = 95, |
This file contains hidden or 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
| *://www.tutorialspoint.com/* | |
| *://www.geeksforgeeks.org/* | |
| *://www.w3schools.com/* | |
| *://www.programiz.com/* | |
| *://www.techonthenet.com/* | |
| *://fresh2refresh.com/* | |
| *://www.quora.com/* | |
| *://www.researchgate.net/* | |
| *://www.w3resource.com/* | |
| *://www.improgrammer.net/* |
This file contains hidden or 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
| \[FormalA] | |
| \[FormalB] | |
| \[FormalC] | |
| \[FormalD] | |
| \[FormalE] | |
| \[FormalF] | |
| \[FormalG] | |
| \[FormalH] | |
| \[FormalI] | |
| \[FormalJ] |
This file contains hidden or 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
| #!/bin/bash | |
| # See full range of terminal colors | |
| for C in {0..255}; do | |
| tput setab $C | |
| printf "%4d" "$C" | |
| if ((C%16 == 15)); then echo; fi | |
| done | |
| tput sgr0 |
This file contains hidden or 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
| echo "$1" | tr '\!-~' 'P-~\!-O' |
This file contains hidden or 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
| #!/bin/sh -e | |
| # | |
| # rc.local | |
| # | |
| # This script is executed at the end of each multiuser runlevel. | |
| # Make sure that the script will "exit 0" on success or any other | |
| # value on error. | |
| # | |
| # In order to enable or disable this script just change the execution | |
| # bits. |