screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
screen -AmdS docker ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
screen -r docker
# enter, then disconnect with Ctrl-a d
screen -S docker -p 0 -X stuff $(printf root\\r\\n)
screen -r docker
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
package main | |
import ( | |
log "github.com/Sirupsen/logrus" | |
"github.com/rifflock/lfshook" | |
//"github.com/sebest/logrusly" | |
"os" | |
"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
#!/usr/bin/env python2 | |
# Given a list of paths, walk the directory hierarchy of each path, taking | |
# the files within each and return a list of those items that are symlinks, | |
# and those that aren't | |
# | |
# Example: | |
# % ./walk-dir.py . | |
# Symlinks: | |
# './test.test' |
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/make -f | |
colon := : | |
$(colon) := : | |
BINS = e ediff emacs-xauth emacs.my emacs-agenda \ | |
lpc xterm.my \ | |
local-apt \ | |
nx-session nx-menu chrome |
I hereby claim:
- I am mexisme on github.
- I am mexisme (https://keybase.io/mexisme) on keybase.
- I have a public key ASAPXzTd4EMnIoqqMH_FPX_V91gCHjjoL3DBunWcAhLUNwo
To claim this, I am signing this object:
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 | |
PROGNAME=$(basename $0) | |
PROGDIR=$(dirname $0) | |
: ${MyTemp:=$(mktemp -d "${TMPDIR:-/tmp/}${PROGNAME}.XXXXXXXXXXXX")} | |
## TODO: Allow me to set this up via $AWS_PROFILE (i.e. read the credentials file) | |
: ${ROLE_ARN:=arn:aws:iam::XXXX:role/XXXX} | |
: ${ROLE_SESSION:=${USER}-assume-admin} |
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
// From https://github.com/kr/s3/tree/master/s3cp | |
// Added public read for uploaded files | |
// Command s3cp copies a file to or from Amazon S3. | |
// | |
// Usage: | |
// | |
// s3cp file url | |
// s3cp url file | |
// | |
// The file does not need to be seekable or stat-able. You can use s3cp to |
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
# Note: Updated from https://github.com/mexisme/spigot-docker/blob/master/lib/myshell.rb | |
# If your prefer the 'logging' gem: | |
# LOG = Logging.logger(STDOUT) | |
LOG = Logger.new(STDOUT) | |
require 'benchmark' | |
require 'timeout' | |
class MyShell |
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
# Makefile-friendly version of: | |
# | |
# pipenv run -- pip install -r <(pipenv lock -r) --target $PWD/vendored --no-deps | |
# You will need to add something like the following to your Main .py file: | |
# | |
# import os | |
# import sys | |
# parent_dir = os.path.abspath(os.path.dirname(__file__)) | |
# # (Might need to adjust the path, e.g. adding '..' if appropriate) |
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
* |
OlderNewer