Skip to content
View afriza's full-sized avatar
  • Indonesia
  • 20:40 (UTC +07:00)

Block or report afriza

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. List all IPs of all running docker c... List all IPs of all running docker containers
    1
    #! /usr/bin/env -S sh
    2
    # Reference: https://stackoverflow.com/a/36883565/109747
    3
    
                  
    4
    docker inspect --format='{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}' $(docker ps -aq)
  2. Remote git signing with GPG (GnuPG /... Remote git signing with GPG (GnuPG / GNU Privacy Guard) over SSH Forwarding
    1
    On local machine
    2
    ```console
    3
    $ brew install gnupg pinentry-mac # macOS
    4
    $ echo 'export GPG_TTY=$(tty)' >> ~/.bashrc
    5
    $ echo 'export GPG_TTY=$(tty)' >> ~/.zshrc
  3. Convert git repository into shallow ... Convert git repository into shallow clone to save storage space when there is no need for git histories
    1
    #! /bin/sh
    2
    
                  
    3
    # Ref: https://stackoverflow.com/a/62650346/109747
    4
    
                  
    5
    # macOS/BSD find requires root path
  4. Copies rsync binaries and its depend... Copies rsync binaries and its dependencies from MSYS2 to Git for Windows
    1
    #! /bin/sh -x
    2
    
                  
    3
    # The reason to copy rsync binaries into Git for Windows is because
    4
    # VS Code has built in support for Git Bash shell in its Terminal.
    5
    
                  
  5. wsay wrapper for MSYS2 (e.g. Git Bas... wsay wrapper for MSYS2 (e.g. Git Bash from Git for Windows)
    1
    #!/bin/sh
    2
    
                  
    3
    # use Indonesian voice
    4
    v=$(say -v \? | grep id_ID | head -n1 | cut -d " " -f1)
    5
    say -v "$v" "$@"