Skip to content

Instantly share code, notes, and snippets.

View shredthaGNAR's full-sized avatar

Me shredthaGNAR

View GitHub Profile

Spotlight Indexing switch

os x terminal command.

Turn off indexing

Turn off Spotlight Indexing

sudo mdutil -a -i off
@jart
jart / rename-pictures.sh
Created December 12, 2023 15:24
Shell script for renaming all images in a folder
#!/bin/sh
# rename-pictures.sh
# Author: Justine Tunney <jtunney@gmail.com>
# License: Apache 2.0
#
# This shell script can be used to ensure all the images in a folder
# have good descriptive filenames that are written in English. It's
# based on the Mistral 7b and LLaVA v1.5 models.
#
# For example, the following command:
@steventheworker
steventheworker / DockAltTab-tccutil.sh
Created April 27, 2023 19:35
DockAltTab remove all permissions w/ redundancy
tccutil reset All com.steventheworker.DockAltTab
tccutil reset ScreenCapture com.steventheworker.DockAltTab
tccutil reset AppleEvents com.steventheworker.DockAltTab
tccutil reset Accessibility com.steventheworker.DockAltTab
tccutil reset MediaLibrary com.steventheworker.DockAltTab
tccutil reset ListenEvent com.steventheworker.DockAltTab
# other... ?
# tccutil reset ListenEvent com.steventheworker.DockAltTab
# tccutil reset DeveloperTool com.steventheworker.DockAltTab
@jwmcgettigan
jwmcgettigan / bitwarden_duplicate_cleaner.py
Last active June 6, 2026 14:21
Identifies and removes duplicate 'items' and 'folders' from your Bitwarden vault. 🎃
#!/usr/bin/env python3
# Copyright © 2023 Justin McGettigan
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the “Software”), to deal in the Software without
# restriction, including without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or
@CaptainJack0404
CaptainJack0404 / YoutubeSortAndFilterPlaylistsWhenSavingVideo.js
Last active April 20, 2026 22:10
Youtube script: When saving a video to a playlist, 1) add a button to sort the list alphabetically and 2) add a filter textbox to filter the list by title
// ==UserScript==
// @name Youtube Sort & Filter Playlists When Saving Video
// @version 2026.04.20.11
// @namespace https://gist.github.com/CaptainJack0404
// @description Add sort & filter controls to the "Save video to..." dialog
// @author CaptainJack0404
// @match https://www.youtube.com/*
// @match https://youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
@shredthaGNAR
shredthaGNAR / zsh-keyboard-shortucts.md
Created September 23, 2022 23:50 — forked from mkfares/zsh-keyboard-shortucts.md
Common zsh Keyboard Shortcuts on macOS Catalina

Common zsh Keyboard Shortcuts on macOS

Navigation

CTRL + A : Move the cursor to the beginning of the line
CTRL + E : Move the cursor to the end of the line
OPTION + Left Arrow : Move the cursor one word backward
OPTION + Right arrow : Move the cursor one word forward
Left Arrow : Move the cursor one character backward
Right Arrow : Move the cursor one character forward

@GetVladimir
GetVladimir / Setup-iCloud+-Custom-Domain-Catch-All-email-with-Gmail.md
Last active June 23, 2026 17:52
How to setup iCloud+ Custom Domain Catch All email with Gmail

How to setup iCloud+ Custom Domain Catch All email with Gmail

I've recently tested on how to move the custom domain catch all email from G Suite to the new iCloud+ Catch All feature and wanted to share my experience.

The end result is having Custom Domain email and Catch All routing, that can be fully used via Gmail, including receiving and sending emails.


The steps

  • Setup your Custom Domain (or subdomain) with iCloud+
@Sangdol
Sangdol / unminimize.scpt
Created July 23, 2022 14:49
An AppleScript to un-minimize a window of the currently focused application.
# https://talk.automators.fm/t/unminimize-windows-of-the-current-application/12360/5
tell application id ("com.apple.systemevents") ¬
to tell (process 1 where it is frontmost) ¬
to tell (windows whose attribute named "AXMinimized"'s value is true) ¬
to if (it exists) then set the value of its attribute named "AXMinimized" of item 1 to false
@4v3ngR
4v3ngR / ytadblock.js
Last active December 29, 2025 21:47
Block youtube ads in Safari with userscripts
// ==UserScript==
// @name Youtube adblock
// @namespace http://tampermonkey.net/
// @version 0.2
// @description enough with the ads!
// @author 4v3ngR
// @match https://*.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// @run-at document-start