I hereby claim:
- I am corespace on github.
- I am corespace (https://keybase.io/corespace) on keybase.
- I have a public key whose fingerprint is FB95 8D0C E19C 0B36 B1C9 2DB3 5D02 58D6 E6E9 A456
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Because as you know I hate doing complicated maintenance, I've started adding this function to the bottom of my Chalice app.py file:
"""
This function allows me to use the same Lambda for HTTP (Api gateway), CRON (Cloudwatch poll) and
Batch (Kinesis - putting an item in the kinesis stream triggers a call to this function)
"""
def command_router(event, context):
if 'requestContext' in event:
logging.warn("Processing as HTTP request")
# | |
# Make ls use colors if we are on a system that supports that feature and writing to stdout. | |
# | |
if command ls --version >/dev/null ^/dev/null | |
# This appears to be GNU ls. | |
function ls --description "List contents of directory" | |
set -l param --color=auto | |
if isatty 1 | |
set param $param --indicator-style=classify | |
end |
function fish_prompt --description 'Write out the prompt' | |
set -l last_status $status | |
set -l normal (set_color normal) | |
# Hack; fish_config only copies the fish_prompt function (see #736) | |
if not set -q -g __fish_classic_git_functions_defined | |
set -g __fish_classic_git_functions_defined | |
function __fish_repaint_user --on-variable fish_color_user --description "Event handler, repaint when fish_color_user changes" | |
if status --is-interactive |
function watch --description 'Run a command every 2 seconds' | |
clear | |
echo "Running $argv every 2s "(date) | |
echo \e\[H | |
eval $argv | |
echo \e\[0J | |
sleep 2 | |
watch $argv | |
end |
# Currently returns all Main Targets, but no Other Targets. | |
ant -p -debug build.xml | sed -nE 's/^\\s(\\S+)\\s\\s+\\S+.*$/\1/p' |