Skip to content

Instantly share code, notes, and snippets.

sidewalk

This morning Dan took Roan and Hazel to the park in the wagon. Hazel sat behind him. They were giggling.

Yesterday I spent a good chunk of time guessing how to write these words. Mostly where to put them. Medium, WordPress, Tumblr, etc. In the end, a Gist feels best.

I took the photo on the way to train. It doesn't do justice to the Provident Mutual Life Insurance Building. The naked eye is better at making out the model schooner atop the spire and the engraved letters below the top row of windows.

I also continue to look into ngx_lua, the Lua Nginx module, packaged up in OpenResty. I'm encouraged by articles such as Rearchitecting GitHub Pages. Potentially fast and stable, as long as the embedded Lua

I rode my bike to work today. I put my belt on backwards to alternate its wear. The rear loop on my black 510s is especially worn at the top.

I looked at spreadsheets from Todd around the work he’s doing on procurement. We’re meeting tomorrow afternoon to talk about it.

I watched part of a masterclass webinar on CloudFormation last night while cleaning the kitchen. I’m wondering how well it might combine with Docker, and whether that might lead to Wercker in our deploy pipeline from GitHub.

I got the new Business Services Portal (BSP) site up and running on AWS. It’s in OpsWorks, deploying via trigger from Travis CI, same as our current setup for alpha.phila.gov. The Composer private repository, compiled by Satis, was serving up a bad zip of the Mega Project theme. I had to rm the file and clear the cache before building again.

I fixed the database syncing on the management server, which needed an updated version of the cookbooks.

@gsf
gsf / base16-hterm.js
Last active July 11, 2016 22:37 — forked from petrhosek/pref.js
// Disable bold.
term_.prefs_.set('enable-bold', false);
// Use this for base16-default.
term_.prefs_.set('background-color', "#151515");
term_.prefs_.set('foreground-color', "rgba(255, 255, 255, 0.8)");
term_.prefs_.set('cursor-color', 'rgba(255, 255, 255, 0.5)');
term_.prefs_.set('color-palette-overrides', [
'#151515',
[Unit]
Description=Hooky Service
After=network.target
[Service]
User=hooky
WorkingDirectory=/var/lib/hooky
ExecStart=/usr/bin/node /home/gsf/git/hooky/server.js -v
[Install]
server {
if ($http_x_forwarded_proto = http) {
return 301 https://$host$request_uri;
}
add_header Strict-Transport-Security "max-age=31536000";
set $cache_uri $uri;
# Needed for some admin sections

Keybase proof

I hereby claim:

  • I am gsf on github.
  • I am gsf (https://keybase.io/gsf) on keybase.
  • I have a public key whose fingerprint is 3B58 9390 3982 C677 C0B3 49E7 3326 71C2 0EE8 B1D0

To claim this, I am signing this object:

@gsf
gsf / gist:257ffc763d8a96f0fe24
Created October 9, 2014 21:37
Ethics download
curl 'http://plis.cloudapp.net/Public/wfSearch.aspx' -H 'Cookie: ASP.NET_SessionId=2flgiiscl5dmb0z4mwebitrj' -H 'Origin: http://plis.cloudapp.net' -H 'Accept-Encoding: gzip,deflate' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.101 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Cache-Control: max-age=0' -H 'Referer: http://plis.cloudapp.net/Public/wfSearch.aspx' -H 'Connection: keep-alive' --data 'ToolkitScriptManager1_HiddenField=%3B%3BAjaxControlToolkit%2C+Version%3D3.5.40412.0%2C+Culture%3Dneutral%2C+PublicKeyToken%3D28f01b0e84b6d53e%3Aen-US%3A1547e793-5b7e-48fe-8490-03a375b13a33%3A475a4ef5%3Aeffe2a26%3A8e94f951%3A1d3ed089%3A5546a2b%3Ad2e10b12%3Af9e9a939&__EVENTTARGET=ctl00%24MainContent%24tcSearch%24tpQuickSearch%24ucQuickSearch%24lnbExportWOSearch&__EVENTARGUMENT=&MainContent_tcSearch_ClientState=%7B
@gsf
gsf / gist:9515a50187fcbca16981
Last active August 29, 2015 14:07
RecordTrac example data on Heroku
$ heroku run python db_users.py
Running `python db_users.py` attached to terminal... up, run.9338
Traceback (most recent call last):
  File "db_users.py", line 4, in <module>
    set_directory_fields()
  File "/app/public_records_portal/prr.py", line 284, in set_directory_fields
    csvfile = urllib.urlopen(app.config['STAFF_URL'])
  File "/app/.heroku/python/lib/python2.7/urllib.py", line 87, in urlopen
    return opener.open(url)
@gsf
gsf / fi8910w-cvlc.md
Last active August 29, 2015 14:04
FI8910W cvlc

Audio only:

$ cvlc --network-caching=0 --no-video 'http://xxxxxx:xxxxx@xxxxxx/videostream.asf?rate=11'

With video:

$ cvlc --network-caching=0 --fullscreen 'http://xxxxxx:xxxxx@xxxxxx/videostream.asf?rate=11'
@gsf
gsf / gist:a4c20515656615347dfe
Created July 19, 2014 03:17
Git cleanslate
$ git fetch
$ git reset --hard FETCH_HEAD