- Create your feature branch
git checkout -b my-new-feature
- Add your changes
git add changed-file
- Commit your changes
git commit
- Push to the branch
git push origin my-new-feature
This file contains 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
# To enable a per branch DBs, go to .env and add `DB_PER_BRANCH=true` | |
<% branch_suffix = ENV["DB_PER_BRANCH"] ? ("--" + `git rev-parse --abbrev-ref HEAD`.chomp)&.gsub(/\./, '')&.split('/')&.last : "" %> | |
development: | |
database: app_development<%= branch_suffix %> | |
This file contains 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
# A utility app to debug the Docker on AWS. | |
# | |
require 'sinatra' | |
require 'active_record' | |
require 'redis' | |
configure do | |
use Rack::CommonLogger, $STDOUT | |
end |
This file contains 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
ps -ef | grep Chrome | grep -v grep | awk '{print $2}' | xargs kill |
This file contains 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
FactoryBot.define do | |
factory :thing do | |
after(:build) do |thing, evaluator| | |
file_path = Rails.root.join('spec/fixtures/files/image-needs-auto-orient.jpg') | |
thing.photos.attach(io: File.open(file_path), filename: 'photo.jpg') | |
end | |
end | |
end | |
end |
This file contains 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
; I autostart because I am relied on by everything | |
[dir.caring] | |
port = 9000 | |
directory = /Users/craig/work/dir.caring.com | |
command = RBENV_VERSION=$(cat .ruby-version) zsh -c "source ~/.zshrc && ./bin/rails s -p $PORT" | |
; The rest of us must be started with `invoker add {app}.caring` | |
[find.caring] | |
directory = /Users/craig/work/find.caring.com | |
command = RBENV_VERSION=$(cat .ruby-version) zsh -c "source ~/.zshrc && ./bin/rails s -p $PORT" |
This file contains 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
<!DOCTYPE html><html><head><title>Your access to this site has been limited</title><style>html { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.42857143; | |
color: #333; | |
background-color: #fff; | |
} | |
body { | |
padding: 2rem; |
This file contains 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
query($id: ID!){ | |
localProperty(id: $id) { | |
id | |
name | |
status | |
description | |
sh_description | |
enhanced | |
latitude |
Planning
- 2 pound large shrimp (about 30) peeled, deveined
- 1 cup picked cilantro leaves (about 1 bunch trimmed of most long stems.)
- 6 garlic cloves
- 3 limes, zested and juiced
- 1 tablespoon salt
- 1/2 tablespoon black pepper
- 1 cup olive oil
- Red pepper flakes to taste
sudo ls -l /usr/local/lib/libmy*
lrwxr-xr-x 1 craig staff 50 Apr 16 2015 /usr/local/lib/libmysqlclient.18.dylib -> ../Cellar/mysql/5.6.23/lib/libmysqlclient.18.dylib
lrwxr-xr-x 1 craig staff 43 Apr 16 2015 /usr/local/lib/libmysqlclient.a -> ../Cellar/mysql/5.6.23/lib/libmysqlclient.a
lrwxr-xr-x 1 craig staff 47 Apr 16 2015 /usr/local/lib/libmysqlclient.dylib -> ../Cellar/mysql/5.6.23/lib/libmysqlclient.dylib
lrwxr-xr-x 1 craig staff 52 Apr 16 2015 /usr/local/lib/libmysqlclient_r.18.dylib -> ../Cellar/mysql/5.6.23/lib/libmysqlclient_r.18.dylib
lrwxr-xr-x 1 craig staff 45 Apr 16 2015 /usr/local/lib/libmysqlclient_r.a -> ../Cellar/mysql/5.6.23/lib/libmysqlclient_r.a
lrwxr-xr-x 1 craig staff 49 Apr 16 2015 /usr/local/lib/libmysqlclient_r.dylib -> ../Cellar/mysql/5.6.23/lib/libmysqlclient_r.dylib
lrwxr-xr-x 1 craig staff 38 Apr 16 2015 /usr/local/lib/libmysqld.a -> ../Cellar/mysql/5.6.23/lib/libmysqld.a
lrwxr-xr-x 1 craig staff 45 Apr 16 2015 /usr/local/lib/libmysqlservices.a ->
NewerOlder