- 2 Tbsp vegetable oil
- Red bell pepper, diced
- Yellow bell pepper, diced
- 4 cloves garlic, minced
- 2 yellow onions, minced
- 24 oz. can tomatoes, diced (Pastine 4-LYFE)
- 24 oz. can tomatoes, crushed (See above)
- 1 can black beans, drained/rinsed
- 1 can kidney beans, drained/rinsed
- 1 can vegetable stock
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
#!/bin/sh | |
tm() { | |
if [ -z $1 ]; then | |
tmux switch-client -l | |
else | |
if [ -z "$TMUX" ]; then | |
tmux new-session -As $1 | |
else | |
if ! tmux has-session -t $1 2>/dev/null; then | |
TMUX= tmux new-session -ds $1 |
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
# Overwrite `t` helper in Rails views to raise in tests, | |
# which it otherwise doesn't do, even if I18n is configured to. | |
# | |
# Installation: | |
# put in lib/i18n_raise_on_missing_in_action_view.rb | |
# and require "i18n_raise_on_missing_in_action_view" in e.g. config/environments/test.rb | |
if Rails.env.test? | |
module ActionView::Helpers::TranslationHelper | |
def t_with_raise(*args) |
Teams kind of broke it last time. So did too many rules. Let's strip it down.
If the ball goes between 2 pins and they're the only ones left, your score for the frame is set to 3 points (not 8). If you get a "field bowl", even if you have more rolls left (i.e. in candlepin, you have three rolls per frame), your turn is over.
If you knock down 1 pin every turn except for your first roll, your score for the game is a perfect 300 points. We ignore the first roll so you can decide whether to shoot the moon based on your first-round score. Your first roll is referred to as the Queen of Spades. Jump shots don't count against shooting the moon, so they can be a good, albeit crazy, source of extra points.
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
#!/bin/sh | |
library=/usr/local/Homebrew/Library/Homebrew | |
mv "$library"/cmd/{upgrade,upgrayyed}.rb | |
sed -E -i '' 's/def upgrade$/def upgrayyed/' "$library"/cmd/upgrayyed.rb | |
# No longer exists -- where is the completion? | |
# sed -i '' 's/upgrade/upgrayyed/' /usr/local/Library/Contributions/brew_zsh_completion.zsh |
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
gem 'lograge' # more readable logs | |
gem 'logstash-event' # for logstash json format | |
gem 'mono_logger' # threadsafe logging |
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
# Use vim keybindings in copy mode | |
setw -g mode-keys vi | |
bind-key -t vi-copy v begin-selection | |
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" | |
unbind -t vi-copy Enter | |
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" |
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
module ArrayMatching | |
class ArrayMatching | |
def initialize(array) | |
@array = array | |
end | |
def ==(other_array) | |
Set.new(@array) == Set.new(other_array) | |
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
gemname=$1 | |
bundle gem $gemname | |
cd $gemname | |
git commit -am"bundle gem $gemname" | |
git checkout --orphan dummy | |
git rm -rf . | |
cd .. | |
rails plugin new $gemname \ | |
--skip-bundle \ | |
--skip-keeps \ |
NewerOlder