Skip to content

Instantly share code, notes, and snippets.

View Firenza's full-sized avatar

Chad Oftedahl Firenza

  • Sleep Number
  • Minnesota
View GitHub Profile
@efrecon
efrecon / run.tpl
Last active May 6, 2024 20:12
`docker inspect` template to regenerate the `docker run` command that created a container
docker run \
--name {{printf "%q" .Name}} \
{{- with .HostConfig}}
{{- if .Privileged}}
--privileged \
{{- end}}
{{- if .AutoRemove}}
--rm \
{{- end}}
{{- if .Runtime}}
@baniol
baniol / adduser.sh
Last active March 28, 2024 17:55
Create a new user in osx, mac, terminal, bash
#!/bin/bash
# =========================
# Add User OS X Interactive Command Line
# =========================
# http://superuser.com/questions/202814/what-is-an-equivalent-of-the-adduser-command-on-mac-os-x
getHiddenUserUid()
{
local __UIDS=$(dscl . -list /Users UniqueID | awk '{print $2}' | sort -ugr)