Skip to content

Instantly share code, notes, and snippets.

View pwhipp's full-sized avatar

Paul Whipp pwhipp

View GitHub Profile
@pwhipp
pwhipp / 0_reuse_code.js
Created July 18, 2014 00:46
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
[06-May-2014 22:38:32] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful
[06-May-2014 22:38:32] NOTICE: fpm is running, pid 407
[06-May-2014 22:38:32] NOTICE: ready to handle connections
[06-May-2014 22:40:32] NOTICE: Finishing ...
[06-May-2014 22:40:32] NOTICE: exiting, bye-bye!
[06-May-2014 22:40:32] NOTICE: fpm is running, pid 6732
[06-May-2014 22:40:32] NOTICE: ready to handle connections
[06-May-2014 22:57:41] NOTICE: Finishing ...
[06-May-2014 22:57:41] NOTICE: exiting, bye-bye!
@pwhipp
pwhipp / remove_unused_translation_fields.py
Created July 17, 2014 00:19
remove_unused_translation_fields for django_modeltranslation
# -*- coding: utf-8 -*-
"""
Remove all unused translatable fields in all models and sync database structure.
You will need to execute this command in two cases:
1. When you remove languages from settings.LANGUAGES.
"""