<p>HPR Shows by Klaatu.</p>
<ul>
<li><strong>Source:</strong> <a
href="https://hackerpublicradio.org/eps/hpr3887/index.html">hpr3887 ::
10 must-know commands for a new cloud admin.</a></li>
<li><strong>Source:</strong> <a
href="https://hackerpublicradio.org/eps/hpr3882/index.html">hpr3882 ::
Alternatives to the cd command.</a></li>
</ul>
<p>Hot sauce lady.</p>
<ul>
<li><strong>Source:</strong> <a
href="https://www.youtube.com/watch?v=BpX_qT7Vefk">Franks Red Hot Queen
2011.</a></li>
</ul>
<pre><code>pwd &amp;&amp; ls --group-directories-first --classify --almost-all

# some more ls aliases
alias la=&#39;ls -l --human-readable --group-directories-first --classify --almost-all&#39;
alias ll=&#39;ls --group-directories-first --classify --almost-all&#39;
alias lr=&#39;ls -l --human-readable --group-directories-first --classify --recursive&#39;
alias lar=&#39;ls -l --human-readable --group-directories-first --classify --almost-all --recursive&#39;
alias lap=&#39;ls -l --human-readable --group-directories-first --classify --almost-all | less&#39;

# safety first ;)
alias rmi=&#39;rm --interactive --verbose&#39;
alias mvi=&#39;mv --interactive --verbose&#39;
alias cpi=&#39;cp --interactive --verbose&#39;
alias .shred=&#39;bleachbit --shred&#39;

# cd multi dir
alias ..=&#39;cd ..;&#39;
alias .2=&#39;cd ../..;&#39;
alias .3=&#39;cd ../../..;&#39;
alias .4=&#39;cd ../../../..;&#39;
alias .5=&#39;cd ../../../../..;&#39;

# Directory controls.
function cd () {
clear;
builtin cd &quot;$@&quot; &amp;&amp; ls --group-directories-first --classify --almost-all;

history -w;
}

#function pp () {
#builtin pushd +$@ &amp;&amp; ls --group-directories-first --classify --almost-all
#}

function pushup (){
builtin pushd $HOME/.config/vim/sessions/
builtin pushd $HOME/.local/bin/
builtin pushd $HOME/.thunderbird/*.default-release/
builtin pushd $HOME/Documents/non-of-your-business/
builtin pushd $HOME/Downloads/in/
builtin pushd $HOME/Downloads/out/
builtin pushd $HOME/Downloads/playground/
builtin pushd $HOME/Music/hpr/shows/
builtin pushd $HOME/projects/
builtin pushd $HOME/projects/hprbank/bp/
builtin pushd $HOME/symlinks/
builtin pushd $HOME/tmp/
builtin pushd +11

builtin dirs -v
}

alias pd=&#39;pushd&#39;
alias dirs=&#39;dirs -v&#39;

# Update
alias .upg=&#39;sudo apt update &amp;&amp; sudo apt upgrade -y;&#39;

# shutdown | reboot
alias .sd=&#39;sudo shutdown -P now;&#39;
alias .rs=&#39;sudo reboot;&#39;

# Misc
alias ccb=&#39;cat $HOME/cb | xsel --input --clipboard &amp;&amp; echo &quot;Copy. $(date &quot;+%F %T&quot;)&quot;;&#39;
alias pcb=&#39;xsel --output --clipboard &gt; $HOME/cb &amp;&amp; echo &quot;Copy. $(date &quot;+%F %T&quot;)&quot;;&#39;
alias zz=&#39;xsel -c -b &amp;&amp; echo &quot;Clipboard Cleared. $(date &quot;+%F %T&quot;)&quot;;&#39;

# File Mods
alias 700=&#39;chmod --verbose =700&#39;
alias 600=&#39;chmod --verbose =600&#39;
alias 400=&#39;chmod --verbose =400&#39;

###############################################################################
# Functions
###############################################################################

function .s () {
ln --symbolic --verbose --target-directory=$HOME/symlinks/ $(pwd)/${1};
}

function extract () {
if [ -f $1 ]
then
    case $1 in
    *.tar.bz2) tar -vxjf $1 ;;
    *.tar.gz) tar -vxzf $1 ;;
    *.tar) tar -xvf $1 ;;
    *.bz2) bunzip2 $1 ;;
    *.rar) unrar -x $1 ;;
    *.gz) gunzip $1 ;;
    *.tar) tar -vxf $1 ;;
    *.tbz2) tar -vxjf $1 ;;
    *.tgz) tar -vxzf $1 ;;
    *.zip) unzip $1 ;;
    *.Z) uncompress $1 ;;
    *.7z) 7z -x $1 ;;
    *) echo &quot;Good Heavens, &#39;$1&#39; will NOT extract...&quot; ;;
    esac
else
    echo &quot;Good Heavens, &#39;$1&#39; is NOT a valid file.&quot;
fi
}

function myip () {
ip addr | grep &#39;state UP&#39; -A2 | tail -n1 | awk &#39;{print $2}&#39; | cut -f1  -d&#39;/&#39;;
}

function .mkd (){
mkdir -v $(date +%F) &amp;&amp; pushd $(date +%F);
}

function .mkt (){
tmpdir=$(mktemp -d /tmp/$(date +%F).XXXXXXXX) &amp;&amp; pushd ${tmpdir}
}

function .d (){
echo $(date +%F)$1 | xsel -i -b;
}


function .sh () {
NEWSCRIPT=${1}.sh

cat &gt;&gt; ${NEWSCRIPT} &lt;&lt; EOS
#!/bin/bash
# License: GPL v3
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see &lt;https://www.gnu.org/licenses/&gt;.

#Name: ${NEWSCRIPT}
#Purpose:
#Version: beta 0.01
#Author: SGOTI (Some Guy On The Internet)
#Date: $(date +%F)

#variables:

#start:

exit;
EOS

if [ -f &quot;${NEWSCRIPT}&quot; ]
then
    chmod 700 ${NEWSCRIPT}
else
    echo &quot;Good Heavens! There isn&#39;t a &quot;${NEWSCRIPT}&quot;&quot;
fi
}

function .fmd () {
xsel -o -b | fmt -w 76 | sed &#39;s/$/  /g
s/  /    /g
s/   /    /g
s/     /    /g
s/$/  /g
s/  *$/  /g
s/&#xA0;/ /g&#39; | xsel -i -b;
}
</code></pre>
<pre><code>#!/bin/bash
# License: GPL v3
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see &lt;https://www.gnu.org/licenses/&gt;.

#Name: bfn.sh
#Purpose: Create better file names.
#Version: beta 0.01
#Author: SGOTI (Some Guy On The Internet)
#Date: 2022-11-08

#variables:
oldname=$(echo ${1%.*})
newname=$(echo $oldname | sed &#39;s/ /-/g;s/_/-/g;s/./-/g;s/--*/-/g;/\/d&#39; | tr [:upper:] [:lower:])
ext1=&quot;.$(echo ${1##*.})&quot;
ext2=&quot;.$(echo ${1##*.} | tr [:upper:] [:lower:])&quot;

#start:
function bcase () {
    if [ -f $1 ]
    then
        echo -e &quot;renaming $oldnamen&quot;;
        mv -v &quot;$oldname$ext1&quot; &quot;$newname$ext2&quot;;
    else
        mv -v &quot;$oldname&quot; &quot;$newname&quot;;
    fi
}

bcase
exit;</code></pre>
<pre><code>#!/bin/bash
# License: GPL v3
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see &lt;https://www.gnu.org/licenses/&gt;.

#Name: perm.sh
#Purpose:
#Version: beta 0.01
#Author: SGOTI (Some Guy On The Internet)
#Date: 2023-01-13

#variables:
var_dir=${1}

#start:
function bfp () {
    find &quot;${var_dir}&quot; -type d -exec chmod -R =700 {} +
    find &quot;${var_dir}&quot; -type f -exec chmod -R =600 {} +
}

bfp

exit;</code></pre>
<p>This work is licensed under a <a
href="https://creativecommons.org/licenses/by-sa/4.0/"
title="CC-BY-SA 4.0 International">Creative Commons
Attribution-ShareAlike 4.0 International License</a>.</p>
