Skip to content

Instantly share code, notes, and snippets.

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
@s-zeid
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.
#!/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" \
@s-zeid
s-zeid / .I <3 Nim. # .md
Last active August 29, 2015 14:13
.I <3 Nim. — Scott Zeid's Nim playground
@s-zeid
s-zeid / index.php
Created November 1, 2015 09:32
allow Minecraft Overviewer output in a custom directory to be accessed from another directory within the same document root
<?php
$base = "out";
$files = [
"index.html" => function($s) use ($base) {
$s = str_replace("<head>", "<head>\n\n<base href=\"$base/\" />", $s);
$s = str_replace("\"overviewer.js\"", "\"../?overviewer.js\"", $s);
return $s;
},
@s-zeid
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.
#!/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,
#!/bin/bash
if [ "$1" = "-w" -o "$1" = "--watch" ]; then
shift
watch "$@" -x "$0"
exit
fi
echo -e "Total\tNow\tDirectory"
echo -e "-----\t---\t---------"
@s-zeid
s-zeid / plugin-versions
Created July 5, 2013 22:18
List CraftBukkit plugin names and versions. Depends on <http://code.s.zeid.me/bin/src/master/cb>.
#!/usr/bin/env python
import os
import re
import subprocess
import sys
from collections import OrderedDict
CB_CMD = ["cb"]
#!/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)"
\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