Skip to content

Instantly share code, notes, and snippets.

View hmltn-0's full-sized avatar

Julius Hamilton hmltn-0

View GitHub Profile
@hmltn-0
hmltn-0 / simple_reading_list.applescript
Created August 26, 2024 19:22
Simple Safari Reading List Script
tell application "Safari"
set windowList to every window
repeat with aWindow in windowList
set tabList to every tab of aWindow
repeat with atab in tabList
tell atab
set tabURL to URL
set tabTitle to name
add reading list item tabURL with title tabTitle
end tell
@hmltn-0
hmltn-0 / gist:392da834edbb58ebfbb713fddffca58a
Created July 25, 2024 20:32
Making Curved Arrows and Double-base Arrows in Tikz-cd
\documentclass{standalone}
\usepackage{tikz-cd}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzcd}[arrows={-Stealth[length=6pt]}]
A \ar[dr, bend left=30] & & B \ar[dl, bend right=30] \\
& {} \ar[d] & \\
& C &
\end{tikzcd}
@hmltn-0
hmltn-0 / move_files.sh
Created July 23, 2024 17:58
Move Desktop files to Documents
mv /Users/juliushamilton/Desktop/* /Users/juliushamilton/Documents/
@hmltn-0
hmltn-0 / autohide_menu_bar.sh
Created July 23, 2024 17:33
Script to autohide the menu bar
#!/bin/zsh
# Enable autohide menu bar
osascript -e 'tell application "System Events" to set autohide menu bar of dock preferences to true'
# Disable autohide menu bar
osascript -e 'tell application "System Events" to set autohide menu bar of dock preferences to false'