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 | |
# Copyright (c) 2013 Scott Zeid. Released under the X11 License. | |
# | |
# This is the script I use to count my camera uploads saved in Google Drive. | |
# This script is located at the root of my Camera Uploads folder in Google Drive, | |
# and the directory structure relative to the location of this script is | |
# YYYY/MM. | |
# | |
# With no arguments, the script will count all years (and if -v/--verbose is given, |
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 | |
if [ "$1" = "-w" -o "$1" = "--watch" ]; then | |
shift | |
watch "$@" -x "$0" | |
exit | |
fi | |
echo -e "Total\tNow\tDirectory" | |
echo -e "-----\t---\t---------" |
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/env python | |
import os | |
import re | |
import subprocess | |
import sys | |
from collections import OrderedDict | |
CB_CMD = ["cb"] |
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 | |
cd "$(dirname "$0")" | |
MINECRAFT_JAR=minecraft.jar | |
if [ ! -f "$MINECRAFT_JAR" ]; then | |
MINECRAFT_JAR=bin/minecraft.jar | |
fi | |
exec java -jar "$MINECRAFT_JAR" --workDir "$(pwd)" |
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
\u0070\u0075\u0062\u006c\u0069\u0063\u0020\u0065\u006e\u0075\u006d\u0020\u0054\u0065\u0073\u0074\u0045\u0073\u0063\u0061\u0070\u0065\u0073\u0020\u007b\u000a\u0020\u0042\u004e\u0041\u0059\u003b\u000a\u0020\u0070\u0075\u0062\u006c\u0069\u0063\u0020\u0073\u0074\u0061\u0074\u0069\u0063\u0020\u0076\u006f\u0069\u0064\u0020\u006d\u0061\u0069\u006e\u0028\u0053\u0074\u0072\u0069\u006e\u0067\u005b\u005d\u0020\u0061\u0072\u0067\u0073\u0029\u0020\u007b\u000a\u0020\u0020\u0053\u0079\u0073\u0074\u0065\u006d\u002e\u006f\u0075\u0074\u002e\u0070\u0072\u0069\u006e\u0074\u006c\u006e\u0028\u0054\u0065\u0073\u0074\u0045\u0073\u0063\u0061\u0070\u0065\u0073\u002e\u0042\u004e\u0041\u0059\u0029\u003b\u000a\u0020\u007d\u000a\u007d\u000a |
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/env python | |
import sys | |
STRINGS = dict( | |
negative = ["negative"], | |
base = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", | |
"nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", | |
"sixteen", "seventeen", "eighteen", "nineteen"], | |
tens = ["twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety"], |
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/env python2 | |
import random | |
import re | |
import threading | |
import time | |
import sys | |
class JokeSorts: | |
@classmethod |
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
tabmixplus | |
browser.ctrlTab.previews=true | |
browser.link.open_newwindow=3 | |
browser.link.open_newwindow.override.external=-1 | |
browser.link.open_newwindow.restriction=2 | |
browser.newtab.url=about:newtab | |
browser.search.context.loadInBackground=false | |
browser.search.openintab=false | |
browser.sessionstore.interval=15000 | |
browser.sessionstore.max_tabs_undo=10 |
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 | |
# Copyright (c) 2014 Scott Zeid. | |
# Released under the X11 License <https://tldrlegal.com/license/x11-license>. | |
cap() { | |
local video=$1 | |
local audio=$2 | |
ffmpeg \ | |
-f v4l2 -i "$video" \ |
OlderNewer