Skip to content

Instantly share code, notes, and snippets.

View blakejakopovic's full-sized avatar

Blake Jakopovic blakejakopovic

View GitHub Profile

I'm getting rid of some stuff, who wants it? Pickup in Vienna's 6th district. Email thomas@fesch.at if you want something! All of the stuff is well cared-for.

Household stuff

  • Miele washing machine W1749 Softronic. (Very fancy, has a tank for liquid detergent so you don't need to fill in detergent every time you wash). 3 years old, €850,- (original price €1200,-)
@blakejakopovic
blakejakopovic / twitter_favourite_reader.rb
Created March 24, 2012 13:41
Open twitter favourite tweets links in new tabs (Mac OS X only)
#!/usr/bin/env ruby
##############################
# WARNING
# Will unfavourite your tweets
#
##############################
require 'twitter'
# require 'redis'
@blakejakopovic
blakejakopovic / hack.sh
Created April 1, 2012 08:17 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@blakejakopovic
blakejakopovic / Guardfile
Created April 6, 2012 07:59 — forked from drnic/Guardfile
An example Guardfile with the works for a Rails app
guard 'rspec', :version => 2 do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
# Rails example
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
@blakejakopovic
blakejakopovic / tmux_iterm2.rb
Created April 15, 2012 15:09 — forked from jhuckabee/tmux_iterm2.rb
Brew script for 'Tmux for iTerm2'
require 'formula'
class TmuxIterm2 < Formula
url 'http://iterm2.googlecode.com/files/tmux-for-iTerm2-20120203.tar.gz'
md5 '59305a26bdd0245054fe719e6b2a960e'
homepage 'http://code.google.com/p/iterm2/downloads/detail?name=tmux-for-iTerm2-20120203.tar.gz&can=2&q='
depends_on 'libevent'
def install
source 'https://rubygems.org'
# The latest version of Ruby
ruby '1.9.3'
# The lastest version of Rails
gem 'rails', '3.2.10'
# Postgres
gem 'pg'
@blakejakopovic
blakejakopovic / Lircmap.xml
Created April 14, 2013 09:03
Lircmap.xml for DVICO_MCE2 and XBMC
<lircmap>
<remote device="DVICO_MCE2">
<pause>playpause</pause>
<stop>stop</stop>
<forward>ff</forward>
<reverse>rew</reverse>
<left>left</left>
<right>right</right>
<up>up</up>
<down>down</down>
#!/usr/bin/ruby -rubygems
#
# Point appcrush at an .ipa file from the iTunes AppStore and it
# - expands the zip file
# - finds all the images
# - runs pngcrush with the revert-iphone-optimizations option on each image
#
# Requirements Xcode with iOS SDK 3.2 or higher
#
# Usage: appcrush '/Users/boctor/Music/iTunes/Mobile Applications/iBooks.ipa'

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@blakejakopovic
blakejakopovic / read_reddit_saved
Created April 18, 2014 01:02
read_reddit_saved
#!/usr/bin/env ruby
require 'dotenv'
Dotenv.load '~/bin/.env'
require 'snoo'
require 'terminal-notifier'
username = ENV.fetch('REDDIT_USERNAME')
password = ENV.fetch('REDDIT_PASSWORD')