Skip to content

Instantly share code, notes, and snippets.

View nkeilar's full-sized avatar

Nathan Keilar nkeilar

View GitHub Profile
/**
* GRAPPELLI ACTIONS.JS
* minor modifications compared with the original js
*
*/
(function($) {
$.fn.actions = function(opts) {
var options = $.extend({}, $.fn.actions.defaults, opts);
var actionCheckboxes = $(this);
@nkeilar
nkeilar / noshly.sh
Created November 12, 2013 00:40
Django Project Launching Template for Guake
guake --rename-tab="System"
sleep 2
guake --new-tab=2 --rename-tab="Noshly Project" --execute-command="source ~/.bash_profile && workon fresh-start && cd ~/workspace/noshlyfs/ && clear" &
sleep 2
guake --new-tab=3 --rename-tab="Noshly Server" --execute-command="source ~/.bash_profile && workon fresh-start && cd ~/workspace/noshlyfs/ && python manage.py runserver 0.0.0.0:8070" &
sleep 2
guake --new-tab=4 --rename-tab="Noshly Console" --execute-command="source ~/.bash_profile && workon fresh-start && cd ~/workspace/noshlyfs/ && python manage.py shell_plus" &
sleep 2
guake --new-tab=5 --rename-tab="Noshly Email" --execute-command="source ~/.bash_profile && workon fresh-start && cd ~/workspace/noshlyfs/ && python -m smtpd -n -c DebuggingServer loca$
sleep 2
@nkeilar
nkeilar / filelisting.html
Created June 14, 2013 01:23
filebrowser with sorl thumbnails for thumbnail generation. Gets thumbnails working on S3.
{% load i18n future static fb_tags mezzanine_tags %}
{% load sorl_thumbnail %}
{% if query.pop %}
<style>
{% if query.pop == '4' %}
#media-library-popup #header, #media-library-popup .object-tools {display: none;}
#media-library-popup h1 {margin: -60px 0 15px 0;}
{% else %}
h1 {margin:-30px 0 15px 0;}