Skip to content

Instantly share code, notes, and snippets.

View jeffkreeftmeijer's full-sized avatar
🦞

Jeff Kreeftmeijer jeffkreeftmeijer

🦞
View GitHub Profile
@jeffkreeftmeijer
jeffkreeftmeijer / appsignal-dark.terminal
Last active November 19, 2016 12:48
appsignal.terminal (https://github.com/jeffkreeftmeijer/appsignal.terminal), with SF Mono 14pt, 1,25 line spacing and disabled bells
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw
LjE5MjE1Njg2MjcgMC4yNDcwNTg4MjM1IDAuMjc0NTA5ODAzOQAQAoAC0hAREhNaJGNs
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
@jeffkreeftmeijer
jeffkreeftmeijer / no_testsuites_element.xml
Last active September 25, 2016 11:01
JUnit XML test fixtures
<?xml version="1.0"?>
<testsuite errors="0" failures="0" name="Elixir.JunitXmlTest" tests="0" time="0.00"></testsuite>
@jeffkreeftmeijer
jeffkreeftmeijer / gist:d243932dd41ef1f94aa48567cf50e83c
Last active September 14, 2016 09:47 — forked from Pjotter/gist:169108c985002ea3bcd1708639e79fb7
Why I decided not to buy new phone
iPhone 5 still looking good. Source: NölSch.de
I own a 2012 iPhone 5 and today I decided that I won’t be buying a new iPhone. I do like the new iPhones, it’s just that I don’t see the added value for me to buy a new one, and I think I’m not the only one in this situation. My “old” iPhone 5 holds up perfectly to my current needs. And I say “current needs” because “Back in the day” I would basically try out all the apps and play all the games. But Today, more than 80% of those apps are long gone. Either I lost interest or they made a really good mobile website that does the job just fine. Today, next to the native apps like Safari and mail, I only regularly use Reddit, Youtube and the mirror apps for Sketch and Photoshop. I have other apps installed, but those are just there when I need them. "You never know when you might need that QR scanner"? Wrong! You never need a QR scanner, so you can safely delete it.
That said, I don’t really need the newest A10 processor or a double photo lens in my daily use. It woul
Where's my jetpack?
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
gem 'rails', '4.2.6'

git-run_guide

Generates the README for git-run.

$ git clone git@gist.github.com:cd37a464bded117bfce0.git git-run_guide
$ git clone git@gist.github.com:c4bef77ec0ebf1f2639f.git git-run_guide/examples
$ cd git-run_guide/examples
$ guidedown ../guide.md
@jeffkreeftmeijer
jeffkreeftmeijer / check_urls
Created October 17, 2015 15:31
`$ check_urls **/*.md`
#!/usr/bin/env ruby
URL_REGEX = /\b(([\w-]+:\/\/?|www[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/)))/
contents = ARGF.read
matches = []
contents.scan(URL_REGEX) do |match|
matches << match.first
end
body{
font-family: 'SF UI Display', 'Myriad Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #333333;
font-size: 18px;
line-height: 26px;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
@jeffkreeftmeijer
jeffkreeftmeijer / turn_back_the_hands_of_time.rb
Created January 23, 2015 11:04
♫ If I could turn, turn back the hands of time ♫
puts "♫ If I could turn, turn back the hands of time ♫"
puts "♫ Then my darlin' you'd still be mine ♫"
class Time
def self.now
Time.new(2015, 1, 23)
end
end