Skip to content

Instantly share code, notes, and snippets.

View programming-wolf's full-sized avatar

Benjamin Wolf programming-wolf

View GitHub Profile
@andreaswissel
andreaswissel / setup.sh
Last active February 6, 2025 13:11
new mac setup script
# Command line tools
xcode-select --install
# homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# zsh
@vorg
vorg / tabdump.scpt
Last active July 17, 2025 04:59
Copy all Safari tabs title and url as markdown
(*Adapted from https://stackoverflow.com/a/39820517*)
set r to "" -- an empty variable for appending a string
tell application "Safari"
repeat with w in windows -- loop for each window, w is a variable which contain the window object
if exists current tab of w then -- is a valid browser window
repeat with t in tabs of w -- loop for each tab of this window, , t is a variable which contain the tab object
-- get the title (name) of this tab and get the url of this tab
tell t to set r to r & "- [ ] [" & name & "](" & URL & ")" & linefeed -- append a line to the variable (r)
(*
'linefeed' mean a line break