Skip to content

Instantly share code, notes, and snippets.

View peterfarrell's full-sized avatar
🏠
Working from home

PJ Farrell peterfarrell

🏠
Working from home
View GitHub Profile
@peterfarrell
peterfarrell / crush.sh
Last active August 29, 2015 14:10
Crush / compress - jpg and png bash file
crush() {
for f in *;
do
mv "$f" `echo $f | tr ' ' '_'`
done
for f in *.png
do
echo "$f"
pngcrush -brute "$f"{,.} && du -b "$f"{,.}
@peterfarrell
peterfarrell / gist:6441706
Created September 4, 2013 19:30
Heroku Gunicorn crash
2013-09-04T19:29:09.172901+00:00 heroku[web.1]: Starting process with command `gunicorn verde.wsgi -b 0.0.0.0:55192 --pythonpath verde --log-level debug`
2013-09-04T19:29:11.222968+00:00 app[web.1]: 2013-09-04 19:29:11 [2] [INFO] Starting gunicorn 18.0
2013-09-04T19:29:11.225791+00:00 app[web.1]: 2013-09-04 19:29:11 [2] [DEBUG] Arbiter booted
2013-09-04T19:29:11.225924+00:00 app[web.1]: 2013-09-04 19:29:11 [2] [INFO] Listening at: http://0.0.0.0:55192 (2)
2013-09-04T19:29:11.226056+00:00 app[web.1]: 2013-09-04 19:29:11 [2] [INFO] Using worker: sync
2013-09-04T19:29:11.245827+00:00 app[web.1]: 2013-09-04 19:29:11 [7] [INFO] Booting worker with pid: 7
2013-09-04T19:29:11.339348+00:00 heroku[web.1]: State changed from starting to up
2013-09-04T19:29:11.434050+00:00 app[web.1]: 2013-09-04 19:29:11 [7] [ERROR] Exception in worker process:
2013-09-04T19:29:11.434050+00:00 app[web.1]: self.wsgi = self.app.wsgi()
2013-09-04T19:29:11.434050+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/