Skip to content

Instantly share code, notes, and snippets.

View jonashelgemo's full-sized avatar

Jonas Helgemo jonashelgemo

View GitHub Profile
### Keybase proof
I hereby claim:
* I am jonashelgemo on github.
* I am el_duderino (https://keybase.io/el_duderino) on keybase.
* I have a public key whose fingerprint is 83A7 2040 E9FB CDD1 4891 B9DA 141B 129C 68C3 940C
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am helgeblod on github.
  • I am el_duderino (https://keybase.io/el_duderino) on keybase.
  • I have a public key ASDYz0QOJMKacxbVcKEFNLYsBSVSMyOmFJqzuVwRY_bG4go

To claim this, I am signing this object:

@jonashelgemo
jonashelgemo / test.js
Last active March 24, 2019 14:11
js-test.js
alert("Hei");

Installation instructions

To install, run the following in the shell of your choice and type your password:

curl https://hack.me/now.sh | sudo /bin/bash
@jonashelgemo
jonashelgemo / keybase.md
Created April 29, 2016 10:22
Keybase verification gist

Keybase proof

I hereby claim:

  • I am helgeblod on github.
  • I am el_duderino (https://keybase.io/el_duderino) on keybase.
  • I have a public key ASBt449JS4kluy2m1BKElZjir1N2AtHh_MN6PAZXKffooAo

To claim this, I am signing this object:

#!/bin/zsh
#
set -x
container_id="$1"
container=$(docker inspect -f '{{ .Name }}' "$container_id" | sed "s/\///")
new_ip=$(docker inspect -f '{{ .NetworkSettings.IPAddress }}' "$container_id")
echo "host-record=$container.dev,$new_ip" > /usr/local/etc/dnsmasq.d/$container.dev.conf
sudo launchctl stop homebrew.mxcl.dnsmasq
sudo launchctl start homebrew.mxcl.dnsmasq
update-dev snap5 mercury:3.4.24-77f4ab0 ◼
[INFO] Deploying to env=snap5 (), LATEST version
[INFO] triggering docker mode for app mercury
[INFO] Updating mercury on docker001-snapshot.api.c.bitbit.net to version 3.4.24-77f4ab0
pulling container, version: 3.4.24-77f4ab0
-r was triggered, restart set to TRUE
-v was triggered, Parameter: 3.4.24-77f4ab0
restarting container [ OK ]
updating etcd... [ OK ]
[INFO] Flushing varnish on varnish-local05-snapshot.api.c.bitbit.net(local), varnish-bed05-snapshot.api.c.bitbit.net(bed) and varnish-esi05-snapshot.api.c.bitbit.net(esi) related to .
update-dev snap5 cetera:0.4.85-3583d8e ◼
[INFO] Deploying to env=snap5 (), LATEST version
[INFO] Updating cetera on stil to version 0.4.85-3583d8e
-r was triggered, restart set to TRUE
-v was triggered, Parameter: 0.4.85-3583d8e
Fetching http://fantast.api.kunder.linpro.no/repo/misc//cetera/cetera-0.4.85-3583d8e into /var/spool/api/cetera
`/etc/api/environment.properties' -> `/etc/api-templates/environment.properties'
`/etc/api/zett/surveillance.properties' -> `/etc/api-templates/zett/surveillance.properties'
`/etc/api/zett/zettdata.properties' -> `/etc/api-templates/zett/zettdata.properties'
`/etc/api/zett/importhandler.properties' -> `/etc/api-templates/zett/importhandler.properties'
@jonashelgemo
jonashelgemo / gist:51c5bb36869b275be02c
Created November 10, 2014 14:50
Feilmelding etter oppdatering
Called from: /home/vagrant/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:86:in `new'.
App 2812 stderr:
App 3465 stderr: [ 2014-11-10 15:48:15.8612 3513/0x902c778(Worker 1) utils.rb:68 ]: *** Exception NoMethodError in Rack application object (undefined method `size' for nil:NilClass) (process 3513, thread 0x902c778(Worker 1)):
App 3465 stderr: from /home/vagrant/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/session/cookie.rb:152:in `set_session'
App 3465 stderr: from /home/vagrant/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:342:in `commit_session'
App 3465 stderr: from /home/vagrant/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:226:in `context'
App 3465 stderr: from /home/vagrant/.rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
App 3465 stderr: from /home/
notification :emacs, success: "#1d1f21", failed: "red1"