diff --git a/knowledge base/1password-cli.md b/knowledge base/1password-cli.md index 3837226..3ca4a41 100644 --- a/knowledge base/1password-cli.md +++ b/knowledge base/1password-cli.md @@ -31,8 +31,12 @@ op list items ## Further readings -- [CLI getting started] guide - [CLI guide] -[cli getting started]: https://support.1password.com/command-line-getting-started/ [cli guide]: https://support.1password.com/command-line/ + +## Sources + +- [CLI getting started] guide + +[cli getting started]: https://support.1password.com/command-line-getting-started/ diff --git a/knowledge base/acl.md b/knowledge base/acl.md index 9b2c809..75eaca7 100644 --- a/knowledge base/acl.md +++ b/knowledge base/acl.md @@ -23,7 +23,7 @@ setfacl -x u:dummy:rw test setfacl -b test/declarations.h ``` -## Further readings +## Sources - [Access Control Lists (ACL) in Linux] diff --git a/knowledge base/atom.md b/knowledge base/atom.md index 55fa46b..59d2f9a 100644 --- a/knowledge base/atom.md +++ b/knowledge base/atom.md @@ -7,7 +7,7 @@ Change font to `NotoSansMono Nerd Font` in Platformio Ide Terminal's settings. See [Why Zsh terminal icons are not getting displayed in Atom Platformio Ide Terminal?] -## Further readings +## Sources - [Why Zsh terminal icons are not getting displayed in Atom Platformio Ide Terminal?] diff --git a/knowledge base/authenticate without using sudo.md b/knowledge base/authenticate without using sudo.md index 56f7d4a..880d096 100644 --- a/knowledge base/authenticate without using sudo.md +++ b/knowledge base/authenticate without using sudo.md @@ -14,7 +14,11 @@ pkexec COMMAND ## Further readings - [pkexec] -- [How to get gui sudo password prompt without command line] [pkexec]: pkexec.md + +## Sources + +- [How to get gui sudo password prompt without command line] + [how to get gui sudo password prompt without command line]: https://askubuntu.com/questions/515292/how-to-get-gui-sudo-password-prompt-without-command-line diff --git a/knowledge base/aws.md b/knowledge base/aws.md index 21b7c38..04dfa4a 100644 --- a/knowledge base/aws.md +++ b/knowledge base/aws.md @@ -36,7 +36,7 @@ Default output format [None]: json $ export AWS_PROFILE="work" ``` -## Further readings +## Sources - CLI [quickstart] - [Configure profiles] in the CLI diff --git a/knowledge base/az.md b/knowledge base/az.md index ed925a9..2c0138b 100644 --- a/knowledge base/az.md +++ b/knowledge base/az.md @@ -36,7 +36,7 @@ az acr helm push -n acr-name chart.tgz --force export AZURE_CLI_DISABLE_CONNECTION_VERIFICATION=1 ``` -## Further readings +## Sources - [Install Azure CLI on macOS] - [Get started with Azure CLI] diff --git a/knowledge base/bash.md b/knowledge base/bash.md index 7266fd5..9b4543e 100644 --- a/knowledge base/bash.md +++ b/knowledge base/bash.md @@ -2,8 +2,26 @@ ## TL;DR +```shell +# Run a command or function on exit, kill or error. +trap "rm -f $tempfile" EXIT SIGTERM ERR +trap function-name EXIT SIGTERM ERR + +# Disable CTRL-C +trap "" SIGINT + +# Re-enable CTRL-C +trap - SIGINT +``` + ## Further readings +- [Trap] + +[trap]: trap.md + +## Sources + - [The Bash trap command] [the bash trap command]: https://www.linuxjournal.com/content/bash-trap-command diff --git a/knowledge base/bluetooth.md b/knowledge base/bluetooth.md index 6b364ed..ed651d0 100644 --- a/knowledge base/bluetooth.md +++ b/knowledge base/bluetooth.md @@ -32,7 +32,7 @@ In `/etc/bluetooth/main.conf`, under the `Policy` section, set `Autoenable` to ` + AutoEnable = true ``` -## Further readings +## Sources - [Failing to use bluetooth keyboard at login] diff --git a/knowledge base/boinccmd.md b/knowledge base/boinccmd.md index 27c3ed0..0a15d6f 100644 --- a/knowledge base/boinccmd.md +++ b/knowledge base/boinccmd.md @@ -24,4 +24,4 @@ boinccmd --get_project_status | grep "master URL" | awk -F ": " '{print $2}' | x ## Gotchas -`boinccmd` looks for the `gui_rpc_auth.cfg` file in the same directory it is launched from. +- `boinccmd` looks for the `gui_rpc_auth.cfg` file in the same directory it is launched from. diff --git a/knowledge base/btrfs.md b/knowledge base/btrfs.md index 08dcf4c..c90b7c4 100644 --- a/knowledge base/btrfs.md +++ b/knowledge base/btrfs.md @@ -55,12 +55,14 @@ sudo snapper -c config diff 445..446 - [Gentoo wiki] - [Snapper] + +[gentoo wiki]: https://wiki.gentoo.org/wiki/Btrfs +[snapper]: snapper.md + +## Sources + - [does btrfs have an efficient way to compare snapshots?] - [determine if a btrfs subvolume is read-only] -[snapper]: snapper.md - -[gentoo wiki]: https://wiki.gentoo.org/wiki/Btrfs - [determine if a btrfs subvolume is read-only]: https://unix.stackexchange.com/questions/375645/determine-if-btrfs-subvolume-is-read-only#375646 [does btrfs have an efficient way to compare snapshots?]: https://serverfault.com/questions/399894/does-btrfs-have-an-efficient-way-to-compare-snapshots#419444 diff --git a/knowledge base/chezmoi.md b/knowledge base/chezmoi.md index a1b4b23..cffb895 100644 --- a/knowledge base/chezmoi.md +++ b/knowledge base/chezmoi.md @@ -110,13 +110,16 @@ $ - Chezmoi [user guide] - [Go text/template] - [Sprig] -- [cheat.sh] [user guide]: https://www.chezmoi.io/user-guide/setup/ [go text/template]: https://pkg.go.dev/text/template [sprig]: https://masterminds.github.io/sprig/ -[custom data fields appear as all lowercase strings]: https://github.com/twpayne/chezmoi/issues/463 +## Sources + +- [cheat.sh] +- [custom data fields appear as all lowercase strings] [cheat.sh]: https://cheat.sh/chezmoi +[custom data fields appear as all lowercase strings]: https://github.com/twpayne/chezmoi/issues/463 diff --git a/knowledge base/clamav.md b/knowledge base/clamav.md index 22110f6..edf2d6b 100644 --- a/knowledge base/clamav.md +++ b/knowledge base/clamav.md @@ -46,8 +46,12 @@ nice -n 15 clamscan && clamscan --bell -i -r /home ## Further readings -- [Install ClamAV on Fedora Linux 35] - [Gentoo Wiki] [gentoo wiki]: https://wiki.gentoo.org/wiki/ClamAV + +## Sources + +- [Install ClamAV on Fedora Linux 35] + [install clamav on fedora linux 35]: https://www.linuxcapable.com/how-to-install-clamav-on-fedora-35/ diff --git a/knowledge base/compare two pdf files.md b/knowledge base/compare two pdf files.md index 86707c2..e55b348 100644 --- a/knowledge base/compare two pdf files.md +++ b/knowledge base/compare two pdf files.md @@ -16,7 +16,7 @@ compare -verbose -debug coder $PDF_1 $PDF_2 -compose src /tmp/$OUT_FILE.tmp pdftk /tmp/$OUT_FILE.tmp background $PDF_1 output $OUT_FILE ``` -## Further readings +## Sources - [Compare PDF Files With DiffPDF] - [PDF compare on linux command line] diff --git a/knowledge base/cpufreq.md b/knowledge base/cpufreq.md index cda2c8d..88ad2a5 100644 --- a/knowledge base/cpufreq.md +++ b/knowledge base/cpufreq.md @@ -20,7 +20,11 @@ sudo cpupower frequency-set --governor schedutil ## Further readings - [CPU frequency scaling] -- [CPU governer settings ignore nice load] [cpu frequency scaling]: https://wiki.archlinux.org/title/CPU_frequency_scaling + +## Sources + +- [CPU governer settings ignore nice load] + [cpu governer settings ignore nice load]: https://forum.manjaro.org/t/cpu-governer-settings-ignore-nice-load/71476/3 diff --git a/knowledge base/dell hardware.md b/knowledge base/dell hardware.md index ea9b666..3be600f 100644 --- a/knowledge base/dell hardware.md +++ b/knowledge base/dell hardware.md @@ -14,10 +14,11 @@ 1. under the USB drive, select the USB flash drive that you would like to use to create the USB recovery media and check the button _I understand that the selected drive will be reformatted and existing data will be deleted._ 1. click _Download_ to begin downloading the operating system recovery image; once the process is complete, a summary screen is shown -[os recovery tool]: https://www.dell.com/support/home/en-us/drivers/osiso/ -## Further readings +## Sources - [How to download and use the Dell operating system recovery image in Microsoft Windows] +[os recovery tool]: https://www.dell.com/support/home/en-us/drivers/osiso/ + [how to download and use the dell operating system recovery image in microsoft windows]: https://www.dell.com/support/kbdoc/en-us/000123667/how-to-download-and-use-the-dell-os-recovery-image-in-microsoft-windows diff --git a/knowledge base/dig.md b/knowledge base/dig.md index ad1c35d..9caed07 100644 --- a/knowledge base/dig.md +++ b/knowledge base/dig.md @@ -1,6 +1,6 @@ # Dig -## Further readings +## Sources - [Using dig +trace to Understand DNS Resolution from Start to Finish] diff --git a/knowledge base/disable fast startup in windows 10.md b/knowledge base/disable fast startup in windows 10.md deleted file mode 100644 index 534cefd..0000000 --- a/knowledge base/disable fast startup in windows 10.md +++ /dev/null @@ -1,14 +0,0 @@ -# Disable fast startup on Windows 10 - -1. open the Control Panel -1. choose on _Power Options_ -1. choose _Choose what the power buttons do_ -1. choose _Change settings that are currently unavailable_ to make the setting editable -1. deselect _Turn on fast startup (recommended)_ -1. save the changes - -## Further readings - -- [How to disable Windows 10 fast startup (and why you'd want to)] - -[how to disable windows 10 fast startup (and why you'd want to)]: https://www.windowscentral.com/how-disable-windows-10-fast-startup diff --git a/knowledge base/dpkg.md b/knowledge base/dpkg.md index 539044f..a117627 100644 --- a/knowledge base/dpkg.md +++ b/knowledge base/dpkg.md @@ -20,7 +20,7 @@ apt-get purge $(dpkg --get-selections | grep --color=never i386 | awk '{print $1 dpkg --remove-architecture i386 ``` -## Further readings +## Sources - [How to check if dpkg-architecture --list has all the architectures?] diff --git a/knowledge base/enable bluetooth pairing on boot.md b/knowledge base/enable bluetooth pairing on boot.md index ca84b7a..30af9c9 100644 --- a/knowledge base/enable bluetooth pairing on boot.md +++ b/knowledge base/enable bluetooth pairing on boot.md @@ -7,3 +7,7 @@ On GNU/Linux: 1. enable the `bluetooth` service on boot 1. make sure the `AutoEnable` option in `/etc/bluetooth/main.conf` is set to `true` 1. [optional] make sure the `FastConnectable` option in `/etc/bluetooth/main.conf` is set to `true` + +## Further readings: + +[bluetooth]: bluetooth.md diff --git a/knowledge base/find.md b/knowledge base/find.md index 753d322..d9a1b78 100644 --- a/knowledge base/find.md +++ b/knowledge base/find.md @@ -155,7 +155,7 @@ find / -newer file.txt -user wnj -print find -mtime 1.5h ``` -## Further readings +## Sources - [How can I find broken symlinks?] - [find . -type f -exec chmod 644 {} ;] diff --git a/knowledge base/firewalld.md b/knowledge base/firewalld.md index 5349bb0..865116a 100644 --- a/knowledge base/firewalld.md +++ b/knowledge base/firewalld.md @@ -76,11 +76,14 @@ sudo firewall-cmd --reload - [Website] - [Documentation] -- [Open TCP Port on openSUSE Firewall] -- [How To Set Up a Firewall Using firewalld on CentOS 8] [documentation]: https://firewalld.org/documentation/ [website]: https://firewalld.org/ +## Sources + +- [Open TCP Port on openSUSE Firewall] +- [How To Set Up a Firewall Using firewalld on CentOS 8] + [how to set up a firewall using firewalld on centos 8]: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-using-firewalld-on-centos-8 [open tcp port on opensuse firewall]: https://vazhavandan.blogspot.com/2020/08/open-tcp-port-on-opensuse-firewall.html diff --git a/knowledge base/flatpak.md b/knowledge base/flatpak.md index a2043e0..10b0164 100644 --- a/knowledge base/flatpak.md +++ b/knowledge base/flatpak.md @@ -20,9 +20,12 @@ flatpak uninstall --unused ## Further readings - [Using Flatpak] getting started guide on the official [documentation] -- [How to clean up Flatpak apps to clear disk space] [documentation]: https://docs.flatpak.org/en/latest/ [using flatpak]: https://docs.flatpak.org/en/latest/using-flatpak.html +## Sources + +- [How to clean up Flatpak apps to clear disk space] + [how to clean up flatpak apps to clear disk space]: https://www.debugpoint.com/2021/10/clean-up-flatpak/ diff --git a/knowledge base/fstab.md b/knowledge base/fstab.md index 2be6649..32d1798 100644 --- a/knowledge base/fstab.md +++ b/knowledge base/fstab.md @@ -2,7 +2,7 @@ ## TL;DR -```plaintext +```text # by label # e2label /dev/sdc1 # mount -L seagate_2tb_usb /media/usb @@ -14,7 +14,7 @@ LABEL=seagate_2tb_usb /media/usb ext3 defaults 0 0 UUID=41c22818-fbad-4da6-8196-c816df0b7aa8 /disk2p2 ext3 defaults,errors=remount-ro 0 1 ``` -## Further readings +## Sources - [Mount a disk partition using LABEL] - [Mount a disk partition using UUID] diff --git a/knowledge base/gcloud.md b/knowledge base/gcloud.md index 713d932..1dfed2a 100644 --- a/knowledge base/gcloud.md +++ b/knowledge base/gcloud.md @@ -2,6 +2,7 @@ - [TL;DR](#tldr) - [Further readings](#further-readings) +- [Sources](#sources) ## TL;DR @@ -67,12 +68,16 @@ gcloud auth revoke account - [Gcloud cheat-sheet] - [Kubectl cluster access] -- [How to run gcloud command line using a service account] -- [How to change the active configuration profile in gcloud] - [Gcloud config configurations] [gcloud cheat-sheet]: https://cloud.google.com/sdk/gcloud/reference/cheat-sheet [gcloud config configurations]: https://cloud.google.com/sdk/gcloud/reference/config/configurations +[kubectl cluster access]: https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl + +## Sources + +- [How to run gcloud command line using a service account] +- [How to change the active configuration profile in gcloud] + [how to change the active configuration profile in gcloud]: https://stackoverflow.com/questions/35744901/how-to-change-the-active-configuration-profile-in-gcloud#35750001 [how to run gcloud command line using a service account]: https://pnatraj.medium.com/how-to-run-gcloud-command-line-using-a-service-account-f39043d515b9 -[kubectl cluster access]: https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl