Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
$existing_methods = []
def print_methods(library)
new_methods = [].methods.sort - $existing_methods
for method in new_methods
puts "Array##{method}"
end
puts "(total: #{new_methods.size} added by #{library})\n\n"
@meangrape
meangrape / java.env
Created November 8, 2011 16:45 — forked from dln/java.env
Zookeeper RPM spec for CentOS 5.x, including python bindings
ZOO_LOG4J_PROP="INFO,ROLLINGFILE"
ZOO_LOG_DIR="/var/log/zookeeper/"
@meangrape
meangrape / is_perl.xs.patch
Created May 1, 2012 16:13
Fixes macvim install on OS X 10.7 with GCC4
--- a/src/if_perl.xs Wed Feb 29 19:20:03 2012 +0100
+++ b/src/if_perl.xs Tue Mar 13 17:15:51 2012 +0900
@@ -913,24 +913,6 @@
win_T *win_find_nr(int n) { return curwin; }
#endif
-XS(XS_VIM_Msg);
-XS(XS_VIM_SetOption);
-XS(XS_VIM_DoCommand);
-XS(XS_VIM_Eval);
@meangrape
meangrape / Follower intersection
Created July 11, 2013 21:10
The computational "tax"
Generously, we had three database servers and maybe forty application/web servers at the time. This was the default view of every other user.
If a user, U, clicked on another user, U' we would:
(a) get the list of followers from U', F'
(b) determine if any of the people in F' were protected
(1) determine if those protected users allowed user U to see their tweets or not
(c) get the last X tweets from each user in F' that U could see and compose them into a timeline
We didn't look at the users that might be visible on a page of tweets we did the intersection against all the followers.
We didn't cache any of the allowed-viewing-relationship information; it was computed every time directly from the databases any time a user clicked on any other user's page. So the result was a view of the user's timeline MINUS any tweets that belonged to protected users that you didn't follow.
@meangrape
meangrape / technical debt.txt
Last active August 29, 2015 14:02
What "technical debt" means to me.
The problem I have with the term technical debt is that
people retroactively declare it.
It's one thing to have good technical debt – a conscious
decision to put off work (like upgrading your database schema)
knowing that it would help you now, but believing that you need to
direct that effort elsewhere.
It's another thing to have bad technical debt
(similar to a payday loan) by implementing a stupid
2L H2O bladder
Water purification tablets (plus instructions)
Magnesium + scraper + flint
Stormproof matches
Wet Fire tinder
24 chemlights
1 ultralight medical kit
200' 550 cord
Leatherman multitool
Milspec compass

Keybase proof

I hereby claim:

  • I am jayed on github.
  • I am meangrape (https://keybase.io/meangrape) on keybase.
  • I have a public key ASD-bZjJUO3B8ACGltc_9e01_NtAZ_vMSMrjAC8QWJ-lPQo

To claim this, I am signing this object:

@meangrape
meangrape / awesome_sausage_wrap.txt
Last active July 24, 2017 23:44
Awesome Junky Spicy Sausage wrap!
12" flour tortilla
6-8 slices of pastrami
Sauerkraut
1-2 fried eggs
Ghost pepper garlic sausage (cooked)
10-12 crispy tater tots
Chili sauce (with onions and beef not that weird heinz stuff in a jar)
Pickled jalapeño
Sliced habanero (deseeded)
Nacho cheese sauce
@meangrape
meangrape / gist:882cca4bc71af5d681882c89a316d3e3
Created October 3, 2017 22:20
Terraform Debug Info; IPv6 CIDR validation
2017/10/03 18:07:16 [INFO] Terraform version: 0.10.7
2017/10/03 18:07:16 [INFO] Go runtime version: go1.9
2017/10/03 18:07:16 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"}
2017/10/03 18:07:16 [DEBUG] Attempting to open CLI config file: /home/jayed/.terraformrc
2017/10/03 18:07:16 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/10/03 18:07:16 [DEBUG] CLI Config is main.Config{Providers:map[string]string{}, Provisioners:map[string]string{}, DisableCheckpoint:false, DisableCheckpointSignature:false, PluginCacheDir:""}
2017/10/03 18:07:16 [INFO] CLI command args: []string{"plan"}
2017/10/03 18:07:16 [INFO] command: empty terraform config, returning nil
2017/10/03 18:07:16 [DEBUG] command: no data state file found for backend config
2017/10/03 18:07:16 [DEBUG] New state was assigned lineage "2c37d4ad-bfcd-4db5-b26e-eeb9919660c9"
+ trap __exit_cleanup EXIT INT
+ ps -a -o pid,args
+ grep 89355
+ grep -v grep
+ tr -s ' '
+ cut -d ' ' -f 3
+ CALLER=-