Skip to content

Instantly share code, notes, and snippets.

View rkh's full-sized avatar
👀
heeeyyyy

Konstantin Haase rkh

👀
heeeyyyy
View GitHub Profile
cash:
apt: true
directories:
- vendor
@rkh
rkh / hsts.md
Last active December 28, 2015 23:59

Chrome

Go to chrome://net-internals/#hsts, use Delete domain to remove the domain.

Firefox

Open "All History" from the History menu item, search for page, right click and choose "Forget about this Page".

Opera

Last login: Mon Jul 1 18:58:51 2013 from cable-86-56-102-209.cust.telecolumbus.net
travis@debug-rkh-ruby-1381846869:~$ rvm rbx-2.0.0 do true 2>/dev/null || rvm get stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 450 0 --:--:-- --:--:-- --:--:-- 564
100 19494 100 19494 0 0 40159 0 --:--:-- --:--:-- --:--:-- 40159
Downloading RVM branch stable
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz to rvm-stable.tgz.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
language: c
script: ./build.sh
env:
global:
- "ARTIFACTS_AWS_REGION=us-east-1"
- "ARTIFACTS_S3_BUCKET=travis-rubies"
- secure: "..."
- secure: "..."
matrix:
- "RUBY=ruby-head"
@rkh
rkh / memory.rb
Created September 11, 2013 18:07
require 'sinatra/base'
app = Sinatra.new do
get('/') { "ok" }
end
count_was = 0
changed_at = 0
iteration = 0
run = true
Important places to check before travelling:
* http://en.wikivoyage.org
* http://www.auswaertiges-amt.de/EN
* http://www.seatguru.com/
* https://yourkarma.com/coverage
* http://www.clubmate.de/international.html
@rkh
rkh / gist:6054676
Last active December 20, 2015 02:09
[~/Workspace]$ travis help
Outdated CLI version (1.3.0, current is 1.3.1), run `gem install travis -v 1.3.1` or use --skip-version-check.
[~/Workspace$ gem install travis
Successfully installed travis-1.2.7
1 gem installed
56k: "https://123.campfirenow.com/images/56k.gif"
bell: ":bell:"
bezos: ":laughing::thought_balloon:"
bueller: "anyone?"
clowntown: "https://123.campfirenow.com/images/clowntown.gif"
crickets: "hears crickets chirping"
dangerzone: "https://123.campfirenow.com/images/dangerzone.png"
danielsan: ":fireworks: :trophy: :fireworks:"
deeper: "https://123.campfirenow.com/images/top.gif"
drama: "https://123.campfirenow.com/images/drama.jpg"
class EqualityMap
def initialize
@keys = {}
@map = ObjectSpace::WeakMap.new
end
def fetch(*key)
identity = @keys[key.hash]
key = identity == key ? identity : key
@map[key] ||= track(key, yield)
irb(main):004:0> ObjectSpace.each_object.all? {|o| o.methods.all? {|m| o.method(m).owner.instance_methods.include?(m) }}
=> true
irb(main):005:0> RUBY_VERSION
=> "2.0.0"