Skip to content

Instantly share code, notes, and snippets.

@patrickgill
patrickgill / macos_appstore.txt
Last active May 17, 2024 13:26
macOS App Store IDs
# mas install <id>
id6450717509 14 macOS Sonoma
id1638787999 13 macOS Ventura
id1576738294 12 macOS Monterey
id1526878132 11 macOS Big Sur
1466841314 10.15 macOS Catalina
1398502828 10.14 macOS Mojave
1246284741 10.13 macOS High Sierra
1127487414 10.12 macOS Sierra
1147835434 10.11 OS X El Capitan (new)
prezto
https://github.com/sorin-ionescu/prezto
# https://github.com/mathiasbynens/dotfiles
@patrickgill
patrickgill / toflac.ps1
Created September 10, 2017 06:24
Convert files in current directory to FLAC
$files = Get-ChildItem .
foreach ($file in $files) {
ffmpeg -i $file $($file.BaseName + ".flac")
}
@patrickgill
patrickgill / boxsetup-personal
Last active February 12, 2017 05:20
boxstarter personal
# http://boxstarter.org/package/url?
# URL Setup
# http://boxstarter.org/package/nr/url?*url to raw gist*
# Run in Powershell
# START *URL above*
# Windows options
Set-ExplorerOptions -showHidenFilesFoldersDrives
Set-ExplorerOptions -showProtectedOSFiles
@patrickgill
patrickgill / buildvideo.sh
Last active April 8, 2019 19:50
ffmpeg dump and rebuild frame sequence
fmpeg -i video input/frame_%04d.bmp
#your processing here, ie. python3 glitch.py
ffmpeg -framerate 29.97 -i output/wp_frame_%04d.bmp output.mp4
@patrickgill
patrickgill / .swift
Created September 7, 2016 12:39
Simulating physics
// If you do not want to create your own shapes, you can use SpriteKit to create a shape for you based on the sprite’s texture.
//objc
SKSpriteNode *sprite = [SKSpriteNode spriteNodeWithImageNamed:@"Spaceship"];
sprite.physicsBody = [SKPhysicsBody bodyWithTexture:sprite.texture size:sprite.texture.size];
//swift
let sprite = SKSpriteNode(imageNamed:"Spaceship")
sprite.physicsBody = SKPhysicsBody(texture: sprite.texture!, size: sprite.size)
@patrickgill
patrickgill / gist:9660af2757b4e43ebe1c43c38e7ec711
Last active August 5, 2016 08:57
install pyscenedetect on mac
# follow http://www.pyimagesearch.com/2015/06/15/install-opencv-3-0-and-python-2-7-on-osx/
# install numpy
sudo pip install numpy
# https://github.com/Breakthrough/PySceneDetect
sudo pip install pyscenedetect
# encode
cat chickenhours.jpg | base64 > chickn.txt
# decode
base64 --decode -i chicknJK.txt -o outJK.jpg
@patrickgill
patrickgill / gist:047dfb6bdad50219be638dd404a3bac1
Created July 30, 2016 16:38
mac: include homebrew lib and include paths
# view paths
# ld -v 2
CPPFLAGS=-I$HOME/local/include
LDFLAGS=-L$HOME/local/lib