notes/updates.txt
2022-09-08 20:47:11 -07:00

57 lines
2.2 KiB
Text

Use this file as a post-it for packages to install on laptop/desktop.
add notation about awk as
Select everything but the second field:
awk '!($2="")'
add notation about tr (translate command):
replace every newline with a single space: tr '\n' ' '
add notation about using find to list only files in current directory and NOT subdirectory:
find $dir -maxdepth 1 -type f
add notation about using pick to parse through output, and pipe that using xargs to another command:
example:
ls | pick | xargs bat # will give you a choice of the files from ls, pick displays a menu to "pick" the file, which then is parsed to xargs bat (invokes bat on choice from ls | pick)
https://medium.com/techie-delight/top-25-algorithms-every-programmer-should-know-373246b4881b
sudo chmod 755 /usr/local/bin/pkgtop
Finally figured out how to get language servers working neovim, you have to npm install -g each of them from ~/.local/nvim/share/lsp-servers (note that there is still work to be done here...)
Download and install in virtmanager Windows 10 iso (for purposes of software tests)
Use this site (microsoft only has .exe now... 64 bit, version 21H2)
https://www.itechtics.com/windows-10-download-iso/
To understand google-font-installer(gfi): visit: https://github.com/lordgiotto/google-font-installer
Check out artix-news on github and look at its source code to understand a basic web-scraper written in python: https://github.com/ryukinix/artix-news
Neovim is currently in the middle of being set up for testing/debugging, testing comes first as it is far easier to set up:
Simply copy the new config/packages lua files and :PackerSync
make sure to install all of the test files (jest should already be set up, but y'know):
doas npm install -g jest
pip install pytest
sshd is disabled by default on Artix (a good practice), but let's enable it, follow your harden_sshd.txt guide (just some flags), and add a down file to disable it:
doas ln -s /etc/runit/sv/sshd /run/runit/service
doas sv start sshd
edit /etc/ssh/sshd_config file using harden_sshd.txt guide
cd /etc/runit/sv/sshd
doas touch down
doas chmod +x down
doas sv stop sshd
Currently troubleshooting fail2ban to work with this, but due to no systemd, fail2ban needs further configuration that I have yet to figure out