Skip to content

Instantly share code, notes, and snippets.

View matiaskorhonen's full-sized avatar

Matias Korhonen matiaskorhonen

View GitHub Profile
@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 / frozen-rails-5k.geojson
Last active August 29, 2015 14:05
Frozen Rails 5K route
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
ffmpeg -f concat -i <( for f in *.mp4; do echo "file '$(pwd)/$f'"; done ) output.mp4

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:

#EXTM3U
#EXTINF:0,Yle 1
http://yletv-lh.akamaihd.net/i/yletv1hls_1@103188/index_1_av-b.m3u8
#EXTINF:0,Yle 2
http://yletv-lh.akamaihd.net/i/yletv2hls_1@103189/index_1_av-b.m3u8
#EXTINF:0,Yle Teema
http://yletv-lh.akamaihd.net/i/yleteemahls_1@103187/index_1_av-b.m3u8
#EXTINF:0,Yle Fem (suomi)
http://yletv-lh.akamaihd.net/i/ylefemfihls_1@103185/index_1_av-b.m3u8
#EXTINF:0,Yle Fem (ruotsi)
@matiaskorhonen
matiaskorhonen / v3.2.13...v3.2.15.diff
Created November 18, 2013 12:42
Changes between Rails 3.2.13 and 3.2.15
diff --git a/Gemfile b/Gemfile
index c45be18..8c5cbb2 100644
--- a/Gemfile
+++ b/Gemfile
@@ -14,7 +14,7 @@ gem 'jquery-rails'
if ENV['JOURNEY']
gem 'journey', :path => ENV['JOURNEY']
else
- gem 'journey', :git => 'git://github.com/rails/journey.git', :branch => '1-0-stable'
+ gem 'journey'

Test

  • a task list item
  • list syntax required
  • normal formatting
  • incomplete
  • completed
@matiaskorhonen
matiaskorhonen / gist:5783255
Created June 14, 2013 16:21
Alfred myPhoneDesktop process (from `ps aux`)
matt 3225 0.1 0.0 2434120 1920 ?? Ss 7:18PM 0:00.01 /usr/bin/ruby -e #!/usr/bin/env ruby^J# encoding: utf-8^J^J# myPhoneDesktop for Alfred extension^J# v2.0, 03/14/2013^J# Author: jProductivity^J# Copyright © 2013 jProductivity, LLC^J# http://www.myphonedesktop.com/^J^J# visit http://support.myphonedesktop.com/entries/20929458-myphonedesktop-for-alfred-app-extension-send-to-iphone ^J# for instructions on how to install and use this extension^J^J# To control how phone number and SMS text will be processed set property AUTO_SEND to "true" or "false"^J^J# "true" - will send selected phone number and SMS text to iPhone and will automatically launch iPhone's Messages.app;^J# NOTE: iPhone's Messages.app will auto open only if myPhoneDesktop's iPhone app | Settings | View Options | Auto Respond | SMS option is set to ON^J^J# "false" - will only copy this phone number and SMS text to myPhoneDesktop's desktop client and will not send it to iPhone^J^J# NOTE: in order for AUTO_SEND property to h