I hereby claim:
- I am scoreunder on github.
- I am score_under (https://keybase.io/score_under) on keybase.
- I have a public key ASCi0wXu6-Pgv2r7_1nToPdKplVnkLTlR3Vm7SzVZ4BGUwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# Requires node.js: sudo pacman -Sy nodejs | |
if [ $# -lt 1 ]; then | |
echo "Usage: $(basename "$0") FILE [FILE...]" >&2 | |
exit 1 | |
fi | |
for f in "$@"; do | |
d=$(node -pe "JSON.parse(process.argv[1]).files[0].url" "$(curl -sS --progress-bar -F "files[]=@$f" http://pomf.se/upload.php)") |
#!/bin/sh | |
title="mp3skull downloader" | |
put() { eval 'printf %s\\n "$'"$1"'"'; } | |
music_dir=$(xdg-user-dir MUSIC || put HOME) | |
cleanup() { | |
ret=$? | |
rm -f -- "$cookie_jar" |
#!/bin/sh | |
exec git log --oneline --graph --format='%C(yellow)%h %C(bold blue)%an %C(reset)%s %C(green)%GG%C(yellow)%D' "$@" |
#!/bin/busybox sh | |
# Original code, slow, not sh-compatible | |
hashcode() { | |
local hash=0 | |
local str="$1"X | |
while [ -n "$str" ]; do | |
ch="${str:0:1}" | |
hash=$(( ($hash * 173 + $(printf '%d' "'$ch")) % 256 )) | |
str="${str:1}" | |
done |
sudo openvt -s -- sh -c "sudo -u charles -- vlock -a; chvt $(fgconsole)" |
@worlds = 1..94; | |
for (@worlds) { | |
# This would probably work on Windows with "-c1" changed to "-n 1" | |
open $pings[$_], '-|', qw/ping -c1/, "oldschool$_.runescape.com"; | |
} | |
undef $/; | |
for (@pings[@worlds]) { | |
if (<$_> =~ /time=([\d.]+ ?ms)/) { | |
$_ = $1; |
perl -CS -Mutf8 -pe'y/ !-~/ !-~/' |
for l in __import__('fileinput').input():print(*[((c,chr(ord(c)+65248))[ord(c)<127]," ")[c==" "]for c in l[:-1]],sep='') |
//ref: http://andrewhfarmer.com/hide-discord-sidebar/ | |
var cmd$ = $; | |
document.addEventListener('keydown', function(event) { | |
if (event.metaKey && event.keyCode === 220) { | |
// Toggle visibility of the channel and guilds columns | |
var channelWrap = cmd$('.flex-vertical.channels-wrap'); | |
var guildsWrap = cmd$('.guilds-wrapper'); | |
var titleWrap = cmd$('.title-wrap'); | |
if (channelWrap.getAttribute('style') === 'display: none') { | |
channelWrap.setAttribute('style', ''); |