Skip to content

Instantly share code, notes, and snippets.

View avocade's full-sized avatar
Designing domains and coding clojure for

Oskar Boëthius Lissheim avocade

Designing domains and coding clojure for
View GitHub Profile
View gist:2412b78528bea357c0b2ed95b05f0a59
avocade /
Created February 22, 2017 12:34
Connect to remote erlang node with remote iex session (eg over k8s port-forwarding), and start observer on it
# This script provides easy way to debug remote Erlang nodes that is running in a kubernetes cluster.
# Usage: ./ -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."
avocade /
Created October 25, 2014 12:38 public gist

Keybase proof

I hereby claim:

  • I am avocade on github.
  • I am 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:

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'
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' }
avocade / Gemfile
Created July 11, 2012 10:59
gemfile group dev
View Gemfile
group :development, :test do
gem 'factory_girl_rails'
gem 'debugger'
gem 'rspec-rails'