Skip to content

Instantly share code, notes, and snippets.

Pressure cooker Pho Ga (vietnamese chicken soup)

OK. First of all, this does not aim to be authentic in any sense of the word or be simple or be perfect. It is a reasonable approximation of a favorite chicken soup/flavor profile produced with what I see as the right level of tradeoffs between time saving and being finicky. The most memorable Pho Ga I've had was at Turtle Tower in SF. This is chasing that flavor memory but also maybe some of my own chicken soup preferences.

Tools required:

  • Pressure Cooker (stovetop or electric)
  • Fine mesh sieve or chinois
  • Cast iron pan
@quirkey
quirkey / rbtrace.rb
Created April 17, 2015 03:17
rbtrace
# pid = pid of running ruby process
tracer = RBTracer.new(pid)
output = tracer.eval("StackProf.start")
puts output #=> "<StackProf ....>"
@quirkey
quirkey / json_log_stats.rb
Last active August 29, 2015 14:08
JSON log stats
#!/usr/bin/env ruby
require 'json'
require 'descriptive_statistics'
def print_data_summary(key_name, data)
puts "-----------------------------------------------------------"
puts "-- #{key_name} --"
puts "Data Points:\t\t#{data.length}"
puts "Mean:\t\t#{data.mean}"
puts "Median:\t\t#{data.median}"
@quirkey
quirkey / console_helpers.rb
Last active February 13, 2020 19:57
All the code for the Paperless Profiler
require 'rblineprof'
module Rblineprof
module ConsoleHelpers
include Rblineprof::Helpers
def lineprof_block(options = {}, &block)
profile = lineprof(rblineprof_profiler_regex(options[:lineprofiler])) do
ret = yield
end
#!/bin/bash
# Bandwidth throttling for OSX,
# http://www.macosxhints.com/article.php?story=20080119112509736
case "$1" in
'start')
KB=$2
echo Throttling at $KB Kbytes/s
sudo ipfw pipe 1 config bw "$KB"KByte/s
#!/bin/bash
# Bandwidth throttling for OSX,
# http://www.macosxhints.com/article.php?story=20080119112509736
case "$1" in
'start')
KB=$2
echo Throttling at $KB Kbytes/s
sudo ipfw pipe 1 config bw "$KB"KByte/s
@quirkey
quirkey / Creeds.md
Created June 8, 2013 18:17
The current state of the Paperless Post Dev Teams Creeds http://dev.paperlesspost.com

The Paperless Post Developer Creeds

For as long as we've been a team, we've tried hard to work with a set of guiding principles. These are not hard and fast rules, but rather a set of informal maxims that help us to make decisions, prioritize our work, and generally ship a ton of quality code. We're here to work hard, have fun, and make our customers happy, and we feel that these principles can help us make that happen.

Fixing > Complaining

We work in an ever changing system. Yesterday's awesome work is today's legacy code. Complaining that a piece of code or system doesn't work or isn't correct will not fix it. We are all responsible for this "bad" code which means we're also responsible for making it better.

Helping > Winning

#!/usr/bin/env ruby
# Evaluates a sample of keys/values from each redis database, computing statistics for each key pattern:
# keys: number of keys matching the given pattern
# size: approximation of the associated memory occupied (based on size/length of value)
# percent: the proportion of this 'size' relative to the sample's total
#
# Copyright Weplay, Inc. 2010. Available for use under the MIT license.
#!/usr/bin/env ruby
# script/whitespace
#
# Strips whitespace from any files modified in git
# Also:
# - converts tabs to spaces
# - ensures a single newline at the end
class WhitespaceProcessor
def self.process(code)
½ cup light brown sugar
¼ cup sweet paprika
1 tbsp. chili powder
1 tbsp. onion powder
1 tbsp. garlic powder
1 tbsp. cayenne
apple cider (farmer's market)
3 lemons
Shichimi togarashi
crème fraîche