Skip to content

Instantly share code, notes, and snippets.

View jamuraa's full-sized avatar
😭
over-committed

Marie Janssen jamuraa

😭
over-committed
View GitHub Profile
@jamuraa
jamuraa / gist:e5c1ebc0a78b4a70edb4
Created December 20, 2014 16:30
Keybase Verification
### Keybase proof
I hereby claim:
* I am jamuraa on github.
* I am jamuraa (https://keybase.io/jamuraa) on keybase.
* I have a public key whose fingerprint is 911B 70F9 D760 2741 48BD 0D1C D913 15B9 64C0 6556
To claim this, I am signing this object:
@jamuraa
jamuraa / remove-nspawn.patch
Created March 25, 2014 16:48
Remove nspawn from systemd v211
diff --git a/Makefile.am b/Makefile.am
index 2cb0f2a..eccd440 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -327,7 +327,6 @@ rootbin_PROGRAMS = \
bin_PROGRAMS = \
systemd-cgls \
systemd-cgtop \
- systemd-nspawn \
systemd-detect-virt \
@jamuraa
jamuraa / application_controller.rb
Created July 29, 2013 02:35
Issue with devise and strong_parameters
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
before_filter :configure_permitted_parameters, if: :devise_controller?
protected
def configure_permitted_parameters
@jamuraa
jamuraa / gist:934864
Created April 21, 2011 16:05
Show model counts, helper for rspec
def get_model_classes
[].tap do |r|
Dir["#{Rails.root.join("app/models/*.rb")}"].each do |fname|
modelname = fname.split('/')[-1].split('.')[0].camelcase
r << Kernel.const_get(modelname)
end
end
end
# shows a count of all of the relevant objects, to