Skip to content

Instantly share code, notes, and snippets.

View thejoltjoker's full-sized avatar

Johannes thejoltjoker

View GitHub Profile
doskey nuke="C:\Program Files\Nuke10.5v2\Nuke10.5.exe"
@thejoltjoker
thejoltjoker / shelf_Custom.mel
Created May 24, 2017 16:51
My custom shelf in Maya.
global proc shelf_Custom () {
global string $gBuffStr;
global string $gBuffStr0;
global string $gBuffStr1;
shelfButton
-enableCommandRepeat 1
-enable 1
-width 35
@thejoltjoker
thejoltjoker / wacomFix.bat
Created May 17, 2017 17:01
The Wacom Tablet Service isn't great and needs to be restarted every now and then. This script stops and starts the Wacom Tablet Service.
net stop WTabletServicePro
net start WTabletServicePro
@thejoltjoker
thejoltjoker / ffmpegEncodeForYoutube.sh
Created April 26, 2017 04:43
An ffmpeg command to encode a video for Youtube based on their recommended settings.
# Use ffmpeg to encode an input to a video with settings suggested by youtube.
# Read more at https://support.google.com/youtube/answer/1722171?hl=en
ffmpeg -i input.%04d.dpx -c:v libx264 -movflags faststart -crf 0 -pix_fmt yuv420p -r 24 -g 12 -bf 2 -c:a libfdk_aac -b:a 384k -ar 48000 output.mp4
@thejoltjoker
thejoltjoker / append4Photos.sh
Created December 14, 2016 11:52
append 4 photos to create one highres.
# files need to be named according to this convention:
# name.[####].part_##.ext
# example.1001.part_01.exr
filext=jpg
for i in `ls -t *part_01*`; do
echo 'Merging parts for '$i
echo ${i%part*}part_01.$filext
convert +append ${i%part*}part_01.$filext ${i%part*}part_02.$filext ${i%part*}_top.$filext