Skip to content

Instantly share code, notes, and snippets.

diff --git a/app/controllers/application.rb b/app/controllers/application.rb
index 00e5ce3..3393545 100644
--- a/app/controllers/application.rb
+++ b/app/controllers/application.rb
@@ -61,6 +61,7 @@ class ApplicationController < ActionController::Base
before_filter :activate_email
before_filter :set_p3p_header
before_filter :set_ua_compatible
+ before_filter :track_user
diff --git a/app/controllers/admin/partners_controller.rb b/app/controllers/admin/partners_controller.rb
index 07cb41a..0296210 100644
--- a/app/controllers/admin/partners_controller.rb
+++ b/app/controllers/admin/partners_controller.rb
@@ -44,7 +44,7 @@ class Admin::PartnersController < Admin::ApplicationController
@search = true
if params[:ben_name] && !params[:ben_name].empty?
@query = "beneficiary name \"#{params[:ben_name]}\""
- beneficiaries,count = Beneficiary.search_using_guidestar(params[:ben_name])
+ beneficiaries = Beneficiary.search_using_guidestar(params[:ben_name])
1 http://sender13.critsend.com/api_2.php
1 http://sender16.critsend.com/api_2.php
1 http://sender18.critsend.com/api_2.php
1 http://sender1.critsend.com/api_2.php
1 http://sender20.critsend.com/api_2.php
1 http://sender21.critsend.com/api_2.php
1 http://sender27.critsend.com/api_2.php
1 http://sender2.critsend.com/api_2.php
1 http://sender6.critsend.com/api_2.php
1 http://sender8.critsend.com/api_2.php
shivaram
the whole thing is vaguely surprising because i would have thought that until you're through the paywall, you're talking to a fake DNS server that simply redirects all hostname requests to the paywall page
4:26
evan
shivaram: it may just set a dns server using dhcp, so if you connect directly to another ip on port 53 your udp traffic will go through
it depends on the software, some of it is smart enough to do layer 3/4 stuff, some of it is at layer 7
4:27
shivaram
zones="cmplt.rating filtered.rating score uus.rating vol.rating"
static=".69.116.74."
critical="220"
bulletins="200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 82 83 84 85 86 87 88 89 92 93 94"
nonbulletins=150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
unused="120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148"
for ip in nonbulletins; do
for zone in zones; do
@derwiki
derwiki / jsontransform.py
Created May 11, 2011 05:01
JSON transformer
jeffws:~/x/rawdata/20110511_intl_users$
jeffws:~/x/rawdata/20110511_intl_users$ cat jsontransform.py
#!/usr/bin/python
import sys
import json
if __name__ == "__main__":
if len(sys.argv) < 2:
print "Usage:\n\
Takes a file with a JSON dictionary on each line and extracts keys to a tab seperated CSV output\n\
import: unable to open X server `' @ import.c/ImportImageCommand/367.
import: unable to open X server `' @ import.c/ImportImageCommand/367.
./jsontransform.py: line 5: syntax error near unexpected token `sys.stdout.write'
./jsontransform.py: line 5: ` sys.stdout.write( '\t'.join(json.loads(line)[key] for key in ('email', 'anonymous_id')) )'
def openfile(path):
with open(path) as fh:
return fh
Spinning up 8 worker processes...
pid id a length good matches time elapsed (s)
Process filename: suggestions-segfault.csv.0 , FILE*: 132b5070
Process filename: suggestions-segfault.csv.1 , FILE*: 132b5070
Process filename: suggestions-segfault.csv.2 , FILE*: 132b5070
Process filename: suggestions-segfault.csv.4 , FILE*: 132b5070
Process filename: suggestions-segfault.csv.5 , FILE*: 132b5070
Process filename: suggestions-segfault.csv.6 , FILE*: 132b5070
Process filename: suggestions-segfault.csv.7 , FILE*: 132b5070
Process filename: suggestions-segfault.csv.3 , FILE*: 132b5070
A D A M D E R E W E C K I
1456 Jones St. Apt 32, San Francisco, CA 94109 740-502-3073
derewecki@gmail.com @derwiki
linkedin.com/in/derewecki derwiki.tumblr.com
news.ycombinator.com/user?id=derwiki github.com/derwiki
== P R O F E S S I O N A L E X P E R I E N C E ==
Causes, Hacker (3/2011 - Present)
* Web Development