This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tap caskroom/cask | |
install brew-cask | |
install htop-osx | |
install hub | |
install node | |
install phantomjs | |
install tmux | |
install tree | |
install vagrant-completion | |
install watch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Takes in an input string in python module format (X.Y.Z) and tries to find all | |
modules that start with that import path. | |
It takes two options. | |
The first is a ``recursive`` flag that allows to keep nesting looking for more modules. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
from collections import defaultdict | |
import subprocess | |
def lint(linter, dirs): | |
files = defaultdict(lambda: defaultdict(list)) | |
for dir in dirs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env TEST="line1\nline2" python -c "import os; print repr(os.environ['TEST'])" | |
'line1\\nline2' | |
env TEST="line1 | |
line2" python -c "import os; print repr(os.environ['TEST'])" | |
'line1\nline2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Virtual Env Export | |
# | |
# Copies the dist-packages directory out of a built container. | |
# | |
# This allows you access the packages installed (say for IDE support). | |
if [ $# -lt 1 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path = require 'path' | |
module.exports = (grunt) -> | |
pkg = grunt.file.readJSON('package.json') | |
nodePackages = Object.keys(pkg.dependencies or {}) | |
grunt.initConfig | |
pkg: pkg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
import stat | |
import typing as t | |
from urllib.parse import quote | |
import aiofiles | |
from aiofiles.os import stat as aio_stat | |
from starlette.datastructures import Headers | |
from starlette.exceptions import HTTPException |
OlderNewer