Skip to content

Instantly share code, notes, and snippets.

View minamaged113's full-sized avatar
๐Ÿƒ
Improving...

Mina Gabriel minamaged113

๐Ÿƒ
Improving...
View GitHub Profile
@minamaged113
minamaged113 / docker-ps-vertical
Created September 22, 2021 15:57 — forked from wzulfikar/docker-ps-vertical
vertical format for docker ps
export FORMAT="ID\t{{.ID}}\nNAME\t{{.Names}}\nIMAGE\t{{.Image}}\nPORTS\t{{.Ports}}\nCOMMAND\t{{.Command}}\nCREATED\t{{.CreatedAt}}\nSTATUS\t{{.Status}}\n"
// usage:
docker ps --format="$FORMAT"
@minamaged113
minamaged113 / git+clone+ssh+agent+forward+sudo
Created October 26, 2020 17:25 — forked from scottjacobsen/git+clone+ssh+agent+forward+sudo
Git clone using ssh agent forwarding and sudo
SSH agent forwarding is great. It allows you to ssh from one server to
another all the while using the ssh-agent running on your local
workstation. The benefit is you don't need to generate ssh key pairs
on the servers you are connecting to in order to hop around.
When you ssh to a remote machine the remote machine talks to your
local ssh-agent through the socket referenced by the SSH_AUTH_SOCK
environment variable.
So you the remote server you can do something like: