Skip to content

Instantly share code, notes, and snippets.

View that4chanwolf's full-sized avatar

Wise Horo that4chanwolf

View GitHub Profile
@that4chanwolf
that4chanwolf / mkhardsub.sh
Created July 26, 2012 11:08 — forked from whs/mkhardsub.sh
Hardsub a mkv
#!/bin/bash
if [ "$1" = "" -o "$2" = "" ]; then
echo "mkhardsub file.mkv out.mkv"
exit 1
fi
# -ass-force-style FontName=supermarket,Default
mplayer -nosound -benchmark "$1" -ass -fontconfig -ass-font-scale 1.2 -vf scale=854:480 -sid 0 -vo yuv4mpeg:file=>(x264 --crf 20 --preset ultrafast --level 30 --vbv-bufsize 10000 --vbv-maxrate 16000 --threads auto --output /tmp/mkhardsub.mkv --demuxer y4m -)
ffmpeg -i /tmp/mkhardsub.mkv -i "$1" -vcodec copy -map 0:0 -map 1:a:0 $2
#rm /tmp/mkhardsub.mkv
// ==UserScript==
// @name TechChan+
// @author that4chanwolf
// @namespace techchan+
// @description Adds things to techchan.org
// @include http://techchan.org/*
// @version 0.0.1a
// @delay 1
// ==/UserScript==
#loldubs
/jBYtwnZn7RXj/YsnEcxphw==/
/Dgpj5szHW+S89K7JVBOWGw==/
/l0eYomI+LiG0RgBfkNweXw==/
/pOkP9WHwQQpYR0fL5/KNzA==/
/oFRJ9eeLQyWjwrlxJWzlAg==/
/IZDcDjioBzvgXtkkKYm8xA==/
/nisBqEY6LgrZwj8dXlQ8ug==/
/9aeOHhGn79xnsXGN5uz3iQ==/
/zNoIeGUph+tVlQNvSdMK0Q==/
@that4chanwolf
that4chanwolf / linux-shimeji.sh
Created May 10, 2012 13:25
Another script for linux-shimeji
#!/bin/bash
# A script meant for controlling linux-shimeji
# Made by that4chanwolf
shimdir="/opt/linux-shimeji"
shimfilename="Shimeji.jar"
shimjar="${shimdir}/${shimfilename}"
extra="/tmp/linux-shimeji"
debugfile="${extra}/debug.txt"
shimpid="$(ps aux | grep -v grep | grep "${shimfilename}" | awk '{ print $2 }')"
@that4chanwolf
that4chanwolf / shimeji.sh
Created April 20, 2012 16:54
Shimeji script
#!/bin/bash
# A bash script meant to be used along with linux-shimeji
# Requires linux-shimeji (obviously) and either xcompmgr or compton (for compositing)
shimejijar="/opt/linux-shimeji/Shimeji.jar"
if [ -n `which java` ]; then
echo 'ERROR: No Java install found! Please install a JRE.'
exit
fi
@that4chanwolf
that4chanwolf / horo.cow
Created December 7, 2011 18:28
A horo Cowsay file.
binmode STDOUT, ":utf8";
$the_cow =<<EOC;
$thoughts
$thoughts
$thoughts
$thoughts
\e[49m \e[38;5;95m\N{U+2584}\N{U+2584}\e[38;5;131m\N{U+2584}\e[38;5;137m\N{U+2584}\N{U+2584}\e[38;5;173m\N{U+2584}\N{U+2584}\N{U+2584}\N{U+2584}\N{U+2584}\N{U+2584}\N{U+2584}\N{U+2584}\N{U+2584}\N{U+2584}\N{U+2584}\e[38;5;137m\N{U+2584}\N{U+2584}\N{U+2584}
\e[38;5;131m\N{U+2584}\e[48;5;239;38;5;173m\N{U+2584}\e[48;5;131m\N{U+2584}\e[48;5;137m\N{U+2584}\e[48;5;173m \e[48;5;137m\N{U+2584}\N{U+2584}\e[48;5;95m\N{U+2584}\e[49;38;5;137m\N{U+2584}\e[38;5;131m\N{U+2584}
\e[48;5;95;38;5;137m\N{U+2584}\e[48;5;137;38;5;173m\N{U+2584}\e[48;5;173m \e[38;5;137m\N{U+2584}\N{U+2584}\e[48;5;137;38;5;131m\N{U+2584}\N{U+2584} \e[48;5;173m \e[48;5;137;38;5;173m\N{U+2584}\e[48;5;95;38;5;137m\N{U+2584}\e[49;38;5;95m\N{U+2584}
\N{U+2584}\e[48;5;137;38;5;173m\N{U+2584}\e[48;5;173m \e[38;5;137m\N{U+2584}\e[48;5;