Requires
- aws-cli - https://aws.amazon.com/cli/
- jq - https://stedolan.github.io/jq/
Configure path to your ECS SSH key file ~/.bashrc
echo 'export ECS_PEM_FILE=$HOME/docker.pem' >> ~/.bashrc
#!/usr/bin/env python | |
from __future__ import generators | |
from functools import partial | |
import os, os.path | |
try: | |
from urllib import unquote | |
except ImportError: | |
from urllib.parse import unquote |
SSH_ENV="$HOME/.ssh/environment" | |
function start_agent { | |
echo "Initializing new SSH agent..." | |
# spawn ssh-agent | |
ssh-agent > "$SSH_ENV" | |
chmod 600 "$SSH_ENV" | |
. "$SSH_ENV" > /dev/null | |
} | |
# check for running ssh-agent with proper $SSH_AGENT_PID |
function attach-daily { | |
tmux -u new-session -s daily -AD | |
} |
# The MIT License (MIT) | |
# | |
# Copyright (c) 2015 genzj | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
#!/usr/bin/env python | |
from time import sleep | |
for i in range(1, 3): | |
print "line %d" %(i, ) | |
print "xxxxxxxxxx" * 20 | |
sleep(5) | |
print "exit" |
# GNU Screen - main configuration file | |
# All other .screenrc files will source this file to inherit settings. | |
# Author: Christian Wills - cwills.sys@gmail.com | |
# Allow bold colors - necessary for some reason | |
attrcolor b ".I" | |
# Tell screen how to set colors. AB = background, AF=foreground | |
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' |
#!/bin/bash | |
default_domain_name='default' | |
if [[ $# -lt 2 ]] ; then | |
echo "Usage: $0 USERNAME PASSWORD" | |
exit 1 | |
fi | |
curl -i \ | |
-H "Content-Type: application/json" \ | |
-d ' |
# env | |
# | |
# add your github oauth config to this file | |
# and launch the server with `sh run.sh` | |
# | |
# Note: Be careful to keep the client secret private. Use caution | |
# with version control to prevent publicly exposing the secret. | |
export GITHUB_CLIENT_ID= | |
export GITHUB_CLIENT_SECRET= | |
export OAUTH_CALLBACK_URL= |
# -*- encoding: utf-8 -*- | |
def circle_alphabet(offset='a', start='a'): | |
start_code = ord(start) | |
offset_code = ord(offset) | |
for i in range(offset_code, start_code + 26): | |
yield chr(i) | |
for i in range(start_code, offset_code): | |
yield chr(i) |
Requires
Configure path to your ECS SSH key file ~/.bashrc
echo 'export ECS_PEM_FILE=$HOME/docker.pem' >> ~/.bashrc