I hereby claim:
- I am bensie on github.
- I am bensie (https://keybase.io/bensie) on keybase.
- I have a public key whose fingerprint is B720 6EF1 71C0 466C 38BF 65AC C5AB 1889 61E6 14A1
To claim this, I am signing this object:
Parameters: | |
PreWarmEnvironmentParameter: | |
Type: String # enabled or disabled, only enable for low-volume environments | |
PreWarmFunctionNamesParameter: | |
Type: String # JSON string like ["MyFunctionToKeepWarm1","MyFunctionToKeepWarm2"] | |
Conditions: | |
IsPreWarmEnvironmentEnabled: | |
!Equals [!Ref PreWarmEnvironmentParameter, enabled] | |
Resources: | |
PreWarmEnvironmentWorkflow: |
AWSTemplateFormatVersion: "2010-09-09" | |
Resources: | |
Table: | |
Type: AWS::DynamoDB::Table | |
Properties: | |
AttributeDefinitions: | |
- AttributeName: PK | |
AttributeType: S | |
- AttributeName: SK | |
AttributeType: S |
#!/usr/bin/env bash | |
# Must be run on an Amazon Linux AMI that matches AWS Lambda's runtime which can be found at: | |
# https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html | |
# | |
# As of May 21, 2019, this is: | |
# Amazon Linux AMI 2018.03.0 (ami-0756fbca465a59a30) | |
# | |
# You need to prepend PATH with the folder containing these binaries in your Lambda function | |
# to ensure these newer binaries are used. |
Rails.application.routes.draw do | |
scope module: "api" do | |
constraints subdomain: "api" do | |
match "/", to: "root#options", via: [:options] | |
match "*unmatched", to: "root#options", via: [:options] | |
resource :me, only: [:show, :update], controller: "me" | |
post "/me/access_tokens", to: "access_tokens#create" | |
delete "/me/access_tokens", to: "access_tokens#destroy" |
package main | |
import ( | |
"fmt" | |
"io" | |
"net/http" | |
"os" | |
) | |
func uploadHandler(w http.ResponseWriter, r *http.Request) { |
I hereby claim:
To claim this, I am signing this object:
sudo apt-get install openjdk-7-jre-headless -y | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.2.2.deb | |
sudo dpkg -i elasticsearch-1.2.2.deb | |
sudo service elasticsearch start |
post "/shots" do | |
if params[:photo] && params[:photo].is_a?(Hash) | |
class UploadedFile < OpenStruct; end | |
paperclip = UploadedFile.new( | |
tempfile: params[:photo][:tempfile], | |
path: params[:photo][:tempfile].path, | |
original_filename: params[:photo][:filename], | |
content_type: params[:photo][:type], | |
head: params[:photo][:head] | |
) |
require "json" | |
module ApiMacros | |
def json(content) | |
JSON.pretty_generate content | |
end | |
def decode_json(content) | |
JSON.parse content, symbolize_names: true |
2013/12/30 17:45:48 Packer Version: 0.5.0 ccaf00c29e16752ffab552a1f04999590062b48a | |
2013/12/30 17:45:48 Packer Target OS/Arch: darwin amd64 | |
2013/12/30 17:45:48 Built with Go Version: go1.2 | |
2013/12/30 17:45:48 Detected home directory from env var: /Users/james | |
2013/12/30 17:45:48 Attempting to open config file: /Users/james/.packerconfig | |
2013/12/30 17:45:48 File doesn't exist, but doesn't need to. Ignoring. | |
2013/12/30 17:45:48 Packer config: &{PluginMinPort:0 PluginMaxPort:0 Builders:map[amazon-ebs:packer-builder-amazon-ebs amazon-chroot:packer-builder-amazon-chroot docker:packer-builder-docker googlecompute:packer-builder-googlecompute virtualbox-iso:packer-builder-virtualbox-iso vmware-iso:packer-builder-vmware-iso amazon-instance:packer-builder-amazon-instance digitalocean:packer-builder-digitalocean openstack:packer-builder-openstack qemu:packer-builder-qemu virtualbox-ovf:packer-builder-virtualbox-ovf vmware-vmx:packer-builder-vmware-vmx] Commands:map[build:packer-command-build fix:packer-command-fix insp |