Skip to content

Instantly share code, notes, and snippets.

View gwl's full-sized avatar
🎱

Gary W. Longsine gwl

🎱
  • illumineX, inc.
  • USA, Earth, Sol, Milky Way, Virgo Cluster, Laniakea Supercluster
View GitHub Profile
@gwl
gwl / ContentView.swift
Last active May 3, 2023 04:59
ContentView for SaverDebugger app
//
// ContentView.swift
// SaverDebugger
//
// Created by Gary W. Longsine on 4/9/23.
//
import SwiftUI
import ScreenSaver
import os
@gwl
gwl / RecordingManager.swift
Last active May 4, 2023 04:32
Recording Manager class for SaverDebugger app
//
// RecordingManager.swift
// SaverDebugger
//
// Created by Gary W. Longsine and ChatGPT Assistant (GPT-4) on 5/2/23.
//
import Foundation
import AVFoundation // to support recording samples of screensaver views
import AppKit
@gwl
gwl / twitter-remove-retweets.js
Created January 5, 2023 17:47 — forked from antlionguard/twitter-remove-retweets.js
With this script, you can remove all retweets you are retweeted on Twitter.
const timer = ms => new Promise(res => setTimeout(res, ms));
// Unretweet normally
const unretweetTweet = async (tweet) => {
await tweet.querySelector('div[data-testid="unretweet"]').click();
await timer(250);
await document.querySelector('div[data-testid="unretweetConfirm"]').click();
console.log('****// Unretweeted Successfully //****')
}
@gwl
gwl / TruAnon
Created November 8, 2022 05:56
Claim my GitHub in TruAnon
Confirmation: qfjkkpuxk2veu - I am using TruAnon to claim my GitHub.
@gwl
gwl / speedmail.applescript
Created May 8, 2020 17:33 — forked from ttscoff/speedmail.applescript
Speed up Mail.app
(*
Speed up Mail.app by vacuuming the Envelope Index
Code from: http://www.hawkwings.net/2007/03/03/scripts-to-automate-the-mailapp-envelope-speed-trick/
Originally by "pmbuko" with modifications by Romulo
Updated by Brett Terpstra 2012
Updated by Mathias Törnblom 2015 to support V3 in El Capitan and still keep backwards compability
Updated by @lbutlr for V5 and Container folder in High Sierra and use du
*)
tell application "Mail" to quit
@gwl
gwl / xcode-nuke-uninstall.rb
Created April 19, 2017 21:47 — forked from matti/xcode-nuke-uninstall.rb
completely remove all xcode files
#!/usr/bin/env ruby
cancer_in_home = [
"Library/Developer",
"Library/Preferences/com.apple.dt.*",
"Library/Caches/com.apple.dt.*",
'Library/Application\ Support/Xcode'
]
cancer_in_root = [
@gwl
gwl / nibtoxib.sh
Created April 11, 2016 01:30 — forked from ssp/nibtoxib.sh
nibtoxib
#! /bin/sh
find . -name "*.nib" -type d | awk '{sub(/.nib/,"");print}' | xargs -I % ibtool --write %.xib --upgrade %.nib