Skip to content

Instantly share code, notes, and snippets.

@sheepla
sheepla / ojosudo
Last active March 16, 2026 17:54
sudo but for お嬢様
#!/bin/sh
echo -e "貴方は領主様から通常の講習を受けたはずですわ。
これは通常、以下の3点に要約されますの:
#1) 市民の皆様のプライバシーを尊重すること。
#2) タイプする前に考えること。
#3) そしてノブレス・オブリージュを肝に銘じておくことですわ。
"
exec sudo "${@}"
@ddre54
ddre54 / changing_time_zones.sh
Last active March 16, 2026 17:54
Mac OS X - Terminal commands for changing time zones in the machine
# Useful for testing things that are time zone
# sensitive - like scheduling things
# Get current timezone
sudo systemsetup -gettimezone
# Get list of available timezones
sudo systemsetup -listtimezones
# Set the timezone to the selected timezone
@thoaster
thoaster / reset.sh
Last active March 16, 2026 17:53
Transmit 5 Trial Reset
#!/bin/sh
# Reset Transmit 5 Trial
# curl -fsSL https://gist.githubusercontent.com/thoaster/ca5b4fdb653b9cdb3930897045b78558/raw/reset.sh | bash
set +e
set -x
sudo rm -rf ~/Library/Caches/com.panic.Transmit
sudo rm -rf ~/Library/Application\ Support/com.panic.Transmit
sudo rm ~/Library/Preferences/com.panic.Transmit.plist
@bradtraversy
bradtraversy / ssh.md
Last active March 16, 2026 17:53
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh brad@192.168.1.29

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test

---
name: plan-exit-review
version: 2.0.0
description: |
Review a plan thoroughly before implementation. Challenges scope, reviews
architecture/code quality/tests/performance, and walks through issues
interactively with opinionated recommendations.
allowed-tools:
- Read
- Grep
# ============================================
# Ghostty Terminal - Complete Configuration
# ============================================
# File: ~/.config/ghostty/config
# Reload: Cmd+Shift+, (macOS)
# View options: ghostty +show-config --default --docs
# --- Typography ---
font-family = JetBrainsMonoNerdFont
font-size = 14
@henri
henri / macOS_timemachine_cheatsheet.txt
Last active March 16, 2026 17:51
macOS TimeMachine cheatsheet
# the man page for tmutil
man tmutil
# calculate drift on backups (cpu / io intensive)
tmutil calculatedrift backup_folder
# list backups
tmutil listbackups
# set backup destination
@rpavlik
rpavlik / settings.json
Last active March 16, 2026 17:49
Go away copilot and other slop machines (in vscode)
{
// go away copilot and other ai slop machines
"accessibility.verboseChatProgressUpdates": false,
"accessibility.verbosity.inlineChat": false,
"accessibility.verbosity.panelChat": false,
"accessibility.verbosity.terminalChatOutput": false,
"ansible.lightspeed.suggestions.waitWindow": 360000,
"chat.agent.codeBlockProgress": false,
"chat.agent.enabled": false,
"chat.agent.maxRequests": 0,
@arch1t3cht
arch1t3cht / video_noob_guide.md
Last active March 16, 2026 17:47
What you NEED to know before touching a video file

What you NEED to Know Before Touching a Video File

Hanging out in subtitling and video re-editing communities, I see my fair share of novice video editors and video encoders, and see plenty of them make the classic beginner mistakes when it comes to working with videos. A man can only read "Use Handbrake to convert your mkv to an mp4 :)" so many times before losing it, so I am writing this article to channel the resulting psychic damage into something productive.

If you are new to working with videos (or, let's face it, even if you aren't), please read through this guide to avoid making mistakes that can cost you lots of time, computing power, storage space, or video quality.