# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything case $- in *i*) ;; *) return;; esac # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options HISTCONTROL=ignoreboth # append to the history file, don't overwrite it shopt -s histappend # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) HISTSIZE=1000 HISTFILESIZE=2000 # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # If set, the pattern "**" used in a pathname expansion context will # match all files and zero or more directories and subdirectories. #shopt -s globstar # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" # set variable identifying the chroot you work in (used in the prompt below) if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) fi # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in xterm-color|*-256color) color_prompt=yes;; esac # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt #force_color_prompt=yes if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then # We have color support; assume it's compliant with Ecma-48 # (ISO/IEC-6429). (Lack of such support is extremely rare, and such # a case would tend to support setf rather than setaf.) color_prompt=yes else color_prompt= fi fi if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' fi unset color_prompt force_color_prompt # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*) PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" ;; *) ;; esac # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' #alias dir='dir --color=auto' #alias vdir='vdir --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi # colored GCC warnings and errors #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # some more ls aliases alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' # Add an "alert" alias for long running commands. Use like so: # sleep 10; alert alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package. if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi # ---- # Dec 29 2021 UTC # ---- # Wed Dec 29 20:~18:25 2021 UTC alias e='echo -e' # 29 Dec 2021 20:~04:32 UTC export n1='\n' # 29 Dec 2021 19:~51:42 UTC export hs="sed, crc32, md5sum, sha1sum, sha224sum, sha256sum, sha384sum, sha512sum, and b2sum:" # Wed Dec 29 19:~56:38 2021 UTC export hd2x="[My Passport 25E2, 8430F302-178B-4501-B793-820CD63E9293; https://archive.org/details/4d616769636b2f64656661756c740d - +info]" export hd2w="Volume in drive G is My Passport \ Volume Serial Number is 1093-F3E8" # Wed Dec 29 ~19:57:43 2021 UTC export h2x='These files were stored at the following locations according to Linux: "'$hd2x'" >' export h2w='These files were stored at the following locations according to Windows: "'$hd2w'" >' # Wed Dec 29 20:~14:07 2021 UTC export hd2=$h2x$n1$h2w # Wed Dec 29 20:~19:47 2021 UTC export h1x='This file was stored at the following location according to Linux: "'$hd2x'" > ""' export h1w='This file was stored at the following location according to Windows: "'$hd2w'" > ""' export hd1=$h1x$n1$h1w # Wed Dec 29 20:~24:14 2021 UTC export hs2a='find "$hash" -type f | xargs -d "\\n" crc32 | sed "s/$/\"/g" | sed "s/\\t\//\\t\"\//g"; find "$hash" -type f | xargs -d "\\n" md5sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | xargs -d "\\n" sha1sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | xargs -d "\\n" sha224sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | xargs -d "\\n" sha256sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | xargs -d "\\n" sha384sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | xargs -d "\\n" sha512sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | xargs -d "\\n" b2sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; echo ""'$n1 alias hs2='echo -e $hs2a; find "$hash" -type f | xargs -d "\n" crc32 | sed "s/$/\"/g" | sed "s/\t\//\t\"\//g"; find "$hash" -type f | xargs -d "\n" md5sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | xargs -d "\n" sha1sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | xargs -d "\n" sha224sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | xargs -d "\n" sha256sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | xargs -d "\n" sha384sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | xargs -d "\n" sha512sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | xargs -d "\n" b2sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; echo ""' # Wed Dec 29 20:~40:39 2021 UTC export hs1a='crc32 "$h1" | sed "s/$/\"/g" | sed "s/\\t\//\\t\"\//g"; md5sum "$h1" | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; sha1sum "$h1" | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; sha224sum "$h1" | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; sha256sum "$h1" | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; sha384sum "$h1" | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; sha512sum "$h1" | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; b2sum "$h1" | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; echo ""' alias hs1='echo $hs1a; crc32 "$h1" | sed "s/$/\"/g" | sed "s/\t\//\t\"\//g"; md5sum "$h1" | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; sha1sum "$h1" | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; sha224sum "$h1" | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; sha256sum "$h1" | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; sha384sum "$h1" | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; sha512sum "$h1" | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; b2sum "$h1" | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; echo ""' # ---- # Dec 30 2021 UTC # ---- # Thu Dec 30 04:~57:23 2021 UTC alias date="date -uR" # Thu Dec 30 05:~06:48 2021 UTC to Thu Dec 30 06:31:~14 2021 UTC export hs2sa='find "$hash" -type f | xargs -d "\n" stat; find "$hash" -type d | xargs -d "\n" stat; find "$hash" -type f | xargs -d "\n" stat -t; find "$hash" -type d | xargs -d "\n" stat -t; hs2sc=$(expr $(ls -d "$hash" | sed "s/\//\\n/g" | grep -c .) - 1); temp="$hash"; for n in $(eval echo {1.."$hs2sc"}); do temp=$(ls -d "$temp" | sed "s/\/[^\/]\+$//"); echo $temp; done | xargs -d "\n" stat; temp="$hash"; for n in $(eval echo {1.."$hs2sc"}); do temp=$(ls -d "$temp" | sed "s/\/[^\/]\+$//"); echo $temp; done | xargs -d "\n" stat -t; stat /; stat -t /' alias hs2s='echo $hs2sa; find "$hash" -type f | xargs -d "\n" stat; find "$hash" -type d | xargs -d "\n" stat; find "$hash" -type f | xargs -d "\n" stat -t; find "$hash" -type d | xargs -d "\n" stat -t; hs2sc=$(expr $(ls -d "$hash" | sed "s/\//\\n/g" | grep -c .) - 1); temp="$hash"; for n in $(eval echo {1.."$hs2sc"}); do temp=$(ls -d "$temp" | sed "s/\/[^\/]\+$//"); echo $temp; done | xargs -d "\n" stat; temp="$hash"; for n in $(eval echo {1.."$hs2sc"}); do temp=$(ls -d "$temp" | sed "s/\/[^\/]\+$//"); echo $temp; done | xargs -d "\n" stat -t; stat /; stat -t /' # ---- # 08 Jan 2022 UTC # --- # Sat, 08 Jan 2022 04:~10:38 +0000 alias hs2--help='echo -e "Usage: hs2\n hash string 2: hash all files in a specified directory\n with no files filtered out.\n\n The directory is specified by a four-letter variable: \"hash\".\n\n The following hashes of the files will be returned:\n CRC32, MD5, SHA1, SHA224, SHA256, SHA384, SHA512, and BLAKE2.\n\n\"Options\":\n hs2--help display this help and exit\n\nSee also:\n strings used by this command:\n hs2a shows the command to be ran\n hash see above\n other commands:\n hs2s\n hs1"' # Sat, 08 Jan 2022 04:~23:41 +0000 alias hs1--help='echo -e "Usage: hs1\n hash string 1: hash one specified file\n\n The file is specified by a two-character variable: \"h1\".\n\n The following hashes of the file will be returned:\n CRC32, MD5, SHA1, SHA224, SHA256, SHA384, SHA512, and BLAKE2.\n\n\"Options\":\n hs1--help display this help and exit\n\nSee also:\n strings used by this command:\n hs1a shows the command to be ran\n h1 see above\n other commands:\n hs2\n hs2s"' # Sat, 08 Jan 2022 04:~33:43 +0000 alias hs2s--help='echo -e "Usage: hs2s\n hash string 2 stat: get metadata on all files in a specified directory\n with no files filtered out, and, show info on all parent directories.\n\n The directory is specified by a four-letter variable: \"hash\".\n\n Information on the files and folders will be returned via the\n following commands: \"stat \$arg\", \"stat -t \$arg\".\n Paths are listed to stat via the following programs or constructs:\n echo, find, xargs, expr, ls, sed, grep, for, eval, do, done, and in.\n\n\"Options\":\n hs2s--help display this help and exit\n\nSee also:\n strings/variables used by this command:\n hs2sa shows the command to be ran\n hash see above\n hs2sc stores a number related to the amount of parent folders\n temp helps when listing parent directories\n other commands:\n hs2\n hs1"' # Sat, 08 Jan 2022 05:26:~22 +0000 export p2='expr, ls, sed, grep, for, eval, do, echo, stat, xargs, and find' # Sat, 08 Jan 2022 05:~31:05 +0000 export hs2fa='find "$hash" -type f | grep -v "$x" | xargs -d "\\n" crc32 | sed "s/$/\"/g" | sed "s/\\t\//\\t\"\//g"; find "$hash" -type f | grep -v "$x" | xargs -d "\\n" md5sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | grep -v "$x" | xargs -d "\\n" sha1sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | grep -v "$x" | xargs -d "\\n" sha224sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | grep -v "$x" | xargs -d "\\n" sha256sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | grep -v "$x" | xargs -d "\\n" sha384sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | grep -v "$x" | xargs -d "\\n" sha512sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | grep -v "$x" | xargs -d "\\n" b2sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; echo ""'$n1 alias hs2f='echo -e $hs2fa; find "$hash" -type f | grep -v "$x" | xargs -d "\n" crc32 | sed "s/$/\"/g" | sed "s/\t\//\t\"\//g"; find "$hash" -type f | grep -v "$x" | xargs -d "\n" md5sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | grep -v "$x" | xargs -d "\n" sha1sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | grep -v "$x" | xargs -d "\n" sha224sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | grep -v "$x" | xargs -d "\n" sha256sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | grep -v "$x" | xargs -d "\n" sha384sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | grep -v "$x" | xargs -d "\n" sha512sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; find "$hash" -type f | grep -v "$x" | xargs -d "\n" b2sum | sed "s/$/\"/g" | sed "s/\x20\x20\//\x20\x20\"\//g"; echo ""' # ---- # 20 Jan 2022 # ---- # Thu, 20 Jan 2022 23:~45:50 +0000 export hs1sa='stat "$h1"; stat -t "$h1"; hs1sc=$(expr $(ls -d "$h1" | sed "s/\//\\n/g" | grep -c .) - 1); temp="$h1"; for n in $(eval echo {1.."$hs1sc"}); do temp=$(ls -d "$temp" | sed "s/\/[^\/]\+$//"); echo $temp; done | xargs -d "\n" stat; temp="$h1"; for n in $(eval echo {1.."$hs1sc"}); do temp=$(ls -d "$temp" | sed "s/\/[^\/]\+$//"); echo $temp; done | xargs -d "\n" stat -t; stat /; stat -t /' alias hs1s='echo $hs1sa; stat "$h1"; stat -t "$h1"; hs1sc=$(expr $(ls -d "$h1" | sed "s/\//\\n/g" | grep -c .) - 1); temp="$h1"; for n in $(eval echo {1.."$hs1sc"}); do temp=$(ls -d "$temp" | sed "s/\/[^\/]\+$//"); echo $temp; done | xargs -d "\n" stat; temp="$h1"; for n in $(eval echo {1.."$hs1sc"}); do temp=$(ls -d "$temp" | sed "s/\/[^\/]\+$//"); echo $temp; done | xargs -d "\n" stat -t; stat /; stat -t /' # Thu, 20 Jan 2022 23:54:50 +0000 alias cls="clear" # Thu, 20 Jan 2022 23:56:27 +0000 export yt='https://www.youtube.com/results?search_query=\nhttps://www.youtube.com/watch?v=\nmpv --ytdl-format="bestvideo[height<=360]+bestaudio/best[height<=360]"' # Fri, 21 Jan 2022 00:04:13 +0000 alias hs1s--help='echo -e "Usage: hs1s\n hash string 1 stat: get metadata on a specified file,\n and show info on all parent directories of that file.\n\n The file is specified by a two-character variable: \"h1\".\n\n Information on the file and folders will be returned via the\n following commands: \"stat \$arg\", \"stat -t \$arg\".\n Paths are listed to stat via the following programs or constructs:\n echo, find, xargs, expr, ls, sed, grep, for, eval, do, done, and in.\n\n\"Options\":\n hs1s--help display this help and exit\n\nSee also:\n strings/variables used by this command:\n hs1sa shows the command to be ran\n h1 see above\n hs1sc stores a number related to the amount of parent folders\n temp helps when listing parent directories\n other commands:\n hs1\n hs2\n hs2s"' # Wed, 21 Dec 2022 22:52:36 +0000 alias ytapicommentsx="yt_api_comments.py --stdout_key sha1" alias ytapicommentss="yt_api_comments.py --stdout_key show" # Fri, 29 Apr 2022 12:05:12 +0000 # export IPFS_PATH=/mnt/m/ipfs/.ipfs # Fri, 25 Nov 2022 01:42:10 +0000 export IPFS_PATH=/mnt/My_Passport/b/ipfs/.ipfs # export IPFS_PATH=/media/ubuntu/29D714F43F8A04CA/.ipfs # Sun, 26 Jun 2022 15:43:02 +0000 alias iaadd='cat "$h1" | perl -pE "s/\n/
/g" | sed "s/\x20\x20/\ \ /g" | xsel -ib; head -n 3 "$h1" | tail -n 1 | sed "s/^/https:\/\/archive.org\/details\//g" >> "/mnt/My_Passport/1/0/indextxt.txt"; tail -n 3 "/mnt/My_Passport/1/0/indextxt.txt"' # Sat, 17 Sep 2022 07:17:02 +0000 PATH="$PATH:$HOME/gs-venv/bin" # Tue, 11 Oct 2022 20:28:04 +0000 alias ws="wget --spider" # Fri, 25 Nov 2022 01:43:18 +0000 alias mnl="mpv --no-video --loop"