ffmpeg2theora /dev/video0 -V 600 --no-skeleton -K 8 --noaudio -f video4linux2 --inputfps 25 -x 960 -y 720 -o - | oggfwd 127.0.0.1 8000 PASSWORD /stream.ogv
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 | |
set -u | |
file=$1 | |
port=9999 | |
bore local ${port} --to bore.pub & | |
bore_pid=$! | |
{ echo -ne "HTTP/1.0 200 OK\r\nContent-Length: $(wc -c <${file})\r\n\r\n"; cat ${file}; read; } | nc -l -p ${port} |
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 | |
set -eu | |
if (( $# < 1 )); then | |
echo "usage: $0 <host:port> [<host:port> ...]" | |
exit 1 | |
fi | |
me=$(basename "$0") | |
HOSTNAME="${COLLECTD_HOSTNAME:-localhost}" |
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 kmmndr on github. | |
* I am kmmndr (https://keybase.io/kmmndr) on keybase. | |
* I have a public key ASC4Bn9zZr4oPXYObyAULOH8PjDnR5IFvCj9DIl6xbkpxgo | |
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
TOOLS_DIR=~/work/tools | |
export PREFIX=$HOME/.local | |
mkdir -p $PREFIX | |
mkdir -p $TOOLS_DIR | |
cd $TOOLS_DIR | |
# ry / ruby version manager | |
git clone git://github.com/jayferd/ry $TOOLS_DIR/ry | |
pushd $TOOLS_DIR/ry | |
make install |
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 | |
# | |
# pgpool-II replication manager | |
# | |
# Interfaces with pgpool's pcp command-line tools to provide access to common functions for managing | |
# load-balancing and failover. | |
# | |
# dsimmons@squiz.co.uk | |
# 2011-08-28 |