Skip to content

Instantly share code, notes, and snippets.

View that4chanwolf's full-sized avatar

Wise Horo that4chanwolf

View GitHub Profile
@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;
@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 / 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 }')"
#loldubs
/jBYtwnZn7RXj/YsnEcxphw==/
/Dgpj5szHW+S89K7JVBOWGw==/
/l0eYomI+LiG0RgBfkNweXw==/
/pOkP9WHwQQpYR0fL5/KNzA==/
/oFRJ9eeLQyWjwrlxJWzlAg==/
/IZDcDjioBzvgXtkkKYm8xA==/
/nisBqEY6LgrZwj8dXlQ8ug==/
/9aeOHhGn79xnsXGN5uz3iQ==/
/zNoIeGUph+tVlQNvSdMK0Q==/
// ==UserScript==
// @name TechChan+
// @author that4chanwolf
// @namespace techchan+
// @description Adds things to techchan.org
// @include http://techchan.org/*
// @version 0.0.1a
// @delay 1
// ==/UserScript==
@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
@that4chanwolf
that4chanwolf / upload.sh
Created August 26, 2012 17:54
Uploader
#!/bin/bash
# upload.sh (goput|omploadr|imgur) file
if [ "x${1}" = 'x' ]; then
echo 'need host'
exit
fi
if [ "x{$2}" = "x" ]; then
echo 'need filename'
exit
@that4chanwolf
that4chanwolf / HoroHoroHoro.user.js
Created August 31, 2012 17:19
HoroHoroHoro.user.js
// ==UserScript==
// @name HoroHoroHoro
// @match *://boards.4chan.org/*
// @delay 1
// ==/UserScript==
var log
if( !console.log ) {
log = unsafeWindow.console.log;
@that4chanwolf
that4chanwolf / ass-parser.js
Created November 18, 2012 04:15
ASS parser script
#!/usr/bin/env node
/*
* Simple script for turning ASS files into regular scripts
* NOTE: Not 100% tested, will probably fail.
* Please fix me ;_;
*/
var ap = require('argparser').
files("in", "out").
parse(),
@that4chanwolf
that4chanwolf / netspeed.sh
Created November 23, 2012 05:26 — forked from rsvp/netspeed.sh
netspeed.sh : check download speed rate via command line | Linux bash script
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-10-09
#
# _______________| netspeed : check download speed via command line.
#
# Usage: netspeed [tokyo, london, usw, use, east, west, URL]
# ^default U.S. west coast.
# [ -speed_KB/sec ]
# ^negation activates the Mbps converter.
#