Skip to content

Instantly share code, notes, and snippets.

@knowtheory
knowtheory / gist:10547187
Last active August 29, 2015 13:59
Include this in your .bash_profile to get colors, info and autocompletion on your prompt (if git is installed via homebrew)
# Git comes with some shell scripts you can load to get
# nifty shell features. Homebrew sticks them in /usr/local/etc/bash_completion.d
source "/usr/local/etc/bash_completion.d/git-prompt.sh"
source "/usr/local/etc/bash_completion.d/git-completion.bash"
# apparently you can specify __git_ps1 as the thing that
# renders your prompt by setting PROMPT_COMMAND.
# Setting the PROMPT_COMMAND lets git display colors.
#
# The alternative is just to set the PS1 variable.
#
var Temperature = Backbone.Model.extend({
defaults: {
celsius: 0
},
fahrenheit: function(value) {
if (typeof value == 'undefined') {
return this.c2f(this.get('celsius'));
}
value = parseFloat(value);
this.set('celsius', this.f2c(value));
require "formula"
class Tesseract < Formula
homepage 'http://code.google.com/p/tesseract-ocr/'
url 'https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz'
sha1 'a950acf7b75cf851de2de787e9abb62c58ca1827'
revision 2
bottle do
sha1 "5949807031e5d1a5c4382ed93afa06e684be104f" => :mavericks
  • Ninja Tune
    • ColdCut
    • Chris Bowden
    • the Heritage Orchestra
    • Mr. Scruff
  • BT
  • Paul van Dyk
  • Above & Beyond
  • Alarm Will Sound
  • Art of Trance

Keybase proof

I hereby claim:

  • I am knowtheory on github.
  • I am knowtheory (https://keybase.io/knowtheory) on keybase.
  • I have a public key whose fingerprint is FEC1 0FEA F6E0 2ED4 B402 8629 B8FB F68F BD05 6639

To claim this, I am signing this object:

@knowtheory
knowtheory / describe_instances.txt
Created September 10, 2014 21:49
Documentation for the AWS ruby gem in a format that's actually comprehensible for humans to read.
"Calls the DescribeInstances API operation.\n
@param [Hash] options\n
* `:dry_run` - (Boolean) \n
* `:instance_ids` - (Array&lt;<String>) One or more instance IDs. Default: Describes all your instances.\n
* `:filters` - (Array&lt;<Hash>) One or more filters.
architecture - The instance architecture (i386 | x86_64).
availability-zone - The Availability Zone of the instance.
block-device-mapping.attach-time - The attach time for an Amazon EBS volume mapped to the instance.
block-device-mapping.delete-on-termination - A Boolean that indicates whether the Amazon EBS volume is deleted on instance termination.
block-device-mapping.device-name - The device name for the Amazon EBS volume (for example, /dev/sdh). block-device-mapping.status - The status for the Amazon EBS volume (attaching | attached | detaching | detached).
OpenSSL Security Advisory [19 Mar 2015]
=======================================
OpenSSL 1.0.2 ClientHello sigalgs DoS (CVE-2015-0291)
=====================================================
Severity: High
If a client connects to an OpenSSL 1.0.2 server and renegotiates with an
invalid signature algorithms extension a NULL pointer dereference will occur.

No it's not always given, but that itself is a complicated issue.

This particular topic has been approached from a variety of different angles in reporting. I've seen reporting focused on the misery/impact on individuals and the way that even tiny fines snowball. I know of at least one township in Ohio that was dissolved by state courts because it was essentially just a speed trap scam along I-70 (New Rome). I've seen people talk about filling budget gaps with tickets & fines.

I worry that Ryan's right that this is the kind of issue that's too big or ultimately too rooted policy to bring to the ground w/o a hook like tragic consequences of what is ultimately shitty ad hoc policing, judicial and tax policy.

So, the question of whether the public is responsible for paying attention is also a complicated topic... because citizens don't have a systemic understanding of governance or things like how police departments are funded.

When Chief Belmar says that thi

umbra:www.portionator.dev ted$ merb-gen app ./
Generating with app generator:
[IDENTICAL] spec
[ADDED] tasks/merb.thor
[CONFLICT] .gitignore
1. skip
2. overwrite
3. render
4. diff
5. abort
[CONFLICT] config/dependencies.rb
1. skip
2. overwrite
3. render
4. diff
5. abort
How do you wish to proceed with this file?
4
Showing differences for config/dependencies.rb