View validator.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use with https://github.com/Lor-Saba/Code-Injector | |
const { fetch: originalFetch } = window; | |
// https://api.gumroad.com/v2/licenses/verify {"success":true} | |
// https://larry.justketch.me/validate/{licensekey}/ {"result": "valid"}} | |
window.fetch = async (...args) => { | |
let [resource, config ] = args; | |
const response = await originalFetch(resource, config); | |
if (resource.includes("larry.justsketch.me/validate/")) { |
View commentary_sync.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -eq 0 ] | |
then | |
echo "usage: ./commentary_sync.sh movie commentary subtitle" | |
exit | |
fi | |
ffmpeg -i "$1" -vn -acodec copy audio.aac | |
ffmpeg -i audio.aac -i "$2" -filter_complex "[1:a]asplit=2[sc][mix];[0:a][sc]sidechaincompress=threshold=0.1:ratio=3[bg]; [bg][mix]amerge[final]" -map [final] final.aac | |
ffmpeg -i "$1" -i final.aac -i "$3" -c copy -map 0:v:0 -map 1:a:0 -map 2:s:0 synchronized.mkv | |
rm audio.aac |
View gist:a4f1b30e87998db5d9c496922e203bff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
headerbar.default-decoration { | |
padding-top: 0px; | |
padding-bottom: 0px; | |
min-height: 0px; | |
font-size: 0.6em; | |
} | |
headerbar.default-decoration button.titlebutton { | |
padding: 0px; | |
min-height: 0px; |
View gist:cbdce9a79af8c20f24ea53c644855c5e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get install -y linux-image-extra-`uname -r` linux-headers-`uname -r` linux-image-`uname -r` | |
sudo apt-get install -y cuda | |
sudo apt-get install -y blender |
View blender.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
bpy.context.user_preferences.system.compute_device_type = 'CUDA' | |
for scene in bpy.data.scenes: | |
scene.render.resolution_x = 1920 | |
scene.render.resolution_y = 1080 | |
scene.render.image_settings.file_format = 'PNG' | |
scene.render.resolution_percentage = 100 | |
scene.render.tile_x = 1024 |
View .vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
"Plugin 'Valloric/YouCompleteMe' | |
Plugin 'davidhalter/jedi-vim' | |
Plugin 'scrooloose/syntastic' |