Skip to content

Instantly share code, notes, and snippets.

Josh Whiting jwhiting

Block or report user

Report or block jwhiting

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jwhiting / python3_s2geometry
Created Sep 10, 2019
Dockerfile for python3 with s2geometry bindings
View python3_s2geometry
FROM python:3.7
WORKDIR /usr/src/app
# deps for s2 geometry lib
RUN apt-get update
RUN apt-get install -y cmake libgflags-dev libgoogle-glog-dev libgtest-dev libssl-dev swig
# get the repo and setup the build process. note the CMAKE_INSTALL_PREFIX:PATH config
# is not in google's instructions for how to build the library, but otherwise python
jwhiting /
Last active Aug 6, 2018
Threads about hung midi notes in Reaper
jwhiting / truncate_logs.config
Created Jun 9, 2018
truncating multi-container docker logs on elastic beanstalk
View truncate_logs.config
# this would go in, for instance, .ebextensions/truncate_logs.config
mode: "000644"
owner: root
group: root
content: |
*/5 * * * * root truncate -s 0 /var/lib/docker/containers/*/*-json.log
*/5 * * * * root rm -f /var/log/containers/rotated/*
jwhiting / warmup.rb
Created May 14, 2018
Warming up EBS volumes on RDS replicas/snapshots (ruby script)
View warmup.rb
#!/usr/bin/env ruby
require 'pg'
when creating a postgres db replica in RDS, or restoring from a snapshot, the
underlying EBS volume of the new instance must be initialized by reading every
block, otherwise the blocks will be lazy-initialized by production queries
which will be extremely latent. (i've seen normally 50ms queries take 30s in
View stdout.conf
- namespace: aws:elasticbeanstalk:cloudwatch:logs
option_name: StreamLogs
value: true
- namespace: aws:elasticbeanstalk:cloudwatch:logs
option_name: DeleteOnTerminate
value: false
- namespace: aws:elasticbeanstalk:cloudwatch:logs
option_name: RetentionInDays
value: 14
jwhiting / gist:74953e9462acd6059f070e366053ce48
Last active Jul 23, 2018
Modified ReaperJS oscilloscope with beat sync retrig feature
View gist:74953e9462acd6059f070e366053ce48
desc:Oscilloscope Meter (Cockos)
//tags: analysis scope meter
//author: Cockos (modified by JSW)
Copyright (C) 2007 Cockos Incorporated
License: LGPL -
slider1:view_msec=100<1,2000,1>-view size (ms)
You can’t perform that action at this time.