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:
### Keybase proof | |
I hereby claim: | |
* I am bhardin on github. | |
* I am bretthardin (https://keybase.io/bretthardin) on keybase. | |
* I have a public key whose fingerprint is 3BCB B264 8E38 785F 63A5 CF30 B4EF 287D F5E9 AE04 | |
To claim this, I am signing this object: |
#!/bin/bash | |
#attach the EBS to /dev/sdf before running it | |
# If not mounted... format EBS | |
mkfs -t ext4 /dev/xvdb | |
mkdir /mnt/new | |
mount /dev/xvdb /mnt | |
#copy original /var to /dev/xvdb | |
sudo cp -ax /var/* /mnt |
# app/some_cool_app/tasks.py | |
@celery_app.task(bind=True, queue=’whenever’) | |
def a_long_running_process(self): | |
process = LongRunningProcess() | |
process.run() |
import logging | |
from myapp.celery_config import celery_app | |
from myapp.corporations.models import Corporation | |
logger = logging.getLogger() | |
@celery_app.task( | |
name='analytics.update_corporation_data', |
from celery.schedules import crontab | |
from myapp.common import constants | |
ALL = 'all' | |
tasks = { | |
# Tasks that should be run in all environments | |
ALL: {}, | |
# Tasks that should be run on production |
### MORE CODE ABOVE THIS ### | |
from datetime import timedelta | |
'add-every-30-seconds': { | |
'task': 'tasks.update_something', | |
'schedule': timedelta(seconds=30), | |
'args': (16, 16) | |
}, |
from github import Github | |
import os | |
import sys | |
release = str(sys.argv[1]) | |
# or using an access token | |
GITHUB_ACCESS_TOKEN = os.environ['GITHUB_ACCESS_TOKEN'] | |
g = Github(GITHUB_ACCESS_TOKEN) | |
FEATURES = 'Feature' |
with | |
dau as ( | |
-- This part of the query can be pretty much anything. | |
-- The only requirement is that it have three columns: | |
-- dt, user_id, inc_amt | |
-- Where dt is a date and user_id is some unique identifier for a user. | |
-- Each dt-user_id pair should be unique in this table. | |
-- inc_amt represents the amount of value that this user created on dt. | |
-- The most common case is | |
-- inc_amt = incremental revenue from the user on dt |