A Fishy Wiki

Stuff and things

User Tools

Site Tools


Table of Contents

Neat CLI stuff


haste() { a=$(cat); curl -X POST -s -d "$a" https://hastebin.com/documents | awk -F '"' '{print "https://hastebin.com/"$4}'; }
alias yt4="youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' --verbose -i --continue --no-mtime --newline --console-title --sleep-interval 3"
alias yt3="youtube-dl -f 'bestaudio[ext=mp3]/best[ext=mp3]/best' --verbose -i"
alias neofetch="neofetch --ascii_distro ubuntu-budgie --config==/etc/neofetch/config.conf"
alias nf="neofetch"
alias apti="sudo apt install"
alias aptu="sudo apt update && sudo apt upgrade"
alias rm="rm -v -I"

SSH tweaks


# Only allows one attempt to enter a password before closing connection
MaxAuthTries 1

# Change banner (text before login)
Banner /etc/sshmessage

Change MOTD (after login message)

rm /etc/motd # It's a symlink by default, so remove it before editing
nano /etc/motd
/var/www/dokuwiki/data/pages/linux/cli.txt ยท Last modified: 2019-01-26 16:34 by Tom