Skip to content

Instantly share code, notes, and snippets.

View canalnoises's full-sized avatar

Isaac Nelson canalnoises

View GitHub Profile
@biosmanager
biosmanager / userChrome.css
Last active May 14, 2025 13:49
Firefox Proton macOS Close Tab Left (updated for version 113)
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
.tabbrowser-tab .tab-close-button {
opacity: 0;
margin-left: -4.5px !important;
margin-right: 2px !important;
}
.tabbrowser-tab:not(:hover) .tab-close-button {
display: none;
@jlehikoinen
jlehikoinen / gist:ec7bbf5d7a5696b3761df881fac4571f
Last active June 9, 2021 18:42
Codesign Configuration Profile
# Automator > Quick Action
# Workflow receives current "files or folders" in "Finder"
# Add "Run Shell Script" action
# Copy script below to "Run Shell Script" window
# Replace <codesigning certificate> at row 28 with your preferred certificate
# Save quick action as: "Sign Configuration Profile"
# Quick Actions live in: ~/Library/Services
# Receives files and folders
@juliendargelos
juliendargelos / imagemagick-trim-transparent.sh
Last active June 17, 2025 15:02
Imagemagick command that trims transparent pixels from an image.
convert input.png -trim +repage output.png
@jlehikoinen
jlehikoinen / gist:28ec2336f82110829868931543b4ed95
Last active March 25, 2025 09:50
Remove signature from Configuration Profile using Quick Action
# Automator > Quick Action
# Workflow receives current "files or folders" in "Finder"
# Add "Run Shell Script" action
# Copy script below to "Run Shell Script" window
# Replace <text-editor-app> at row 36 with your preferred text editor app
# Save quick action as: "Remove signature from Profile & open in <app>"
# Quick Actions live in: ~/Library/Services
# Target folder
@grahampugh
grahampugh / Disable_macOS_Upgrade_Notifications.sh
Last active October 8, 2025 10:22
Script to prevent the macOS Upgrade Notification popup, or delete it if it's already installed
#!/bin/bash
# Disable macOS Upgrade notifications
# Step 1: prevent the update which brings the notification down
softwareupdate --ignore macOSInstallerNotification_GM
echo
# Step 2: delete the file if it's already on the computer
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadContent</key>
<dict>
<key>com.apple.touristd</key>
@rex
rex / copy-all-safari-urls.applescript
Created August 15, 2018 15:46
Applescript snippet to copy all URLs from all open tabs in front-most Safari window
------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2017/11/15 00:00
# dMod: 2017/11/15 00:03
# Appl: Safari
# Task: Put URLs of all tabs of the front window on the clipboard.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @Safari, @Put, @URLs, @All, @Tabs, @Front, @Window, @Clipboard
------------------------------------------------------------------------------
#!/usr/bin/perl
# This filter changes all words to Title Caps, and attempts to be clever
# about *un*capitalizing small words like a/an/the in the input.
#
# The list of "small words" which are not capped comes from
# the New York Times Manual of Style, plus 'vs' and 'v'.
#
# 10 May 2008
# Original version by John Gruber:
@stevoyoung
stevoyoung / gist:3214626
Created July 31, 2012 07:45
Open New Safari Window and make it active
-- This AppleScript is used to create a new safari window then it brings Safari to the front.
-- I'm using this as a script I can trigger via Alfred. It's particularly nice when you work
-- in many spaces on your Mac. If you are in a space that doesn't have a Safari window open
-- it will simply open a new window in that space without switch spaces on you.
-- Feel free to copy and use however you would like.
-- Created by Stephen Young, @stevoyoung
-- Hey, Safari, I'm talking to you ...
tell application "Safari"
-- open new safari window and go to specific url. If you want a blank window, simple use "make new document" instead.