Skip to content

Instantly share code, notes, and snippets.

View helloitszak's full-sized avatar
🐇

Zak Kristjanson helloitszak

🐇
  • Seattle, Washington
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ubercow on github.
  • I am ubercow (https://keybase.io/ubercow) on keybase.
  • I have a public key ASAjVhTCc5un9zpJJrAy8bButjV5mf8OPe6f38XyJFvYpQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ubercow on github.
  • I am ubercow (https://keybase.io/ubercow) on keybase.
  • I have a public key ASAjVhTCc5un9zpJJrAy8bButjV5mf8OPe6f38XyJFvYpQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ubercow on github.
  • I am ubercow (https://keybase.io/ubercow) on keybase.
  • I have a public key ASAjVhTCc5un9zpJJrAy8bButjV5mf8OPe6f38XyJFvYpQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ubercow on github.
  • I am ubercow (https://keybase.io/ubercow) on keybase.
  • I have a public key ASAjVhTCc5un9zpJJrAy8bButjV5mf8OPe6f38XyJFvYpQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ubercow on github.
  • I am ubercow (https://keybase.io/ubercow) on keybase.
  • I have a public key ASAjVhTCc5un9zpJJrAy8bButjV5mf8OPe6f38XyJFvYpQo

To claim this, I am signing this object:

@helloitszak
helloitszak / giffer.sh
Created September 22, 2014 05:15
Quick script to make using mpv frame dumping easier
#!/bin/bash
if [ $# -ne 4 ]; then
echo "Usage: `basename $0` file starttime length outdir"
exit 1
fi
mpv --no-audio --no-sub --start=$2 --length=$3 --vo=image:format=png:outdir=$4 "$1"
@helloitszak
helloitszak / README.md
Created July 3, 2014 19:23
A swanky pixiv ugoku (those cool hip animated things) downloader.

Pixiv Ugoku

Downloads the frames from pixiv ugokus (like this one)

Works on R-18 as well without an account.

Requirements

You need a couple of gems.

  • nokogiri
  • rubyzip
@helloitszak
helloitszak / extract.rb
Created May 5, 2014 21:00
Extract Emoji from G+ Hangouts Sprite Sheet
#!/usr/bin/env ruby
require 'free-image'
require 'ruby-progressbar'
image = FreeImage::Bitmap.open(ARGV[0])
count = (image.height + 1) / 29
pb = ProgressBar.create(:title => "Scaling", :total => count)
count.times do |i|
#puts i
@helloitszak
helloitszak / exporter.js
Last active August 29, 2015 14:00
Exports playlists from plug.dj
(function () {
require(["ba783/e9c92/ebb42"], function(playlistapi){
$('#export_div').remove();
data = "";
playlistapi.read().forEach(function (playlist) {
data += "Playlist: " + playlist.name + "\n";
var playlist_data = playlistapi.getMedia(playlist.id);
var ids = playlist_data.filter(function (item) {
@helloitszak
helloitszak / quick_ed2k.rb
Last active August 1, 2016 20:11
This quickly gets ed2k links for anidb crequing.
#!/usr/bin/env ruby
require 'openssl'
if ARGV.length == 0
puts "This quickly gets ed2k links for anidb crequing."
puts "Usage: #{$0} [files]"
exit
end
def ed2k(file_name)