Skip to content

Instantly share code, notes, and snippets.


Scott Granneman rsgranne

View GitHub Profile
hyperupcall / settings.jsonc
Last active June 4, 2023 06:35
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
View settings.jsonc
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
llimllib /
Last active May 31, 2023 22:25
The script I use to set up a new mac just the way I like it
#!/usr/bin/env bash
# many settings from
# many settings from
# instructions on finding the default you've changed:
# previous install notes at:
# this script's URL is:
chockenberry /
Created March 16, 2023 20:00
Script to toggle Finder icons
defaults read CreateDesktop > /dev/null 2>&1
if [ "$1" = "off" ]; then
if [ $enabled -eq 1 ]; then
osascript -e 'tell application "Finder" to quit'
defaults write CreateDesktop false
open -a Finder
selfire1 / resize.scpt
Last active March 20, 2022 10:56
An Applescript to resize windows from the command line
View resize.scpt
on run argv
-- Variables
set _cmd to (item 1 of argv)
tell application "Finder" to set _bounds to bounds of window of desktop
set _xPos to (item 1 of _bounds)
set _yPos to (item 2 of _bounds)
set _ySize to (item 3 of _bounds)
set _xSize to (item 4 of _bounds)
-- get bounds
-- do split: app1, app2, set split
rwcitek /
Last active April 17, 2023 04:54
Configure Linux and Install Docker on a Chromebook
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update --allow-releaseinfo-change
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
dannypage / twitter_font_adblock.txt
Created August 24, 2021 21:44
How to block Twitter's terrible font
View twitter_font_adblock.txt
# Go to uBlock's options and paste in the following under the "My Filters" tab
jerieljan /
Created May 22, 2021 13:32
Screenshot OCR with BetterTouchTool on MacOS
#!/usr/bin/env bash
# Usage:
# - Install `tesseract` with `brew install tesseract`
# - In BetterTouchTool, create a trigger of your choice.
# (I recommend a Keyboard Shortcut with Cmd+Shift 6)
# - Add an Execute Shell Script / Task action
# - Paste this script.
# NOTE: You'll need to authorize BTT to the Screen Recording permission in Security and Privacy at System Preferences
nyurik /
Last active January 16, 2023 08:29
Script to convert SCSS files from physical to logical values for RTL and vertical languages
# This script converts margins, padding, and borders to logical values,
# allowing RTL and vertical languages to show correctly.
# Supports both *.css and *.scss files.
# Some renames are not yet implemented widely, and may require CSS plugin
# They have been commented out for now, but feel free to try them out.
# Full spec:
rmcdongit /
Last active June 2, 2023 11:29
Apple System Preferences URL Schemes

macOS 10.15 System Preference Panes

Below are a list of System Preference pane URLs and paths that can be accessed with scripting to assist users with enabling macOS security settings without having to walk them through launching System Preferences, finding panes, and scrolling to settings. Not all panes have an accessible anchor and some are OS specific.

To find the Pane ID of a specific pane, open the System Preferences app and select the desired Preference Pane. With the pane selected, open the and run the following script to copy the current Pane ID to your clipboard and display any available anchors:

tell application "System Preferences"
	set CurrentPane to the id of the current pane
	set the clipboard to CurrentPane
kevinelliott /
Last active November 26, 2022 03:06
macOS 10.15 Catalina Mostly-Automated Setup

To support my open-source work, consider adding me on Patreon.

macOS 10.15 Catalina Mostly-Automated Setup

An easy to refer to document for regularly setting up macOS 10.15 Catalina.


The topic of recipe-based frequent fresh reinstalls of macOS is a controversial issue. Some people are against reinstalling macOS, citing that they have never had an issue with Apple provided upgrade installs.