I hereby claim:
- I am bennylope on github.
- I am bennylope (https://keybase.io/bennylope) on keybase.
- I have a public key whose fingerprint is 515A 85FE D3A7 9935 5E9E 2F6C CA23 6BC4 054B 7C47
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
""" | |
Script for exporting GitHub Issues to an import ready CSV format. | |
Outputs to stdout for redirection. | |
It is hard coded (sorry) to include up to 2 comments from an issue. | |
Usage: |
#!/usr/bin/env bash | |
# Copyright 2016, Ben Lopatin | |
# Licensed freely to use, modify, and redistribute under GNUGPLv3 | |
APIKEY=$LEANPUB_API_KEY | |
SLUG=$LEANPUB_SLUG | |
case "$1" in | |
preview) |
""" | |
Remote environment variable configuration using envdir | |
This should be set up using a `fabfile/` module rather than | |
an individual `fabfile.py` file. | |
$ fab <env> config -- list environment variables (incl. values) | |
$ fab <env> config.set:DEBUG=False -- set a single variable | |
$ fab <env> config.set:DEBUG=False,SECRET=jdkjkjk -- set multiple variables |
#!/usr/bin/env python | |
""" | |
Script that copies contents of .env file to envdir compatible folder | |
:copyright: Ben Lopatin | |
:license: BSD | |
""" | |
import os | |
import sys |
-- from http://www.haskellforall.com/2015/10/basic-haskell-examples.html | |
import System.Directory | |
import System.Environment | |
import System.IO | |
putTodo :: (Int, String) -> IO () | |
putTodo (n, todo) = putStrLn (show n ++ ": " ++ todo) | |
prompt :: [String] -> IO () | |
prompt todos = do |
I hereby claim:
To claim this, I am signing this object:
-- From http://www.haskellforall.com/2015/10/basic-haskell-examples.html | |
putTodo :: (Int, String) -> IO () | |
putTodo (n, todo) = putStrLn (show n ++ ": " ++ todo) | |
prompt :: [String] -> IO () | |
prompt todos = do | |
putStrLn "" | |
putStrLn "Current TODO list:" | |
mapM_ putTodo (zip [0..] todos) |
#!/usr/bin/env sh | |
# | |
# Prepend the text from file in argument $1 to file in argument $2 | |
# | |
# | |
# Usage, inserting license front matter into all Python files in a directory, | |
# including subdirectories: | |
# | |
# find . -name "*.py" -print0 | xargs -0 -n 1 ./prepend.sh frontmatter.txt |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
STAGINGAPP=staging-app-name | |
PRODUCTIONAPP=production-app-name | |
case "$1" in | |
staging) | |
APPNAME=$STAGINGAPP | |
;; | |
production) | |
APPNAME=$PRODUCTIONAPP | |
;; |