Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Jake Litwicki litwicki

Block or report user

Report or block litwicki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@litwicki
litwicki / lambda-deploy.js
Last active Mar 4, 2019
A lambda intended to be triggered on a PUT from a CodeDeploy build and then unzip and deploy to a separate bucket.
View lambda-deploy.js
var deployBucket = 'example.com';
var region = 'us-west-2';
// If you're hosting a static html (or javascript) website
// the domain and bucket you host from (deploy to) should be
// identical, but feel free to change based on your circumstances.
var domain = deployBucket;
var aws = require('aws-sdk');
var ep = new aws.Endpoint('s3.' + region + '.amazonaws.com');
@litwicki
litwicki / dev-setup.sh
Last active Mar 3, 2019
MAC Developer Setup
View dev-setup.sh
#!/usr/bin/env bash
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
# Install/verify Xcode Command Line Tools are setup
if xcode-select --version 2>&1 | grep version; then
echo "${green}Yay, you have installed XCode with Command Line Tools"
else
View gist:086e5ebfb6c75cab0137c97134d2075a
# vim:ft=ansible:
#
---
- name: install common software
apt:
name={{ item }}
state=present
with_items:
- apache2
- git
You can’t perform that action at this time.