Skip to content

Instantly share code, notes, and snippets.

$ npm test
> [email protected] test /tmp/seed/source
> serverless-bundle test
PASS tests/billing.test.js
PASS tests/test.test.js
Test Suites: 2 passed, 2 total
Tests: 4 passed, 4 total
Snapshots: 0 total
Time: 1.874s
Ran all test suites.
✓ Deploy Generated CloudFormation deployment
aws cloudformation deploy
--template-file sam.yaml
--stack-name TestArcCodesStaging
--s3-bucket arc-codes-deploy-bucket
--capabilities CAPABILITY_IAM
--region us-east-1
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

Step 1

Create a new directory.

$ mkdir micro-api
$ cd micro-api

Step 2

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"cloudformation:*",
"s3:*",
"logs:*",
"iam:*",
@jayair
jayair / config.js
Created August 16, 2017 17:17
Dev & Prod setup for CRA config.js
const dev = {
apiGateway: {
},
cognito: {
}
};
const prod = {
apiGateway: {
},
@jayair
jayair / package.json
Created August 16, 2017 17:17
Dev & Prod setup for CRA package.json
{
"name": "DemoApp",
"version": "0.1.0",
"private": true,
"dependencies": {
},
"devDependencies": {
},
"scripts": {
"start": "REACT_APP_STAGE=staging react-scripts start",

Generate palette from input. Scale is the width of the output, height is generated based on aspect ratio.

ffmpeg -y -t 3 -i input.mov -vf fps=25,scale=320:-1:flags=lanczos,palettegen palette.png

Generate GIF

ffmpeg -t 3 -i input.mov -i palette.png -filter_complex "fps=25,scale=320:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif
@jayair
jayair / GIF-Screencast-OSX.md
Last active September 19, 2016 01:27 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

Keybase proof

I hereby claim:

  • I am jayair on github.
  • I am jayair (https://keybase.io/jayair) on keybase.
  • I have a public key ASBj4AwaCLv0-h9zjYjpWrRmYQ2qJvZ2CiHEtcvBInN3Dgo

To claim this, I am signing this object: