Skip to content

Instantly share code, notes, and snippets.

View campeterson's full-sized avatar

Cam Peterson campeterson

View GitHub Profile
@campeterson
campeterson / gist:9422175
Last active August 29, 2015 13:57
Setup Server for Data Workflow

Install Git

  sudo yum install git

Install JVM

  yum install java-1.7.0-openjdk

Install Leiningen

mkdir bin

@campeterson
campeterson / m3u8.sh
Created June 9, 2019 04:32
Download an .m3u8 video with ffmpeg
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "<.m3u8 file URL>" -c copy <file_name>.mp4
@campeterson
campeterson / core.cljs
Last active September 19, 2019 05:10
Send email from Clojure AWS API
;;https://github.com/cognitect-labs/aws-api
(require '[cognitect.aws.client.api :as aws])
(def ses (aws/client {:api :email}))
(aws/ops ses)
(keys (aws/ops ses))
(aws/doc ses :SendEmail)