Skip to content

Instantly share code, notes, and snippets.

View wyllie's full-sized avatar

Andrew Wyllie wyllie

View GitHub Profile
# This will enable sloppy focus (somewhat) on MacOSX
#
# Enter this command in any terminal and then relaunch:
defaults write com.apple.Terminal FocusFollowsMouse -string YES
# to disable:
defaults write com.apple.Terminal FocusFollowsMouse -string NO
# for more details: http://osxdaily.com/2011/04/18/terminal-focus-follow-mouse-mac/
@wyllie
wyllie / awsLayer.yml
Last active December 5, 2024 07:16
GitHub Actions workflow to deploy code to AWS Lambda Layers
# This workflow will install dependencies and create a build suitable
# to be used in an AWS Lambda Layer. The build will then be uploaded
# to S3 and then can be accessed from any lambda that uses the layer.
#
# This build is only for dev builds. Releases will be built from a
# seperate action.
#
# A new version of the layer will be created for every branch when a
# pull request is intitiated. This allows us to test the layer in a
# dev environment on AWS BEFORE the code is merged into master.
@wyllie
wyllie / github_release.sh
Last active August 20, 2020 12:37
python bumpversion and tag/create new github release
#!/usr/bin/env sh
# Quick little script that bumps the release version using `bump2version`
# and then creates a release using the github `hub` tool
# I added bump2version to the project's requirements.txt file
usage() {
echo "Usage: $0 [major|minor|patch]" 1>&2
}
@wyllie
wyllie / aws_layers.sh
Last active October 10, 2020 21:06
AWS CLI tools to get a list of lambda layers
#!/usr/bin/env sh
# Need to have the aws cli tool and jq
# aws cli: https://docs.aws.amazon.com/cli/latest/userguide/
# jq: https://stedolan.github.io/jq/
AWS_CLI='/usr/local/bin/aws'
JQ_LOC='/usr/local/bin/jq'
usage() {