Skip to content

Instantly share code, notes, and snippets.

View textarcana's full-sized avatar

Noah Sussman textarcana

View GitHub Profile
After do
MVOR.Postage.threshold = BigDecimal.new('6.99')
MVOR.Postage.rate = BigDecimal.new('30.00')
end
@ScotterC
ScotterC / pre-push.sh
Created September 2, 2015 16:46
Git Hook PrePush protection for force pushing
#!/bin/sh
# Called by "git push" after it has checked the remote status,
# but before anything has been pushed.
#
# If this script exits with a non-zero status nothing will be pushed.
#
# Steps to install, from the root directory of your repo...
# 1. git config --global init.templatedir '~/.git-templates'
# 2. mkdir -p ~/.git-templates/hooks
Replace 'jsheckler' with your own User ID in the steps below.
Edit in /etc/sysconfig/hudson:
HUDSON_HOME="/home/jsheckler/.hudson"
HUDSON_USER="jsheckler"
HUDSON_PORT="8989"
then:
@noodley
noodley / gnc-fault-protection-notes
Created September 10, 2011 02:53
GN&C Fault Protection Fundamentals Notes
Link: https://pub-lib.jpl.nasa.gov/docushare/dsweb/Get/Document-316/08-031+GN%26C+Fault+Protection+Fundamentals.pdf
Fault tolerance vs. Variation tolerance
Variations - the changes to system behavior that are within the design of the system
Fault - departure from intended functionality
q - As we model a system can the architecture be changed to change previous faults into variations?
As a system scales do previous faults, such as hardware failures, become variations due to their frequency?
As fault protection systems grow they can become the source of failure (think Oracle RAC or Cisco Spanning Tree). The
increased complexity and ad hoc nature of fault protection mechanisms are signs of a loss of architectural integrity.
@19h
19h / Closure.txt
Created January 21, 2012 21:20
Closure Compiler HELP
--accept_const_keyword : Allows usage of const keyword.
--charset VAL : Input and output charset for all files
. By default, we accept UTF-8 as input
and output US_ASCII
--closure_entry_point VAL : Entry points to the program. Must be g
oog.provide'd symbols. Any goog.provid
e'd symbols that are not a transitive
dependency of the entry points will be
removed. Files without goog.provides,
and their dependencies, will always b
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
sudo apt-get update
sudo apt-get upgrade
@garann
garann / gist:3353532
Created August 14, 2012 22:23
Crowdsourced career mentorship for female developers

I was inspired by Selena Deckelmann's list of Career Resources for Women (http://www.chesnok.com/daily/career-resources-for-women/), but couldn't think of much to contribute. So I thought maybe those of us already in the field and in a position to mentor could work on creating more. Please fork or comment and add your own!

Also: there is a wealth of info online and elsewhere dating back to the first time it occurred to our species to exchange labor for currency on these topics in general. What I hope we can provide here is our take as individuals. What we would say to someone if we were sitting across from her acting as a mentor. I don't think we should worry about being objectively "right", or about duplicating topics. I add this bit of anti-editorializing in hopes that women will contribute without feeling pressured to be experts, which I worry might prevent them from doing so. TY. :)

Applying for jobs

@marick
marick / devops.md
Last active December 1, 2015 22:52

OK. Slightly - slightly - less half-baked thoughts about devops.

At the time of the Agile Manifesto, Agile's big competitor was the Rational Unified Process (RUP). It was a process that was tailorable to any situation. But it required tailoring to any given situation.

The intro to XP Explained was a breath of fresh air because it sharply limited its scope: small teams, requirements in flux. Then it said, prescriptively: such teams should do these N things, learn to do them really well, and leave all the "well, we're special because..." for later.

@bunnymatic
bunnymatic / meteor
Last active December 10, 2015 09:49
new meteor shell script which alllows execution of node processes with easy access to the MeteorJS environment if it's run as meteor-exec. To make this work, replace /usr/local/meteor/bin/meteor with this file, and add a link from meteor-exec to this.
#!/bin/bash
BUNDLE_VERSION=0.2.8
# OS Check. Put here because here is where we download the precompiled
# bundles that are arch specific.
UNAME=$(uname)
if [ "$UNAME" != "Linux" -a "$UNAME" != "Darwin" ] ; then
echo "Sorry, this OS is not supported."
exit 1
#!/bin/bash
cat all.json |
# curl 'http://www.khanacademy.org/api/v1/videos/localized/all' |
jq -r '
[
.[] |
{
title,
en_id:.youtube_ids["en"],