Skip to content

Instantly share code, notes, and snippets.

View acbetter's full-sized avatar
🈚
人已躺平 Salty Fish Everydayyyyyy

嘉心糖 acbetter

🈚
人已躺平 Salty Fish Everydayyyyyy
View GitHub Profile
@jordanwesthoff
jordanwesthoff / 3d_lut.sh
Created February 17, 2015 14:38
Applying 3D LUT's in FFMPEG
#!/bin/bash
ffmpeg -i input -vf lut3d=<lut file> -c:a copy output
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@lilydjwg
lilydjwg / ttc2ttf
Last active July 12, 2023 14:27
Convert .ttc to several .ttf files into the current directory
#!/usr/bin/env python3
import sys
import fontforge
def main(file):
for font in fontforge.fontsInFile(file):
f = fontforge.open(u'%s(%s)' % (file, font))
f.generate('%s.ttf' % font)
@chriskiehl
chriskiehl / Vitual keystroke example
Created June 10, 2012 15:08
Python win32api simple Vitual keystroke example
#Giant dictonary to hold key name and VK value
VK_CODE = {'backspace':0x08,
'tab':0x09,
'clear':0x0C,
'enter':0x0D,
'shift':0x10,
'ctrl':0x11,
'alt':0x12,
'pause':0x13,
'caps_lock':0x14,