Skip to content

Instantly share code, notes, and snippets.

View indygwyn's full-sized avatar

Thomas W. Holt Jr. indygwyn

  • Indianapolis, IN US
View GitHub Profile
#!/bin/bash
# shellcheck disable=SC1090
shopt -s histappend # append to history instead of overwrite
shopt -s cmdhist # save multiline cmds in history
shopt -s cdspell # spellcheck cd
shopt -s extglob # bash extended globbing
set -o noclobber # no clobber of files on redirect >| override
set -o vi # use a vi-style command line editing interface
export LC_ALL="en_US.UTF-8"
podman-machine create box
eval $(podman-machine env)
eval $(podman-machine env --varlink)
podman run hello-world
podman run busybox echo "hello from busybox"
podman image ls -a
podman ps -a
@indygwyn
indygwyn / Podman-on-MacOS.md
Created January 25, 2020 03:30 — forked from rbo/Podman-on-MacOS.md
Podman on Mac OS
$ export PATH=$(pwd):$PATH
$ podman-machine create box
Podman machine "box" already exists
$ podman-machine start box
Starting "box"...
@indygwyn
indygwyn / tmux.md
Created December 26, 2019 18:11 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@indygwyn
indygwyn / pull-request-poetry.md
Created December 2, 2019 13:53 — forked from obscurerichard/pull-request-poetry.md
pull-request-poetry.md

Pull request poetry

by Richard Bullington-McGuire richard@obscure.org @obscurerichard on GitHub and Twitter

Use these as comments in pull requests in order to charm the project owner into taking action on the pull request.

Initial ticklers

lonely pull request
the completist in me pines
for its prompt closure
@indygwyn
indygwyn / setup-polipo-with-kitchen-on-osx.md
Created November 19, 2019 18:34 — forked from maoo/setup-polipo-with-kitchen-on-osx.md
Setting up polipo with Kitchen on OSX

How To setup polipo on OSX

  • Install polipo with brew install polipo

  • Edit your ~/.bashrc or ~/.zshrc and include

$PLIST_FILE=~/opt/homebrew.mxcl.polipo.plist
alias launch-polipo='launchctl load $PLIST_FILE'
alias stop-polipo='launchctl load $PLIST_FILE'
@indygwyn
indygwyn / README.md
Created November 19, 2019 17:54 — forked from fnichol/README.md
Auto-enable Local HTTP Caching in Test Kitchen

Auto-enable Local HTTP Caching in Test Kitchen

Note: total experiment and hack, looks nasty, could be awesome:

Setup

  • Drop the kitchen.local.yml into $HOME/.kitchen/config.yml
  • Install polipo (with Mac: brew install polipo, with Ubuntu: apt-get install polipo)
  • Drop polipo-start and polipo-console somewhere useful (perhaps $HOME/bin?)
@indygwyn
indygwyn / TrueColour.md
Created September 30, 2019 14:24 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Terminal Colors

There exists common confusion about terminal colors. This is what we have right now:

  • Plain ASCII
  • ANSI escape codes: 16 color codes with bold/italic and background
  • 256 color palette: 216 colors + 16 ANSI + 24 gray (colors are 24-bit)
  • 24-bit true color: "888" colors (aka 16 milion)
foreman-installer --scenario katello \
--no-enable-puppet \
--foreman-proxy-puppet false \
--foreman-proxy-puppetca false \
--foreman-proxy-content-puppet false \
--katello-enable-puppet false \
--enable-foreman-plugin-ansible \
--enable-foreman-plugin-digitalocean \
--enable-foreman-plugin-discovery \
--enable-foreman-plugin-remote-execution
add_newline = false
[character]
symbol = ""
error_symbol = "✖"
vicmd_symbol = ""
use_symbol_for_status = true
[cmd_duration]
min_time = 4