Skip to content
Snippets Groups Projects

fun bash stuff

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Dirk Sarpe
    .fun.sh 631 B
    # source https://opensource.com/article/18/9/shell-dotfile
    shrug() { echo \_(ツ)_/¯"; }
    
    fliptable() { echo "(╯°□°)╯ ┻━┻"; } # Flip a table. Example usage: fsck -y /dev/sdb1 || fliptable
    
    disco() { cat << EOF 
     (•_•)
    <)   )╯  
     /    \   
    
    \(•_•)
     (   (>  
     /    \   
    
     (•_•)
    <)   )>  
     /    \   
    EOF
    }
    
    snow() {
            clear;while :;do echo $LINES $COLUMNS $(($RANDOM%$COLUMNS));sleep 0.1;done|gawk '{a[$3]=0;for(x in a) {o=a[x];a[x]=a[x]+1;printf "\033[%s;%sH ",o,x;printf "\033[%s;%sH*\033[0;0H",a[x],x;}}'
    }
    
    alias flipdesk='fliptable'
    alias deskflip='fliptable'
    alias tableflip='fliptable'
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment