Skip to content

Instantly share code, notes, and snippets.

View scaryrawr's full-sized avatar

Mike Wallio scaryrawr

View GitHub Profile
@robmiller
robmiller / .gitconfig
Created July 17, 2013 07:52
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
@yuhonas
yuhonas / select-wallpaper.applescript
Created January 3, 2024 11:59
Using apple script prompt the user for an image file then set it on every desktop
tell application (path to frontmost application as text)
try
set imageFile to (choose file with prompt "Select an image file:" of type "public.image") as text
end try
end tell
tell application "System Events"
repeat with desktopIndex from 1 to count of desktops
tell desktop desktopIndex
set picture to imageFile