Skip to content

Instantly share code, notes, and snippets.

View yairmark's full-sized avatar
💭
ᗧ ᗧ ᗧ•

yairmark

💭
ᗧ ᗧ ᗧ•
View GitHub Profile
@yairmark
yairmark / sugh.sh
Last active February 14, 2020 08:31 — forked from erdincay/sugh.sh
su GitHub (downloading all repositories from a given user)
#!/bin/bash
if [ -z "$1" ]; then
echo "waiting for the following arguments: username + max-page-number"
exit 1
else
name=$1
fi
if [ -z "$2" ]; then
@yairmark
yairmark / keybase.md
Created November 14, 2019 11:46
keybase.md

Keybase proof

I hereby claim:

  • I am yairmark on github.
  • I am yairmark (https://keybase.io/yairmark) on keybase.
  • I have a public key whose fingerprint is ED49 E925 DE56 6378 BA6D C0D4 BB5E 56DB 31B8 16B0

To claim this, I am signing this object:

@yairmark
yairmark / remove-docker-containers.md
Created November 22, 2017 12:54 — forked from ngpestelos/remove-docker-containers.md
How to remove unused Docker containers and images
  1. Delete all containers

     $ docker ps -q -a | xargs docker rm
    

-q prints only the container IDs -a prints all containers

Notice that it uses xargs to issue a remove container command for each container ID

  1. Delete all untagged images