Skip to content

Instantly share code, notes, and snippets.

Oskar Boethius Lissheim avocade

Block or report user

Report or block avocade

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@avocade
avocade / Gemfile
Created Jul 11, 2012
gemfile group dev
View Gemfile
group :development, :test do
gem 'factory_girl_rails'
gem 'debugger'
gem 'rspec-rails'
end
View seeds.rb
puts 'creating admins'
Admin.create :name => 'superadmin', :password => 'rollercoaster'
puts 'creating countries'
countries = []
countries << { :name => 'sweden', :iso_code => 'se' }
countries << { :name => 'sweden', :iso_code => 'se' }
countries << { :name => 'usa', :iso_code => 'us' }
View gist:3745459
Users = new Meteor.Collection 'users'
currentUser = ->
Users.findOne Session.get 'user_id'
if Meteor.is_client
Meteor.startup = ->
Meteor.autosubscribe = ->
Meteor.subscribe 'users'
@avocade
avocade / keybase.md
Created Oct 25, 2014
Keybase.io public gist
View keybase.md

Keybase proof

I hereby claim:

  • I am avocade on github.
  • I am avocade (https://keybase.io/avocade) on keybase.
  • I have a public key whose fingerprint is 70E5 063A 021F 84A0 188C DDE1 504F DA78 B59D 201F

To claim this, I am signing this object:

@avocade
avocade / erl-observe.sh
Created Feb 22, 2017
Connect to remote erlang node with remote iex session (eg over k8s port-forwarding), and start observer on it
View erl-observe.sh
#!/bin/bash
# This script provides easy way to debug remote Erlang nodes that is running in a kubernetes cluster.
# Usage: ./erl-observe.sh -l app=my_all -n default -c erlang_cookie
#
# Don't forget to include `:runtime_tools` in your mix.exs application dependencies.
set -e
# Trap exit so we can try to kill proxies that has stuck in background
function cleanup {
echo " - Stopping kubectl proxy."
You can’t perform that action at this time.