Skip to content

Instantly share code, notes, and snippets.

View s-zeid's full-sized avatar

S. Zeid s-zeid

View GitHub Profile
s-zeid / count-uploads
Last active December 18, 2015 11:08
count-uploads - The script I use to count my camera uploads saved in Google Drive.
# 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
# With no arguments, the script will count all years (and if -v/--verbose is given,
if [ "$1" = "-w" -o "$1" = "--watch" ]; then
watch "$@" -x "$0"
echo -e "Total\tNow\tDirectory"
echo -e "-----\t---\t---------"
s-zeid / plugin-versions
Created July 5, 2013 22:18
List CraftBukkit plugin names and versions. Depends on <>.
#!/usr/bin/env python
import os
import re
import subprocess
import sys
from collections import OrderedDict
CB_CMD = ["cb"]
cd "$(dirname "$0")"
if [ ! -f "$MINECRAFT_JAR" ]; then
exec java -jar "$MINECRAFT_JAR" --workDir "$(pwd)"
s-zeid /
Last active December 29, 2015 15:19
#!/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"],
#!/usr/bin/env python2
import random
import re
import threading
import time
import sys
class JokeSorts:
s-zeid / capplay
Last active August 29, 2015 14:07
Play deinterlaced video with sound from a video capture card with minimal lag, on GNU/Linux, saveable as raw video and audio in a Matroska container.
# Copyright (c) 2014 Scott Zeid.
# Released under the X11 License <>.
cap() {
local video=$1
local audio=$2
ffmpeg \
-f v4l2 -i "$video" \
s-zeid / .I <3 Nim. # .md
Last active August 29, 2015 14:13
.I <3 Nim. — Scott Zeid's Nim playground