This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -o latest.dump `heroku pgbackups:url --app project-production` | |
pg_restore --verbose --clean --no-acl --no-owner -d project_development latest.dump | |
rm latest.dump |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find ~ -name '*.log' -print0 | xargs -0 -L1 stat -f'%z %N' | sort -rn | tee fat-logfiles.txt | head | |
awk '{ total += $1 } END { printf "total: %5.2f MiB\n", total/1024/1024 }' < fat-logfiles.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
feature 'Guest manages favorites', :js do | |
scenario 'can interact with the list of favorites' do | |
property = create(:property, :boston) | |
alternate_property = create(:property, :boston) | |
make_all_properties_available | |
search do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"app/assets/javascripts/models/*.coffee": { | |
"command": "jmodel", | |
"alternate": "spec/javascripts/models/%s_spec.coffee", | |
"template": "class @AppName.Models.%S extends Backbone.Model" | |
}, | |
"app/assets/javascripts/collections/*.coffee": { | |
"command": "jcollection", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"app/assets/javascripts/models/*.coffee": { | |
"command": "jmodel", | |
"alternate": "spec/javascripts/models/%s_spec.coffee", | |
"template": "App.%S = DS.Model.extend" | |
}, | |
"app/assets/javascripts/controllers/*_controller.coffee": { | |
"command": "jcontroller", | |
"alternate": "spec/javascripts/controllers/%s_spec.coffee", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:rails_projections = { | |
\ "config/projections.json": { | |
\ "command": "projections" | |
\ }, | |
\ "spec/features/*_spec.rb": { | |
\ "command": "feature", | |
\ "template": "require 'spec_helper'\n\nfeature '%h' do\n\nend", | |
\ }} | |
let g:rails_gem_projections = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Flashcards | |
class Card | |
attr_accessor :front, :back | |
def initialize(front, back) | |
@front = front | |
@back = back | |
end | |
def play |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:rails_projections = { | |
\ "config/projections.json": { | |
\ "command": "projections" | |
\ }, | |
\ "spec/features/*_spec.rb": { | |
\ "command": "feature", | |
\ "template": "require 'spec_helper'\n\nfeature '%h' do\n\nend", | |
\ }, | |
\ "spec/support/*.rb": { | |
\ "command": "support" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Edit another file in the same directory as the current file | |
map <Leader>e :e <C-R>=expand("%:p:h") . '/'<CR> | |
map <Leader>s :split <C-R>=expand("%:p:h") . '/'<CR> | |
map <Leader>v :vsplit <C-R>=expand("%:p:h") . '/'<CR> | |
map <Leader>te :tabe <C-R>=expand("%:p:h") . '/'<CR> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:rails_projections = { | |
\ "config/projections.json": { | |
\ "command": "projections" | |
\ }, | |
\ "spec/features/*_spec.rb": { | |
\ "command": "feature", | |
\ "template": "require 'spec_helper'\n\nfeature '%h' do\n\nend", | |
\ }, | |
\ "spec/support/*.rb": { | |
\ "command": "support" |
OlderNewer