Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
BEWARE="
I don't mind breaking my own stuff.
Here I'm just bulldozing everything I don't want when I'm being lazy and hand crafting artisinal and bespoke installations.
I'm sure it's a bit unnecessary and reckless. So, no guarantee this won't bork your system or give you trouble with future updates.
Ubuntu gets more difficult to disinfect every release.
@arreusch
arreusch / docker-mac-get-console.sh
Last active March 17, 2021 04:45
Get a serial console to linux host for docker on mac
#!/bin/bash
TTY_TMP=$(mktemp)
$(socat -d -d ~/Library/Containers/com.docker.docker/Data/debug-shell.sock pty,rawer 2>&1 | grep -Eo --line-buffered "/dev/tty\w+" > ${TTY_TMP} ) &
sleep 2
TTY=$(tail -n 1 "${TTY_TMP}")
picocom $TTY 2>/dev/null
@arreusch
arreusch / .bash_profile
Created January 11, 2021 13:19 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management