Skip to content

Instantly share code, notes, and snippets.

View helloitszak's full-sized avatar
🐇

Zak Kristjanson helloitszak

🐇
  • Seattle, Washington
View GitHub Profile
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
@helloitszak
helloitszak / prayawaythegray.css
Last active December 18, 2015 05:59
Removes gray borders on the G+ notification box. Use with stylish.
.zl .ws { padding-left: 0px !important; padding-right: 0px !important; }
.eWXGXb { width: 100% !important; }
.ws .Yy { padding-top: 0px !important; padding-bottom: 0px !important; }
.zl .r6Rtbe { border-top: none !important; border-right: none !important; border-left: none !important; }
@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)
@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 / 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 / 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 / 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"

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: