Skip to content

Instantly share code, notes, and snippets.

🔨
Woodworking

Rob Cameron cannikin

🔨
Woodworking
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
cannikin / resolve_rendering.md
Last active Mar 28, 2020
Davinci Resolve 16.2 Rendering Exploration
View resolve_rendering.md

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="https://www.youtube.com/watch?v=okDg09us28U?rel=0" 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
https://docs.google.com/document/u/0/d/16RKNoz1sbl9czUrDbtaJuTtIIbjiWjmI51KNt8JrVmI
https://flipgrid.com/6cc41ce5
View gist:189f7c8241eb942be77f194dbc5518bc
https://cetera.zoom.us/j/4595112813?pwd=Mi9hTjUrdEM1QUxwME1WYjNhSHZlZz09
View gist:6ac3e4239d491fdf9db195bb3c97600e
https://docs.google.com/document/d/1-g1Roz85tbSE58Ob8kS_QAl5RYVnoNqKRjAL2_NvXzY/edit?usp=sharing
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', {
method:'get',
parameters:"since="+since,
insertion:'top',
onSuccess:function(r) { since = r.responseText; }
})
}, 4000);
@cannikin
cannikin / epub_cover_fixer.rb
Created Mar 31, 2019
Fixes cover images for IDW's Transformers Humble Bundle epub: https://www.humblebundle.com/books/transformers-2019-idw-books
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
cannikin / README.md
Last active Mar 28, 2019
Typical Ruby on Rails AWS Server Setup
View README.md

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.

Install

  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/setup.sh and change the variables at the top to match your setup
  4. Make /tmp/setup.sh executable: chmod +x /tmp/setup.sh
@cannikin
cannikin / gist:abb686146972a6716764
Created Jun 22, 2015
Git pre-commit hook for Ruby/Javascript debugging statements
View gist:abb686146972a6716764
#!/bin/sh
FILES='(js|css|rb|haml|erb)'
FORBIDDEN='(binding.pry|console.|debugger)'
GREP_COLOR='4;5;37;41'
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
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_API_ENDPOINT'] : API endpoint, https://app.getsentry.com
# 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.