Skip to content

Instantly share code, notes, and snippets.

View hockeybuggy's full-sized avatar

Douglas Anderson hockeybuggy

View GitHub Profile
@hockeybuggy
hockeybuggy / MacSetup.md
Last active August 29, 2015 14:08
MacSetup

Mac Setup

Development

  • XCode
    • Install XCode from App store
    • Get command line tools
  • Homebrew
    • Install Homebrew
  • Terminal
@hockeybuggy
hockeybuggy / resulting_error.txt
Created October 9, 2014 18:38
Testing Flasks Jsonify method's behavior with lists and arrays
Traceback (most recent call last):
File "/home/douglas/devel/envs/forkchess/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/home/douglas/devel/envs/forkchess/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/home/douglas/devel/envs/forkchess/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/douglas/devel/envs/forkchess/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/home/douglas/devel/envs/forkchess/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
@hockeybuggy
hockeybuggy / gist:8805540
Created February 4, 2014 15:14
A simple way to monitor and record file size over time using only bash
while (cat text.txt | wc -l && sleep 30)do; done > timing.txt
#!/bin/sh
#### GITSHOTS ####
# to install place in the hooks directory of a git repo and make it executeable.
# requires fswebcam: https://github.com/fsphil/fswebcam
gitshotsDir="/home/douglas/media/pictures/.gitshots"
logFile="gitshots.log"
fswebcam --no-banner $gitshotsDir/`date +'%s'`.jpg -r 1280x720 -S 10 --log $gitshotsDir/$logFile
@hockeybuggy
hockeybuggy / gist:4163214
Created November 28, 2012 18:52
A simple terminal width command
while (tput cols && sleep 1)do; done