Prepare by switching out of bash from Homebrew:
chsh -s /bin/zsh
To clean my system and reinstall Homebrew:
rm -rf ~/.local && mkdir ~/.local
rm -rf ~/Library/Caches/pip
rm -rf ~/.pyenv
rm -rf ~/.yarn
import functools | |
import sys | |
import github3 | |
import semver | |
distro_repos = set([ | |
"django-user-accounts", | |
"pinax-announcements", |
from itertools import chain | |
empty = object() | |
def lookup_merge_strategy(tv, path): | |
pass | |
# create ACI with trusty without actool due to bug https://github.com/coreos/rocket/issues/198 | |
mkdir sleeper ; cd sleeper | |
debootstrap --verbose --variant=minbase --include=iproute,iputils-ping --arch=amd64 trusty rootfs | |
cat > app <<EOF | |
{ | |
"acVersion": "1.0.0", | |
"acKind": "AppManifest", | |
"name": "sleeper", | |
"version": "1.0.0", | |
"os": "linux", |
fs = require("fs") | |
path = require("path") | |
fs.readFile path.join(atom.project.getPath(), ".atom-env"), "utf8", (err, data) -> | |
if data? | |
for line in data.split "\n" | |
if line != "" | |
pair = line.split "=" | |
key = pair[0] |
Prepare by switching out of bash from Homebrew:
chsh -s /bin/zsh
To clean my system and reinstall Homebrew:
rm -rf ~/.local && mkdir ~/.local
rm -rf ~/Library/Caches/pip
rm -rf ~/.pyenv
rm -rf ~/.yarn
I hereby claim:
To claim this, I am signing this object:
Going to the Honda Civic Tour tonight with my girlfriend to see my most favorite band live! This will be my first time seeing them live. In honor of this night, here's a list of my top Linkin Park albums:
""" | |
This file provides an eventlet based S3 uploader for django-ajax-uploader. It | |
supports chunk retry and chunk parallelism for efficient uploads. | |
This backend will only work with the forked django-ajax-uploader from my | |
multipart-post branch which adds some efficiencies to file upload. | |
django-ajax-uploader: https://github.com/brosner/django-ajax-uploader/tree/multipart-post | |
Author: Brian Rosner <brosner@gmail.com> |
# based on a modified Django 1.4 project settings (you will most likely need | |
# to heavily customize this for your project). | |
# Assumed to be in <repo root>/myproject/conf/base.py | |
import os | |
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)) | |
PACKAGE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) |
# original: https://github.com/simonw/mytweets | |
# modified by Brian Rosner | |
# This script does not fetch all tweets. It is limited by what Twitter's API | |
# returns. Somewhere around 3200 tweets. | |
# | |
# Tweak the API keys around line 40 for your Twitter app | |
import json | |
import httplib |