SSH into your EC2 instance. Run the following:
$ sudo yum install gcc This may return an "already installed" message. That's OK.
$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make
| MacBook9,1: 'Mac-9AE82516C7C6B903' | |
| iMac14,1: 'Mac-031B6874CF7F642A' | |
| iMac10,1: 'Mac-F2268DC8' | |
| MacBookPro8,1: 'Mac-50619A408DB004DA' | |
| MacBook6,1: 'Mac-F22C8AC8' | |
| MacBookPro10,2: 'Mac-AFD8A9D944EA4843' | |
| iMac12,2: 'Mac-942B59F58194171B' | |
| iMac14,2: 'Mac-27ADBB7B4CEE8E61' | |
| MacBook8,2: 'Mac-F305150B0C7DEEEF' | |
| MacBookAir6,1: 'Mac-35C1E88140C3E6CF' |
| provider "aws" { | |
| access_key = "${var.access_key}" | |
| secret_key = "${var.secret_key}" | |
| region = "${var.region}" | |
| } | |
| resource "aws_iam_role" "iam_for_terraform_lambda" { | |
| name = "app_${var.app_env}_lambda" | |
| assume_role_policy = <<EOF | |
| { |
| #!/bin/bash | |
| # Save docker images | |
| ds() { | |
| docker images | \ | |
| cut -d ' ' -f 1 | \ | |
| tail -n +2 | \ | |
| xargs -t -n 1 -I {} -P 4 \ | |
| sh -c 'docker save {} | bzip2 > $(echo "{}" | sed "s/^.*\///").tar.bz2' | |
| } |
| /** | |
| * This code is licensed under the terms of the MIT license | |
| * | |
| * Deep diff between two object, using lodash | |
| * @param {Object} object Object compared | |
| * @param {Object} base Object to compare with | |
| * @return {Object} Return a new object who represent the diff | |
| */ | |
| function difference(object, base) { | |
| function changes(object, base) { |
| #!/bin/bash | |
| bucket=$1 | |
| set -e | |
| echo "Removing all versions from $bucket" | |
| versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'` | |
| markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'` |
| -- Script to set sound output - "Internal Speakers" hardcoded as I just keep multiple scripts for each output source (e.g. Internal Speakers, Airplay, bluetooth ) and use it with a quicklaunch app such as quicksilver. | |
| -- Based off of Pierre L's answer in https://discussions.apple.com/thread/4629093?tstart=0 , which includes a selection dialog | |
| set asrc to "Internal Speakers" | |
| tell application "System Preferences" | |
| reveal anchor "output" of pane id "com.apple.preference.sound" | |
| activate | |
| configureDragDrop(registerType) { | |
| var imageThreshold = Math.max(120, window.innerHeight / 4), | |
| sectionThreshold = Math.max(140, window.innerHeight / 4), | |
| currentDY = 0, | |
| frame; | |
| function makeScrollingHandler(threshold) { | |
| function getScrollDY(clientY) { | |
| var speed; | |
| if (clientY < threshold) { |
SSH into your EC2 instance. Run the following:
$ sudo yum install gcc This may return an "already installed" message. That's OK.
$ wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz && cd redis-stable && make
| import os | |
| app = '{YOUR-WSGI-APPLICATION}' | |
| # Sample Gunicorn configuration file. | |
| # | |
| # Server socket | |
| # | |
| # bind - The socket to bind. |