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
| [alias] | |
| st = status | |
| dc = diff --cached | |
| ci = commit | |
| co = checkout | |
| b = branch | |
| dif = diff | |
| lg = log -5 | |
| lgp = log --decorate --graph --oneline | |
| [color] |
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
| { | |
| "Ansi 5 Color" : { | |
| "Green Component" : 0, | |
| "Red Component" : 0.73333334922790527, | |
| "Blue Component" : 0.73333334922790527 | |
| }, | |
| "Tags" : [ | |
| ], | |
| "Disable Printing" : false, |
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
| alias ll='ls -alF' | |
| alias vim='vim -p' | |
| alias stubs-path='export PATH=./bin:$PATH' | |
| alias rspec-de='docker compose exec -e RAILS_ENV=test web ./bin/rspec' |
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
| ZSH_THEME="robbyrussell" | |
| plugins=(rbenv zsh-vi-mode kubectl git) |
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
| " VUNDLE | |
| set nocompatible | |
| filetype off | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin('~/.vimplugins') | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') | |
| " let Vundle manage Vundle, required |
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
| # SpinaCMS will inject image URLs into the Trix content with the host:port as part of the URL | |
| # This makes it hard to port that DB content to another host (say move from localhost to a production or staging site) | |
| # load this patch from the config/application.rb like so:https://guides.rubyonrails.org/engines.html#overriding-models-and-controllers | |
| Spina::ImagesHelper.class_eval do | |
| def embedded_image_url(image) | |
| return "" if image.nil? | |
| main_app.polymorphic_path(image.variant(resize: Spina.config.embedded_image_size), only_path: true) | |
| end | |
| end |
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
| #!/bin/bash | |
| sudo find /usr/local/rvm/gems/ruby-1.9.2-p290/gems/spork-0.9.0 -name "*.rb" -exec chmod go+r {} \; | |
| sudo find /usr/local/rvm/gems/ruby-1.9.2-p290/gems/spork-0.9.0 -name "spork" -exec chmod g+r {} \; | |
| sudo find /usr/local/rvm/gems/ruby-1.9.2-p290/gems/spork-0.9.0 -type d -exec chmod go+rx {} \; | |
| sudo chmod -R g+rw /usr/local/rvm/gems/ruby-1.9.2-p290/gems | |
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
| desc "Generate a JavaScript file that contains your Rails routes" | |
| namespace :js do | |
| task :routes, [:filename] => :environment do |t, args| | |
| filename = args[:filename].blank? ? "rails_routes.js" : args[:filename] | |
| save_path = "#{Rails.root}/app/assets/javascripts/#{filename}" | |
| routes = generate_routes_for_rails_3 | |
| javascript = "" | |
| routes.each do |route| | |
| javascript << generate_method(route[:name], route[:path]) + "\n" |
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
| unbind C-b | |
| set -g prefix C-a | |
| # resize panes with VIM nav keys | |
| bind -r C-h resize-pane -L | |
| bind -r C-j resize-pane -D | |
| bind -r C-k resize-pane -U | |
| bind -r C-l resize-pane -R | |
| # faster tmux escape wait times? |
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
| RSpec.configure do |config| | |
| config.filter_run_excluding :remote => true | |
| config.before :each, :remote => true do | |
| # Configure code to hit the Braintree service | |
| end | |
| end | |
| # Include your remote specs within your "normal" specs | |
| describe Sweeper do |
NewerOlder