Skip to content

Instantly share code, notes, and snippets.

View katylava's full-sized avatar
🐢

katy lavallee katylava

🐢
View GitHub Profile
# Store data in /usr/local/var/mongodb instead of the default /data/db
dbpath = /usr/local/var/mongodb
# Append logs to /usr/local/var/log/mongodb/mongo.log
logpath = /usr/local/var/log/mongodb/mongo.log
logappend = true
# Only accept local connections
bind_ip = 127.0.0.1
@katylava
katylava / keybase.md
Created April 10, 2014 20:23
keybase.md

Keybase proof

I hereby claim:

  • I am katylava on github.
  • I am katylava (https://keybase.io/katylava) on keybase.
  • I have a public key whose fingerprint is A9CE F4F6 C2EE CA43 D9AE 7AC5 5C98 B583 35BF 056B

To claim this, I am signing this object:

#!/usr/bin/env bash
git remote prune origin;
for b in `git br --merged master | grep -v "^\s\+master$" | grep -v "^\*"`; do
git br -d $b;
done;
# gist git-cleanup -u 10907671
{
"browser": false,
"node": true,
"predef": ["after", "afterEach", "before", "beforeEach", "describe", "it" ],
"strict": false, // this should unnecessary -- default is false -- but seems to be enabled in some environments
// Katy
// enforcing options
// "camelcase": true, // require camelCase or ALL_UPPER -- this would be nice but we don't control all identifiers (e.g. the ones from jsforce)
var choseongInit = 'G;GG;N;D;DD;L;M;B;BB;S;SS;;J;JJ;C;K;T;P;H';
var jungseongInit = 'A;AE;YA;YAE;EO;E;YEO;YE;O;WA;WAE;OE;YO;U;WEO;WE;WI;YU;EU;YI;I';
var jongseongInit = ';G;GG;GS;N;NJ;NH;D;L;LG;LM;LB;LS;LT;LP;LH;M;B;BS;S;SS;NG;J;C;K;T;P;H';
function Romanize()
{
choseongList = choseongInit.split(';');
jungseongList = jungseongInit.split(';');
jongseongList = jongseongInit.split(';');
@katylava
katylava / ol.md
Created August 22, 2014 22:03
ordered list
  1. stuff
  2. things
  3. more stuff
  4. more things
  5. number five
  6. dogs
  7. cats
  8. people
  9. monkeys
  10. i don't know what i'm talking about
@katylava
katylava / crontab
Created October 3, 2014 15:56
Duck Duck Go's instant answer for "crontab cheat sheet"
# Commands are executed by cron when the minute, hour, and month of year
# fields match the current time, and at least one of the two day fields
# (day of month, or day of week) match the current time. A field may be
# an asterisk (*), which will always match.
#
# Fields in order:
# minute (0-59)
# hour (0-23)
# day of month (1-31)
# month (1-12 or first three letters)
#!/usr/bin/env python
"""
1. Copy pending transactions from chase.com
2. `pbpaste | path/to/pending2ynab.py > ~/Desktop/ynabimport.csv`
3. Import ~/Desktop/ynabimport.csv file into YNAB
"""
import re
import sys
@katylava
katylava / woot-description.txt
Created December 3, 2010 17:01
Woot.com description for MASTRAD 12-OUNCE MICROWAVE STEAMER 2-PACK
COMING THIS FALL…
To every TV station in America.
INTERIOR: WE SEE A HARDENED CRIMINAL (NOT AFRICAN-AMERICAN. WE HAVE TO AVOID THAT UNTIL AT LEAST THE THIRD EPISODE) AT A TABLE AT AN INTERROGATION ROOM.
NARRATOR
Insert City here is known for its tough streets and even tougher criminals.
CUT TO: close-up on CRIMINAL’S face
@katylava
katylava / gist:733913
Created December 8, 2010 21:08
split csv file into smaller files
split huge-ass csv file into smaller files
$ wc -l *
40989 IrvineCustomerData.csv
$ split -l 5000 IrvineCustomerData.csv IrvineCustomerData-
$ wc -l *
5000 IrvineCustomerData-aa
5000 IrvineCustomerData-ab