Skip to content

Instantly share code, notes, and snippets.

View wchrisjohnson's full-sized avatar

Chris Johnson wchrisjohnson

View GitHub Profile
@wchrisjohnson
wchrisjohnson / tmux-cheatsheet.markdown
Created July 23, 2018 19:41 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@wchrisjohnson
wchrisjohnson / restart-network-services
Created March 2, 2021 18:10 — forked from stevenharman/restart-network-services
Restart Active Network Services on your Mac. You know, for the VPN!
#! /usr/bin/env bash
# shellcheck disable=SC2059
set -euo pipefail
# Toggle all currently 'Active' network servcies (e.g., Wi-Fi, Ethernet
# connections, etc...) to "restart" them. We'll ignore any already 'Disabled'
# services, and toggle all of the others to 'Disabled' and then back to
# 'Enabled'. This has been found helpful when your VPN won't re-connect after
# undocking and re-docking your MacBook, for example.