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
# vim: syntax=dockerfile | |
### Multi-stage build | |
### 1. django: install dependencies | |
# FROM python:3.7.7-alpine3.11 for build step | |
FROM python@sha256:778802b5b9797279772814fb15a7c6ee494848ced17965bb57092a0b900c0e4f as builder | |
# install dependencies to build c-extensions | |
RUN apk update && apk add --no-cache \ | |
gcc \ |
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
#### | |
# Resize Bindings | |
#### | |
# Full Screen | |
bind m:cmd;alt;ctrl push right bar-resize:screenSizeX | |
# throw to monitor | |
bind left:ctrl;alt throw next | |
bind right:ctrl;alt throw next |
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
[alias] | |
br = branch | |
co = checkout | |
lg = log --color --date=local --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit | |
log = log --topo-order --decorate | |
st = status -sb | |
up = fetch --all --prune | |
pup = !git fetch --all --prune && git pull | |
[diff] |
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
``` | |
Tornado-based slack client inspired by the full stack python version: | |
https://www.fullstackpython.com/blog/build-first-slack-bot-python.html | |
Polls the rtm_stream every second w/ a periodic callback | |
``` | |
import logging | |
import os | |
import time |
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/python | |
import getpass | |
import os | |
import sys | |
import envoy | |
def get_secret_files(): | |
secret_files = {} | |
for subdir, dirs, files in os.walk('/opt/buzzfeed/mono'): |
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
[core] | |
whitespace = space-before-tab,trailing-space,cr-at-eol | |
ignorecase = false | |
[diff] | |
renames = copy | |
[pack] | |
threads = 0 | |
[push] | |
default = simple | |
[credential] |
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
time_namelookup: %{time_namelookup}\n | |
time_connect: %{time_connect}\n | |
time_appconnect: %{time_appconnect}\n | |
time_pretransfer: %{time_pretransfer}\n | |
time_redirect: %{time_redirect}\n | |
time_starttransfer: %{time_starttransfer}\n | |
----------\n | |
time_total: %{time_total}\n |
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
/* | |
Solid is BuzzFeed's CSS style guide. | |
solid.buzzfeed.com | |
*/ | |
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ | |
/** | |
* 1. Set default font family to sans-serif. | |
* 2. Prevent iOS and IE text size adjust after device orientation change, | |
* without disabling user zoom. | |
*/ |
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
''' | |
platform_data_api/settings/__init__.py | |
-------------------------------------- | |
Reads the environment and configures all the things | |
''' | |
from load_conf import config | |
ENV = ENVIRONMENT = config['env'] |
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
# GIT AWARE BASH | |
export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
source "${GITAWAREPROMPT}/main.sh" | |
# PATHS | |
export PATH=$PATH:~/bin/ | |
export PATH=$PATH:/usr/local/bin/ | |
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin/ | |
export PATH=$PATH:/usr/local/Cellar/graphviz/2.38.0/bin/ |
NewerOlder