Skip to content

Instantly share code, notes, and snippets.


Rob Cameron cannikin

Block or report user

Report or block cannikin

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
cannikin /
Last active Mar 28, 2020
Davinci Resolve 16.2 Rendering Exploration

Latest as of 2020-03-27

After a bunch of YouTube uploads I now think these two are the closest:

<iframe width="560" height="315" src="" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; modestbranding; showinfo=0" allowfullscreen></iframe>
  • Timeline Gamma is Rec.709 (Scene)
  • Codec is h264 (much faster to upload and process)
  • Render Color Space is "Same"
  • Render Gamma is "Same"
View gist:34f92b1bf3fb7439b518b2dedc4978ca
View gist:189f7c8241eb942be77f194dbc5518bc
View gist:6ac3e4239d491fdf9db195bb3c97600e
View yarn.lock.diff
diff --git a/yarn.lock b/yarn.lock
index e8c899e..0592224 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -907,7 +907,7 @@
pirates "^4.0.0"
source-map-support "^0.5.16"
-"@babel/runtime-corejs3@^7.8.3", "@babel/runtime-corejs3@^7.8.4":
+"@babel/runtime-corejs3@^7.7.4", "@babel/runtime-corejs3@^7.8.3", "@babel/runtime-corejs3@^7.8.4":
View something.js
<script type="text/javascript">
var since = '<%= @since.to_f %>';
var updater = setInterval( function() {
new Ajax.Updater('notes','/poller', {
onSuccess:function(r) { since = r.responseText; }
}, 4000);
cannikin / epub_cover_fixer.rb
Created Mar 31, 2019
Fixes cover images for IDW's Transformers Humble Bundle epub:
View epub_cover_fixer.rb
# Fixes cover images in epub files
# Run this file wherever you want, just change the path in the last line to a directory containing all your epub files.
class EpubCoverFixer
class MetaTagNotFound < StandardError; end
attr_reader :starting_dir
def initialize(dir)
cannikin /
Last active Mar 28, 2019
Typical Ruby on Rails AWS Server Setup

Typical Ruby on Rails AWS Server Setup

You should be able to start a fresh EC2 instance of Ubuntu and follow the instructions below to get a server with your preferred version of Ruby, nginx ready to delegate requests to Unicorn, and logrotate setup to keep your disk from filling up with log files. You will also have ruby-install for installing new rubies and chruby for switching between them. A .ruby-version file will be added to the home directory of the user that runs this script.


  1. Start an EC2 instance using the latest Ubuntu image (as of 2015-06-18 ami-5189a661 for EBS, 64-bit SSD)
  2. Copy the config files below into /tmp using the file names specified in the title.
  3. Edit /tmp/ and change the variables at the top to match your setup
  4. Make /tmp/ executable: chmod +x /tmp/
cannikin / gist:abb686146972a6716764
Created Jun 22, 2015
Git pre-commit hook for Ruby/Javascript debugging statements
View gist:abb686146972a6716764
if [[ $(git diff --cached --name-only | grep -E $FILES) ]]; then
git diff --cached --name-only | grep -E $FILES | \
xargs grep --color --with-filename -n -E $FORBIDDEN && \
printf "\nLooks like you are trying to commit something you shouldn't. Please fix your diff, or run 'git commit --no-verify' to skip this check, if you must." && \
cannikin / deploy.rb
Last active Oct 22, 2018
Notify Sentry of a new release via Capistrano
View deploy.rb
# This task will notify Sentry via their API[1] that you have deployed
# a new release. It uses the release timestamp as the `version`
# (like 20151113182847) and the git ref as the optional `ref` value.
# This task requires several environment variables be set (or just
# hardcode the values in here if you like living on the edge):
# ENV['SENTRY_ORG'] : the organization for this app
# ENV['SENTRY_PROJECT'] : the project for this app
You can’t perform that action at this time.