Skip to content

Instantly share code, notes, and snippets.

View chopfitzroy's full-sized avatar
🎯
Focusing

Otis Sutton chopfitzroy

🎯
Focusing
View GitHub Profile
@chopfitzroy
chopfitzroy / index.js
Created March 5, 2017 08:22 — forked from facholi/index.js
Node.js script to runs on AWS Lambda. Converts the PDF pages to JPG images
var async = require("async");
var AWS = require("aws-sdk");
var gm = require("gm").subClass({imageMagick: true});
var fs = require("fs");
var mktemp = require("mktemp");
var PAGE_WIDTH = 1300,
PAGE_HEIGHT = 1300;
var utils = {
@chopfitzroy
chopfitzroy / frp.md
Created November 11, 2016 23:55 — forked from ohanhi/frp.md
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

@chopfitzroy
chopfitzroy / client.sh
Created August 4, 2016 06:26
Synergy multiple servers for one client
#!/bin/bash
# IP address to cycle through (in order of priority)
ip=( "192.168.20.102" "192.168.20.103" )
# Check if synergy is already connected
if pgrep "synergyc"; then
# Synergy already connected
echo "Synergy is already running."
else