(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| #!/bin/bash | |
| # Reads EXIF creation date from all .JPG files in the | |
| # current directory and moves them carefully under | |
| # | |
| # $BASEDIR/YYYY/YYYY-MM/YYYY-MM-DD/ | |
| # | |
| # ...where 'carefully' means that it does not overwrite | |
| # differing files if they already exist and will not delete | |
| # the original file if copying fails for some reason. |
| # A class-based template for jQuery plugins in Coffeescript | |
| # | |
| # $('.target').myPlugin({ paramA: 'not-foo' }); | |
| # $('.target').myPlugin('myMethod', 'Hello, world'); | |
| # | |
| # Check out Alan Hogan's original jQuery plugin template: | |
| # https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template | |
| # | |
| (($, window) -> |
| //--------------------------------------------------------------------------------------------------- | |
| // a sassier grid for spree | |
| // fixed-width - html whitespace not removed. | |
| // intended to be used as magic-classes, coupling markup&style. | |
| // based on skeleton v1.1 by dave gamache - thanks dude | |
| // | |
| //--------------------------------------------------------------------------------------------------- | |
| //- Contents | |
| //--- Grid classes | |
| //--- Grid Variables |
| /** | |
| * Parse query string. | |
| * ?a=b&c=d to {a: b, c: d} | |
| * @param {String} (option) queryString | |
| * @return {Object} query params | |
| */ | |
| getQueryParams: function(queryString) { | |
| var query = (queryString || window.location.search).substring(1); // delete ? | |
| if (!query) { | |
| return false; |
| class PriorityQueue | |
| attr_reader :elements | |
| def initialize | |
| @elements = [nil] | |
| end | |
| def <<(element) | |
| @elements << element | |
| bubble_up(@elements.size - 1) |
#!/usr/bin/env bash
# Assuming OS X Yosemite 10.10.4
# Install XCode and command line tools
# See https://itunes.apple.com/us/app/xcode/id497799835?mt=12#
# See https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
xcode-select --install| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
| --- | |
| swagger: "2.0" | |
| basePath: "/test" | |
| schemes: | |
| - "https" | |
| paths: | |
| /lambdaredirect-default: | |
| get: | |
| produces: | |
| - "application/json" |
I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.
So it might be really unintuitive at first but lambda functions have three states.