Skip to content

Instantly share code, notes, and snippets.

@Jubjub
Jubjub / validator.js
Created March 22, 2022 13:16
app.justsketch.me validator/crack
// 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/")) {
@Jubjub
Jubjub / commentary_sync.sh
Last active February 2, 2021 14:10
A script to synchronize a movie and a commentary with auto ducking. Uses only ffmpeg.
#!/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
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;
@Jubjub
Jubjub / blender.py
Last active September 25, 2016 12:54
Blender script for EC2 GPU rendering.
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
@Jubjub
Jubjub / gist:cbdce9a79af8c20f24ea53c644855c5e
Created September 25, 2016 12:39
Installing CUDA + Blender on a gp2 AWS EC2 instance.
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
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'