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
### Keybase proof | |
I hereby claim: | |
* I am eldonmcguinness on github. | |
* I am eldonmcguinness (https://keybase.io/eldonmcguinness) on keybase. | |
* I have a public key ASBWBwMsv0MZRhwMxx0t7D340FhllyAn6PkgaxWxq31DKwo | |
To claim this, I am signing this object: |
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
In System Settings -> Notifications -> Screen Saver -> Screen Locked, add the following command. | |
/bin/sleep 3 && /usr/bin/xset dpms force standby |
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
#!/bin/bash | |
FILE=$(basename "$1" .epub) | |
if [ -e "${FILE}.mobi" ]; then | |
echo nothing to do | |
else | |
echo converting | |
ebook-convert "${FILE}.epub" "${FILE}.mobi" | |
fi |
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
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
Token for proof: | |
[Verifying my OpenPGP key: openpgp4fpr:473be7a8a6255fef1a8ccf27302f0e72ccb6f5ff] |
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
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
function strip(str) { | |
return str.replace(/^\s+|\s+$/g, ''); | |
} | |
var json = {}; | |
var productArray = Array(); |
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
#!/bin/bash | |
SOURCE= | |
DEST= | |
RSA_KEY= | |
usage() { | |
cat << EOF | |
usage: $0 options |
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
#!/usr/bin/python2.7 | |
import sys, getopt, itertools | |
def help(): | |
print('test.py -r <range> -l <length> -o <outputfile> -c <count>') | |
def main(argv): | |
genRange = None |
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
#!/bin/sh | |
for i in *.cb*; do | |
echo $i | |
mkdir -p temp rebuilt | |
case "$i" in | |
*.cbr) | |
unrar e -o+ "$i" temp | |
;; |
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
### This should be run from /sdcard/Android/data/org.xbmc.kodi/files | |
tar cvzf /usbdisk/kodi_backup.tar.gz --exclude=.kodi/userdata/Database/Textures13.db --exclude=.kodi/userdata/Thumbnails --exclude=.kodi/temp .kodi |