Skip to content

Instantly share code, notes, and snippets.

View matiaskorhonen's full-sized avatar

Matias Korhonen matiaskorhonen

View GitHub Profile

Keybase proof

I hereby claim:

  • I am matiaskorhonen on github.
  • I am matias (https://keybase.io/matias) on keybase.
  • I have a public key whose fingerprint is A419 E054 F9B1 FC7C 26FD 3EC7 4758 53F3 D706 5E92

To claim this, I am signing this object:

ffmpeg -f concat -i <( for f in *.mp4; do echo "file '$(pwd)/$f'"; done ) output.mp4
Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook! Ook! Ook? Ook. Ook? Ook. Ook! Ook? Ook! Ook? Ook. Ook! Ook? Ook! Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook! Ook! Ook? Ook! Ook. Ook? Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook. Ook. Ook? Ook. Ook? Ook! Ook. Ook? Ook! Ook? Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook! Ook? Ook! Ook? Ook. Ook? Ook. Ook? Ook. Ook.
Ook. Ook? Ook. Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook! Ook! Ook? Ook! Ook. Ook? Ook. Ook? Ook! Ook? Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook? Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook? Ook. Ook? Ook. Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook
@matiaskorhonen
matiaskorhonen / frozen-rails-5k.geojson
Last active August 29, 2015 14:05
Frozen Rails 5K route
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@matiaskorhonen
matiaskorhonen / kippt-pinboard.rb
Created August 23, 2014 10:20
A simple script for copying bookmarks from Kippt to Pinboard. Tries to retain as much data as possible (title, list, creation date, and notes). Works for me, might not work for you if you have > 200 clips per Kippt list.
require "kippt" # gem install kippt
require "pinboard" # gem install pinboard
kippt = Kippt::kippt.new(username: "matias", password: "…")
pinboard = Pinboard::kippt.new(username: "matias", password: "…")
lists = kippt.lists.fetch
counter = 0
@matiaskorhonen
matiaskorhonen / rails-osx.md
Last active August 29, 2015 14:08
Basic Rails set-up for OS X
  1. Install XCode (from the app store)

  2. Run:

xcode-select --install
  1. Install Oh My ZSH: http://ohmyz.sh/
module ApplicationHelper
def svg_image_tag(image_name, options={})
svg_name = image_name.gsub(/#{Regexp.escape File.extname(image_name)}\z/, ".svg")
options[:onerror] = "this.onerror=null; this.src='#{asset_path(svg_name)}'"
image_tag(image_name, options)
end
end
@matiaskorhonen
matiaskorhonen / app.js
Created December 10, 2014 13:54
iOS 7 position: fixed bug workaround
$(function () {
$(document).on('open.fndtn.reveal', '[data-reveal]', function () {
$modal = $(this);
$modal.find(".row").addClass("iosfix");
});
$(document).on('opened.fndtn.reveal', '[data-reveal]', function () {
$modal = $(this);
setTimeout(function() {
$modal.find(".row").removeClass("iosfix")
@matiaskorhonen
matiaskorhonen / gist:2fb4b024acefd522d5bc
Created May 27, 2015 15:38
pkill autocomplete error
~ » pkill ps: illegal argument: co 2 ↵
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
[-g grp[,grp...]] [-u [uid,uid...]]
[-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
ps [-L]
ps: illegal argument: co
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
[-g grp[,grp...]] [-u [uid,uid...]]
[-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
ps [-L]