Skip to content

Instantly share code, notes, and snippets.

View olivoil's full-sized avatar

Olivier Melcher olivoil

View GitHub Profile
@olivoil
olivoil / AppSync-Example.yaml
Created November 25, 2018 20:12 — forked from adrianhall/AppSync-Example.yaml
An example CloudFormation template for AWS AppSync
---
Description: AWSAppSync DynamoDB Example
Resources:
GraphQLApi:
Type: "AWS::AppSync::GraphQLApi"
Properties:
Name: AWSAppSync DynamoDB Example
AuthenticationType: AWS_IAM
PostDynamoDBTableDataSource:
@olivoil
olivoil / keybase.md
Created April 29, 2018 17:31 — forked from webframp/keybase.md
Signing git commits on github using keybase.io gpg key

Probably one of the easiest things you'll ever do with gpg

Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH

First get the public key

keybase pgp export | gpg --import

Next get the private key

# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip
# Unzip
unzip protoc-3.5.1-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
@olivoil
olivoil / .vimrc
Last active April 27, 2018 16:10
dots
filetype plugin indent on
syntax on
let mapleader = ','
set inccommand=split
set number
set laststatus=2
set modelines=5
set vb t_vb=
set ts=2 sts=2 sw=2 expandtab
set listchars=tab:‣\ ,trail:·,precedes:«,extends:»,eol:¬
@olivoil
olivoil / config.hcl
Last active July 20, 2017 15:58
example of what an `up` configuration file would look like in HCL
name = "api"
description = "Some API for whatever"
hooks {
build = "make build"
clean = "make clean"
}
environment {
@olivoil
olivoil / prune.js
Created May 4, 2017 22:58
prune lambda functions from serverless file
#!/usr/bin/env node
const AWS = require("aws-sdk");
const YAML = require("yamljs");
const ENV = process.env.NODE_ENV || "dev";
// it assumes you have AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in your environment
const lambda = new AWS.Lambda({
region: process.env.AWS_REGION || "us-east-1",
@olivoil
olivoil / gist:773f7d1b6b441f0faf92070f2e2d0ac3
Created April 18, 2017 02:22 — forked from jansanchez/gist:ce5b0ca1c5e538f4b266
How to install NVIDIA video drivers in Elementary OS

Keybase proof

I hereby claim:

  • I am olivoil on github.
  • I am olivoil (https://keybase.io/olivoil) on keybase.
  • I have a public key whose fingerprint is 79F2 96CF 83D2 6992 C19A 14E9 9B0A 8134 3D8E D17D

To claim this, I am signing this object:

@olivoil
olivoil / workingon.fish
Created November 12, 2015 23:26
WorkingOn shell command for fish (place in ~/.config/fish/functions/on.fish)
function prompt_status
set_color green; echo "What are you working on?"; set_color normal; echo "> "
end
function on
if begin; test (count $argv) -gt 0; end
curl -X POST --data-urlencode "task=$argv" "https://api.workingon.co/hooks/incoming?token={{YOUR_TOKEN}}" >/dev/null 2>&1
else
read -l -p prompt_status what
on $what