This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
import base64, copy, sys | |
import requests | |
import json | |
from urlparse import urlparse | |
sip_domain = "company.com" | |
username = "firstname.lastname@company.com" | |
password = "somepassword" | |
def extractAuthURL(str): |
from django import forms | |
import datetime | |
class MonthYearWidget(forms.MultiWidget): | |
""" | |
A widget that splits a date into Month/Year with selects. | |
""" |
from PIL import Image | |
from django.conf import settings | |
import S3, mimetypes | |
THUMBNAIL_SIZE = 70, 70 | |
MEDIUM_SIZE = 150, 150 | |
profile_image_path = settings.MEDIA_ROOT + '/images/roles/' | |
AWS_ACCESS_KEY_ID = 'YOUR_AWS_KEY' | |
AWS_SECRET_ACCESS_KEY = 'YOUR_AWS_SECRET' |
{ | |
"folder_exclude_patterns": | |
[ | |
"node_modules", | |
".cache" | |
], | |
"font-face": "Helvetica-Neue", | |
"font_size": 14, | |
"ignored_packages": | |
[ |
# Full credit to: http://jeffmiller.github.com/2011/01/10/ssh-host-color | |
#!/bin/bash | |
# | |
# ssh into a machine and automatically set the background | |
# color of Mac OS X Terminal depending on the hostname. | |
# | |
# Installation: | |
# 1. Save this script to /some/bin/ssh-host-color | |
# 2. chmod 755 /some/bin/ssh-host-color |
#Mac OS X
#!/usr/bin/python | |
"""Command line rtm interface | |
requirements: sudo pip install simplejson texttable | |
""" | |
import os, sys, urllib, urllib2, json, ConfigParser, datetime | |
from hashlib import md5 | |
from texttable import Texttable | |
FILE_PATH = "~/.rtm" | |
SECTION = "rtm_data" |
#!/usr/bin/python | |
"""A simple command line todo for simplenoteapp synced via dropbox.""" | |
import os, sys, datetime | |
class TaskList(object): | |
def __init__(self, todo, done): | |
self.todo = todo | |
self.done = done |
import simplejson | |
from boto.s3.connection import S3Connection | |
from boto.s3.key import Key | |
from boto.exception import S3ResponseError | |
AWS_ACCESS_KEY_ID = "xxx" | |
AWS_SECRET_ACCESS_KEY = "xxxxx" | |
class BlobStore(object): | |
def __init__(self, bucket_name): | |
s3_conn = S3Connection(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) |