Skip to content

Instantly share code, notes, and snippets.

View Hazer's full-sized avatar

Vithorio Polten Hazer

View GitHub Profile
@Hazer
Hazer / default_editor.sh
Last active November 17, 2024 04:45
Set default editor macOS
# Zed
defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=dev.zed.Zed;}'
# Sublime Text 4
defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.4;}'
# Sublime Text 3
defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.sublimetext.3;}'
# VS Code
@Hazer
Hazer / combine.sh
Created December 3, 2024 19:15
Combine Google Drive Splits
# Move your zip files to a folder with only the zip files
mkdir combined
ditto -V -x -k *.zip combined
# Or pattern the name
ditto -V -x -k MySplitFiles*.zip combined
# https://stackoverflow.com/questions/60842075/combine-the-split-zip-files-downloading-from-google-drive