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
Show hidden characters
{ | |
"cmd": ["jekyll","b"], | |
"shell": true, | |
"working_dir": "${project_path:${folder}}", | |
"selector": "source.markdown", | |
"variants": [ | |
{ | |
"name": "Copy site to Live Directory", | |
"cmd": ["cp", "-fuR", "SOURCE_DIR", "DEST_DIR"], |
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
(function ( $ ) { | |
$.qsParameters = function(str) { | |
var qso = {}; | |
var qs = (str || document.location.search) | |
// Check for an empty querystring | |
if (qs == ""){ | |
return qso; | |
} | |
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 |
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
#!/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/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
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
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
#!/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 |
OlderNewer