Skip to content

Instantly share code, notes, and snippets.

View evan-annix's full-sized avatar

Evan Nixon evan-annix

View GitHub Profile
@evan-annix
evan-annix / iterm2.md
Created August 16, 2024 19:15 — forked from squarism/iterm2.md
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@evan-annix
evan-annix / Dracula.sublime-color-scheme
Created October 18, 2023 19:18
Sublime Text: Dracula Theme YAML Syntax Highlighting Fix
// Fix for the official Dracula Theme found at https://draculatheme.com/sublime not supporting YAML Syntax Highlighting.
// Simply run "Customize Color Scheme" from the Sublime Command Palette and paste in this text.
// Or, if you hate convenience, just place this file in your user folder at ".../Sublime Text/Packages/User/Dracula.sublime-color-scheme"
//
// Documentation at https://www.sublimetext.com/docs/color_schemes.html
{
"variables":
{
},
"globals":
@evan-annix
evan-annix / docker-compose.yaml
Created September 25, 2023 21:22
Docker Compose - Plex
### This compose is tested and working on an Xpenology "DS920+"
### running on an HP 290 G1 (i3-7100).
### I highly recommend visiting DrFrankenstein's Tech Stuff Blog
### for a full walk-through and setup guide if you are on a
### Synology/Xpenology system, or if you're new to Linux User Perimissions.
###
### Links:
### https://drfrankenstein.co.uk/2021/12/06/plex-in-docker-on-a-synology-nas-hardware-transcoding/
@evan-annix
evan-annix / sublime-text-macos-context-menu.md
Created September 15, 2023 14:31 — forked from idleberg/sublime-text-macos-context-menu.md
“Open in Sublime Text” in macOS context-menu

This list has been updated for Big Sur (and later). Since I don't use these versions, this guide might still need further improvements. For older macOS versions, please see this older revision.

Open in Sublime Text

  • Open Automator
  • Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
  • Set the script action to /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n "$@"
  • Set “Pass input” to as arguments
@evan-annix
evan-annix / automator_new_file.scpt
Created September 15, 2023 14:24 — forked from rarylson/automator_new_file.scpt
AppleScript to create a new file in Finder (to be used in Automator)
-- AppleScript to create a new file in Finder
--
-- Use it in Automator, with the following configuration:
-- - Service receives: no input
-- - In: Finder.app
--
-- References:
-- - http://apple.stackexchange.com/a/129702
-- - http://stackoverflow.com/a/6125252/2530295
-- - http://www.russellbeattie.com/blog/fun-with-the-os-x-finder-and-applescript