Skip to content

Instantly share code, notes, and snippets.

View robbiet480's full-sized avatar
😩
terminally online

Robbie Trencheny robbiet480

😩
terminally online
View GitHub Profile
[13:21:30] <@robbiet480> hi
[13:21:37] <@robbiet480> what am i building at this hackathon
[13:21:48] <vil> hi all
[13:21:56] <@robbiet480> http://www.eventbrite.com/e/esri-devsummit-hackathon-tickets-10023828541
[13:22:04] <vil> robbiet480: a duck
[13:22:21] <@robbiet480> vil: i'm telling nickq that you advocated a duck over a loon
[13:22:29] <@robbiet480> i believe this is your second strike
[13:22:39] <vil> well yes, no one could ever *build* a loon
[13:22:41] <vil> they're too majestic
[13:22:46] <@robbiet480> nice save
➜ ~ ping 4.2.2.1
PING 4.2.2.1 (4.2.2.1): 56 data bytes
64 bytes from 4.2.2.1: icmp_seq=0 ttl=57 time=49.512 ms
64 bytes from 4.2.2.1: icmp_seq=1 ttl=57 time=67.373 ms
64 bytes from 4.2.2.1: icmp_seq=2 ttl=57 time=58.527 ms
64 bytes from 4.2.2.1: icmp_seq=3 ttl=57 time=50.632 ms
64 bytes from 4.2.2.1: icmp_seq=4 ttl=57 time=59.802 ms
64 bytes from 4.2.2.1: icmp_seq=5 ttl=57 time=67.282 ms
64 bytes from 4.2.2.1: icmp_seq=6 ttl=57 time=70.060 ms
64 bytes from 4.2.2.1: icmp_seq=7 ttl=57 time=14.362 ms
➜ ~ curl -v "chrome-navigation-error.info"
* Adding handle: conn: 0x7fb9f480c000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fb9f480c000) send_pipe: 1, recv_pipe: 0
* About to connect() to chrome-navigation-error.info port 80 (#0)
* Trying 205.251.242.147...
* Connected to chrome-navigation-error.info (205.251.242.147) port 80 (#0)
> GET / HTTP/1.1
@robbiet480
robbiet480 / generate.sh
Created September 28, 2013 19:04
script to generate certificates from your own certificate authority
#!/bin/bash
if [ "$#" == "0" ]; then
echo "Please enter the domain name: "
read sslhost
else
sslhost=$1
fi
mkdir output/$sslhost
openssl req -config openssl.my.cnf -new -nodes -keyout output/$sslhost/$sslhost.key -out output/$sslhost/$sslhost.csr -days 365 -subj "/C=US/ST=California/L=Oakland/CN=$sslhost"
openssl ca -config openssl.my.cnf -policy policy_anything -out output/$sslhost/$sslhost.crt -infiles output/$sslhost/$sslhost.csr
➜ ~ ab -n 1000 -c 5 https://js.balancedpayments.com/v1/balanced.js
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking js.balancedpayments.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Traceback (most recent call last):
File "/usr/local/bin/tilestache-seed.py", line 331, in <module>
mimetype, content = getTile(layer, coord, extension, options.ignore_cached)
File "/usr/local/lib/python2.7/dist-packages/TileStache/__init__.py", line 64, in getTile
status_code, headers, body = layer.getTileResponse(coord, extension, ignore_cached)
File "/usr/local/lib/python2.7/dist-packages/TileStache/Core.py", line 415, in getTileResponse
tile = self.render(coord, format)
File "/usr/local/lib/python2.7/dist-packages/TileStache/Core.py", line 496, in render
tile = provider.renderArea(width, height, srs, xmin, ymin, xmax, ymax, coord.zoom)
File "/usr/local/lib/python2.7/dist-packages/TileStache/Mapnik.py", line 123, in renderArea
<advancedsettings>
<loglevel hide="false">2</loglevel>
<videodatabase>
<type>mysql</type>
<host>10.0.1.2</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</videodatabase>
<musicdatabase>
sab d2ccada84fce8f6fc18d46c12e567b12
sick d6ba05f718fc36ee7b6f4d5a90e83fa6
couch 09f115d17e79405cb3b033a06040fa72
head 0d622308fe17354fe9601495919b1a64
ndx 75451eddff9739474518f21313a407fe
nzbs 302983 eb7f688fa4449528fc463cd482564667
nzbu 76b3d580e7141cbee06ed59f79c4568f
var footer = "\r\n\r\nU can say STATUS 4 status, ON 2 turn on msgs, OFF 2 turn off. Pwred by BARTStriking.com & Twilio.com";
<advancedsettings>
<pathsubstitution>
<substitute>
<from>/Media</from>
<to>smb://10.0.1.2/Media</to>
</substitute>
</pathsubstitution>
<videodatabase>
<type>mysql</type>
<host>10.0.1.2</host>