Skip to content

Instantly share code, notes, and snippets.

View alanbrent's full-sized avatar
🕳️
🐇

Brent Stephens alanbrent

🕳️
🐇
  • Radically Rational, @Tapjoy
  • California
View GitHub Profile
@alanbrent
alanbrent / docker-for-mac.md
Created December 13, 2022 17:12 — forked from BretFisher/docker-for-mac.md
Getting a Shell in the Docker Desktop Mac VM

2021 Update: Easiest option is Justin's repo and image

Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).

docker run -it --rm --privileged --pid=host justincormack/nsenter1

more info: https://github.com/justincormack/nsenter1


@alanbrent
alanbrent / curl.md
Created March 29, 2019 17:17 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@alanbrent
alanbrent / tmux.conf
Created March 25, 2019 18:51 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@alanbrent
alanbrent / keybase.md
Last active June 12, 2016 00:46
keybase.io <-> GitHub Proof

Keybase proof

I hereby claim:

  • I am alanbrent on github.
  • I am alanbrent (https://keybase.io/alanbrent) on keybase.
  • I have a public key ASA4qDaLsqtCGAV0DDtcD7tmYMowfjMoELX9uTjnPs4BeAo

To claim this, I am signing this object: