Skip to content

Instantly share code, notes, and snippets.

View Jahhein's full-sized avatar
🎃
Tinkering with my RaspberryPi... automation? NAS? Home-assistant? I need another

Jacob Hein Jahhein

🎃
Tinkering with my RaspberryPi... automation? NAS? Home-assistant? I need another
View GitHub Profile
@Jahhein
Jahhein / .leptonrc
Created March 31, 2018 19:26 — forked from hackjutsu/.leptonrc
[Template for .leptonrc] This is a template for Lepton's configuration file. Please place it on your home directory. #lepton
{
"snippet": {
"expanded": true,
"newSnippetPrivate": false,
"sorting": "updated_at",
"sortingReverse": true
},
"editor" : {
"tabSize": 4
},
@Jahhein
Jahhein / gist:881a317f18763ae922df38c6c535227c
Created April 5, 2018 12:58 — forked from fabiofl/gist:5873100
Clear Mac OS X's icon cache.
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \;
@Jahhein
Jahhein / README.md
Last active September 8, 2025 09:12
Display Apple AirPods battery levels via Terminal

Update: New output icon glyph

You can find information on my terminal configuration here

@Jahhein
Jahhein / _verify-repair-permissions-disk.md
Created June 13, 2018 22:29 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@Jahhein
Jahhein / _verify-repair-permissions-disk.md
Created June 13, 2018 22:29 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@Jahhein
Jahhein / uninstall_homebrew.sh
Created January 22, 2020 16:58 — forked from mxcl/uninstall_homebrew.sh
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@Jahhein
Jahhein / unbrew.rb
Created February 21, 2020 03:20 — forked from SteveBenner/unbrew.rb
Homebrew uninstall script
#!/usr/bin/env ruby
#
# CLI tool for locating and removing a Homebrew installation
# http://brew.sh/
#
# Copyright (C) 2014 Stephen C. Benner
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@Jahhein
Jahhein / find-all-repos.sh
Last active February 22, 2020 04:47
Find all repositories under a directory.
#!/bin/bash
cat << EOF
1) find "$1" -name \"^.git$\" -print
2) gfind "$1" -name \"^.git$\" -print
3) sudo fd --hidden --no-ignore --type directory \"^.git$\" "$1"
pick one you can use.
## EXAMPLE
@Jahhein
Jahhein / youtube-dl.md
Created April 17, 2020 02:46
Using youtube-dl to download courses from Pluralsight

Download courses from learning sites with youtube-dl

You can download whole courses from an array of tutorial sites with the CLI tool youtube-dl. In the example further down I'm using my Pluralsight account to get videos from a course at their site. Here is a list of all supported sites that you can download from with this tool

The flags you have to supply may vary depending on which site you make a request to.

You can get a free 3 month trial to Pluralsight by signing up for free to Visual Studio Dev Essentials

Installation

@Jahhein
Jahhein / iterm2-tips-and-tricks.md
Created May 18, 2020 03:48
iTerm2 tips and tricks sheet

iTerm2 (The awesome terminal for Mac)

Look and feel

  • Window theme: Preferences > Appearance Tab > Theme > Light/Dark
  • Show folder icon on window title: Preferences > Appearance Tab > Window: Show proxy icon in window title bar
  • Background transparancy and blur: Preferences > Profiles Tab > Window Tab > Transparency (a third) & Blur (Checked, full)
  • Color theme: Preferences > Profiles Tab > Colors Tab > Color Presets...

Window and tab title