Skip to content

Instantly share code, notes, and snippets.

View RRRoger's full-sized avatar
:octocat:
Wubba lubba dub dub

Roger RRRoger

:octocat:
Wubba lubba dub dub
View GitHub Profile
@BretFisher
BretFisher / docker-for-mac.md
Last active May 7, 2024 08:34
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


@codingisacopingstrategy
codingisacopingstrategy / jpeg.sh
Created April 27, 2014 23:03
Convert raw to jpeg in os x shell
for f1 in *.*; do
sips -s format jpeg --resampleWidth 1024 "$f1" --out `echo $f1 | sed 's/\(.*\)\..*/\1/'`.jpg >/dev/null
# echo `echo $f1 | sed 's/\(.*\)\..*/\1/'`.jpg
done
echo "stop"