Skip to content

Instantly share code, notes, and snippets.

View bensternthal's full-sized avatar
😻

Benjamin Sternthal bensternthal

😻
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bensternthal on github.
  • I am bensternthal (https://keybase.io/bensternthal) on keybase.
  • I have a public key whose fingerprint is 0A11 6A09 8D91 9006 C089 B38D 8590 B326 4F33 3AB5

To claim this, I am signing this object:

@bensternthal
bensternthal / gist:9238814
Created February 26, 2014 21:20
Git Config For Pretty Log "git lg"
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"
diff --git a/bedrock/settings/base.py b/bedrock/settings/base.py
index dede288..5599296 100644
--- a/bedrock/settings/base.py
+++ b/bedrock/settings/base.py
@@ -1113,6 +1113,9 @@ CSP_DEFAULT_SRC = (
'*.mozilla.net',
'*.mozilla.org',
'*.mozilla.com',
+ 'www.google.com',
+ 'cse.google.com',
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<a href="http://www.mozilla.org">
<div>
How has working with your manager been this last quarter?
What are the things your manager does really well?
What are the things your manager could improve?
Within Web Productions, what could your manager do to make you or our team more effective.
In the larger Mozilla universe, what would you like to see your manager work to improve?
@bensternthal
bensternthal / gist:7548331
Created November 19, 2013 16:39
Apache Static Files
from django.conf import settings
from django.conf.urls.defaults import include, patterns
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns <- this!!
from django.http import HttpResponse
from django.shortcuts import render
***
{# L10n: Text is used in a tweet, please keep the length under 110 characters. #}
<a href="{{ twitterShare('http://mzl.la/158wtFo', _('Vote for the #FirefoxFlicks People\'s Choice Award! ') , via='firefoxflicks') }}" rel="external" data-window-opts="toolbar=0, status=0, resizable=1, width=626, height=436">
{{ _('Share on Twitter') }}
</a>
@bensternthal
bensternthal / dirtocsv.py
Last active December 19, 2015 02:49
Re-writing a bash script Justin wrote in python.
import csv
import os
from os.path import join, getsize
ROOTURL = 'http://www.mozilla.org'
ROOTSVN = 'http://viewvc.svn.mozilla.org/vc/projects/mozilla.org/trunk'
with open('test.csv', 'wb') as csvfile:
csvwriter = csv.writer(csvfile, delimiter=',',
quotechar='|', quoting=csv.QUOTE_MINIMAL)
@bensternthal
bensternthal / gist:5448568
Created April 24, 2013 00:14
share on modal
// Close modal on clicking close button or background.
$document.on('click', '#modal .close', flicks.closeModal);
//$document.on('click', '#modal.bg_close', flicks.closeModal);
$(function() {
/* Share Widget *******/
var $share = $('.share');
var $popup = $share.find('.popup');
12:29 You have joined the channel
12:29 Mode: +nt
12:29 Created at: Aug 31, 2015, 6:50 PM
15:13 jgmize
pmac: tmux -S /tmp/shareds attach -t shared
15:43 krutten
Hello
15:43 krutten
the host is out of file handles, we are looking for why
15:45 jgmize