Skip to content

Instantly share code, notes, and snippets.

@jcherven
jcherven / create-highsierra-iso.sh
Created December 10, 2019 00:11
Create a MacOS High Sierra (10.13) .iso from the locally installed "Install macOS High Sierra.app" file from the App Store
#!/bin/bash
# Creates a MacOS 10.13 High Sierra install .iso image for use in virtual machines or to create USB install media
# Requires a local download of the High Sierra installer in its default location (/Applications) from the Apple App Store
# Therefore this particular method is intended to be run on a working Mac running HighSierra or Sierra
# Steps are copied from https://www.howtogeek.com/289594/how-to-install-macos-sierra-in-virtualbox-on-windows-10/
set -e
# Creates a blank disk image
@jcherven
jcherven / WindowsSystemFont-Change.reg
Created December 31, 2019 16:44
Change the Windows 10 system UI font to something else via Registry
Windows Registry Editor Version 5.00
; Regedit script for changing many of the Windows 10 UI system fonts from Segoe UI to something else
; Does not change everything, but it does affect most UI elements
; Edit the last line, save the file, then double click the script to patch the registry with this change
; To roll back these changes, use the companion script "WindowsSystemFont-RestoreSegoeUI.reg"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Segoe UI (TrueType)"=""
@jcherven
jcherven / WindowsSystemFont-RestoreSegoeUI.reg
Created December 31, 2019 16:48
Restore Segoe UI as the Windows 10 system UI font (rolls back changes from companion script)
Windows Registry Editor Version 5.00
; This is a companion script for https://gist.github.com/jcherven/42b84294248674c29eb50cb711114315
; Rolls back changes made by the above registry patch script
; Don't edit this file; save and double click to run.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Segoe UI (TrueType)"="segoeui.ttf"
@jcherven
jcherven / add-to-macos-uefi-boot-menu.md
Last active August 25, 2020 15:39
Adding a grub2 EFI launcher to the MacOS UEFI boot menu

Adding a gnu/linux entry to the apple uefi loader menu

This assumes you have a currently installed working linux on another partition or disk.

In the MacOS installation as root:

diskutil mount disk0s1
ls /Volumes
@jcherven
jcherven / fix-terminfo-tmux.md
Last active August 25, 2020 15:29
Fixing terminfo for tmux

'tmux-256color': unknown terminal type

Caused by missing terminfo entries for the terminal being used. Sometimes this can be fixed by upgrading ncurses or terminfo to a later version. In the event that it can't:

  1. Copy the terminfo entry from a machine that has it:
ssh <user@host> infocmp -x tmux-256color >~/tmux-terminfo
  1. Add it to your machine's terminfo database with:
@jcherven
jcherven / resume.json
Last active November 20, 2021 01:53
resume.json
{
"meta": { "theme": "Stackoverflow" },
"basics": {
"name": "James Cherven",
"label": "IT Professional (Web Development)",
"image": "",
"email": "cherven.james@icloud.com",
"url": "https://github.com/jcherven",
"summary": "An IT professional experienced in system administration, network support, and desktop user support. Hobbyist web developer. Alumni of USF's College of Engineering, class of 2016.",
"location": {
@jcherven
jcherven / package.json
Created July 17, 2021 22:24
little-sass-dev-template
{
"name": "sass-dev-template",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"watch:sass": "node-sass sass/main.scss css/style.css -w",
"devserver": "lite-server",
"start": "npm-run-all --parallel devserver watch:sass",
"compile:sass": "node-sass sass/main.scss css/style.comp.css",
@jcherven
jcherven / emacs-style-text-input.ahk
Last active August 1, 2022 17:38
Autohotkey (Windows) script for binding Readline/Emacs cursor and editing keys
;; Requires installation of autohotkey.
;; To run on login, the script can be placed in the
;; "shell:startup" or "shell:common startup" folder
; Prevent Alt-modified keys from triggering Windows menus
~Alt::
KeyWait, Alt
return
~LAlt Up::
if (A_PriorKey = "Alt")