Quick notes

Random Notes

gcp (Try alias cpv=”rsync -pogr –progress” or alias cpv=”rsync -P” or alias cpv=“rsync -ah –progress”)

Miscellaneous

#!/bin/sh
#
# /sbin/mygetty
setterm -fore <color> -bold <on|off> -back <color> -store > $1
exec /sbin/agetty $@
$ apt install cifs-utils # Needed to mount share
$ apt install smbclient # Helpful for troubleshooting
$ mkdir /mnt/<mountpoint>
$ chmod 755 /mnt/<mountpoint>
$ echo '//<host>/<share> <mountpoint> cifs noauto,user,credentials=<credsfile>,uid=<username>,gid=<username>,dir_mode=0775,file_mode=0664 0 0' >> /etc/fstab
$ cat << END > <credsfile>
> username=<username>
> password=<password>
> END
$ chmod 600 <credsfile>

Colorschemes

WSL Setup

Ubuntu Setup Notes

GitHub CLI (Ubuntu)

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
$ sudo apt-add-repository https://cli.github.com/packages
$ sudo apt update
$ sudo apt install gh

fd-find Notes

Other

Hide tab bar in Firefox

$ mkdir ~/.mozilla/firefox/*.jbrubake/chrome
$ echo '#TabsToolbar { visibility: collapse !important; }' > ~/.mozilla/firefox/*.jbrubake/chrome/userChrome.css

Custom Magic Wormhole

Send: wormhole --relay-url=ws://<url>:4000/v1 --transit-helper=tcp:<url>:4001 send <file> Receive: wormhole --relay-url=ws://<url>:4000/v1 --transit-helper=tcp:<url>:4001 receive