Skip to content

Instantly share code, notes, and snippets.

@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
@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 / 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 / 01_BeeFreeAwsBucketIntegration.md
Last active March 16, 2018 15:54
BeeFree.io AWS S3 Bucket - User and Permissions
@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 / 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 / phoenix-app.service
Created September 28, 2016 12:22 — forked from kzkin/phoenix-app.service
systemd service for phoenix framework release (exrm)
# Phoenix Framework - A productive web framework that does not compromise speed and maintainability
[Unit]
Description=Phoenix Framework ISControl Application
After=network.target
[Service]
Type=simple
User=deployer
RemainAfterExit=yes
@netinlet
netinlet / aws_notes.txt
Last active March 16, 2016 01:45
AWS Notes
Autoscaling has lifecycle hooks https://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/lifecycle-hooks.html#lifecycle-hook-wait-state
Code Deploy Github integration https://docs.aws.amazon.com/codedeploy/latest/userguide/github-integ.html#github-integ-steps
@netinlet
netinlet / keybase.md
Created March 15, 2016 15:53
Keybase Identity

Keybase proof

I hereby claim:

  • I am netinlet on github.
  • I am dougbryant (https://keybase.io/dougbryant) on keybase.
  • I have a public key whose fingerprint is 2F79 B742 E642 2C45 FA38 4153 FBDA 81FC 0540 AB6D

To claim this, I am signing this object:

@netinlet
netinlet / gist:5187479
Created March 18, 2013 14:22
http timeout when calling into a unicorn process
#==== Gemfile ====
source :rubygems
gem 'sinatra', :require => 'sinatra/base'
gem 'rest-client'
gem 'unicorn'
gem 'puma'
#==== config.ru ====