Skip to content

Instantly share code, notes, and snippets.

View petrosp's full-sized avatar

Petros petrosp

  • AMS-IX
  • Amsterdam
View GitHub Profile
@petrosp
petrosp / dump_fixtures.rake
Last active November 24, 2016 19:55 — forked from dimidd/dump_fixtures.rake
Dump fixtures from the current environment's database
# Source: http://blog.ivanilves.com/2016/rails-dump-fixtures-from-db/
# Usage:
# * rake db:fixtures:dump to dump all models.
# * rake db:fixtures:dump MODELS="user billing_account" to dump only User and BillingAccount models.
# * rake db:fixtures:dump EXCEPT="user billing_account" to dump all, except for User and BillingAccount models.
#
namespace :db do
namespace :fixtures do
@petrosp
petrosp / 0_reuse_code.js
Created August 8, 2016 12:31
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console