Skip to content

Instantly share code, notes, and snippets.

@netinlet
netinlet / Policy
Created December 7, 2016 19:30 — forked from WarlaxZ/Policy
Serverless IAM Requirements
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"cloudformation:CreateStack",
"cloudformation:UpdateStack",
"cloudformation:DescribeStacks",
"cloudformation:ListStacks",
@netinlet
netinlet / export_google_music.js
Created December 20, 2016 03:12 — forked from jmiserez/export_google_music.js
(fixed/updated 2016-05-10) Export your Google Music Library and Playlists (Google Play Music All Access) (see http://webapps.stackexchange.com/questions/50311/print-playlist-from-google-play-music for more)
// Jeremie Miserez <jeremie@miserez.org>, 2016
//
// A little bit of Javascript to let you export your Google Music library, playlists, and album track lists :)
//
// I posted this as an answer here: http://webapps.stackexchange.com/questions/50311/print-playlist-from-google-play-music
//
// 1. Go to: https://play.google.com/music/listen#/all (or your playlist)
//
// 2. Open a developer console (F12 for Chrome). Paste
// code below into the console.
@netinlet
netinlet / 01_BeeFreeAwsBucketIntegration.md
Last active March 16, 2018 15:54
BeeFree.io AWS S3 Bucket - User and Permissions
@netinlet
netinlet / cognito.yaml
Created March 30, 2018 18:24 — forked from singledigit/cognito.yaml
Create a Cognito Authentication Backend via CloudFormation
AWSTemplateFormatVersion: '2010-09-09'
Description: Cognito Stack
Parameters:
AuthName:
Type: String
Description: Unique Auth Name for Cognito Resources
Resources:
# Creates a role that allows Cognito to send SNS messages
@netinlet
netinlet / chamber_install.sh
Created June 13, 2018 13:04
Chamber Install script for Docker
CHAMBER_VERSION="2.1.0"
CHAMBER_URL="https://github.com/segmentio/chamber/releases/download/v${CHAMBER_VERSION}/chamber-v${CHAMBER_VERSION}-linux-amd64"
if [ ! -f "/usr/local/bin/chamber" ]; then
echo "Downloading chamber from $CHAMBER_URL"
curl -L $CHAMBER_URL -o /usr/local/bin/chamber
chmod +x /usr/local/bin/chamber
fi
@netinlet
netinlet / find_non_ascii_chars.sh
Created September 19, 2018 22:40
Find non-ascii characters in file
# Found at https://superuser.com/questions/1002080/how-to-get-csvkit-to-recognise-long-ascii-lines
awk '/[^\x00-\x7F]/{ print NR ":", $0 }' data.csv | less