> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/readme.md).

# TIL

> Today I Learned

Things I Learned today, found on [Simon's Blog](https://simonwillison.net/2020/Apr/20/self-rewriting-readme/), and repo can be found here: [Repo](https://github.com/jbranchaud/til)

***192 TILs so far.***

***

## Recently Added/Updated TILs

* [Clear Journald Logs](/linux/journalctl/clear-journalctl-logs.md)
* [Run Docker using Colima in MacBook](/macos/run-docker-using-colima.md)
* [Run MTR on MacOS without sudo](/macos/run-mtr-without-sudo.md)
* [Docker Exec (docker exec)](/docker/docker-exec.md)
* [Docker Publish Port](/docker/docker-publish-port.md)

***

## Categories

* [Linux](#linux)
* [Ansible](#ansible)
* [Caddy](#caddy-server)
* [Cheatsheets](#cheatsheets)
* [Docker](#docker)
* [Git](#git)
* [Github](#github)
* [Go](#go)
* [Learning Resources](#learning-resources)
* [MacOS](#macos)
* [Miscellaneous](#miscellaneous)
* [Python](#python)
* [Rclone](#rclone)
* [ReactJS](#reactjs)
* [Vagrant](#vagrant)
* [VSCode](#vscode)
* [WSL](#wsl)

***

## [Linux](/linux.md)

* [Add Swap Space To System](/linux/add-swap-space-to-system.md)
* [Add User To System](/linux/add-user-to-system.md)
* [Beautify Logs](/linux/beautify-logs.md)
* [Benchmark System](/linux/benchmark-system.md)
* [Ccze Scrolling Output](/linux/ccze-scrolling-output.md)
* [Change Default Shell](/linux/change-default-shell.md)
* [Change Hostname Of A system](/linux/change-hostname-of-a-system.md)
* [Changing User Password In Shell Script](/linux/changing-user-password-in-shell-script.md)
* [Check Group Of A User](/linux/check-group-of-a-user.md)
* [Check If A Package Is Installed Or Not](/linux/check-if-a-package-is-installed-or-not.md)
* [Check If A Port Is In Use](/linux/check-if-a-port-is-in-use.md)
* [Check If A User Exists](/linux/check-if-a-user-exists.md)
* [Check Open Port](/linux/check-open-port.md)
* [CMake Parallel Build with All Cores](/linux/cmake-parallel-build-with-all-cores.md)
* [Create Symbolic Links](/linux/create-symbolic-links.md)
* [Determine Which Process Is Using a File](/linux/determine-which-process-is-using-a-file.md)
* [Enable SSH Server](/linux/enable-ssh-server.md)
* [Fix Permission For Newly Created Partitions](/linux/fix-permission-for-newly-created-partitions.md)
* [Fix Windows And Linux Different Time Issue](/linux/fix-windows-and-linux-different-time-issue.md)
* [Get Arch Of System](/linux/get-arch-of-system.md)
* [Increase Limit of Inotify Watchers](/linux/increase-limit-of-inotify-watchers.md)
* [Install Latest NodeJS In Linux](/linux/install-latest-nodejs-in-linux.md)
* [Install Pavucontrol](/linux/install-pavucontrol.md)
* [Install Postman](/linux/install-postman.md)
* [Kill A Process In Linux](/linux/kill-a-process-in-linux.md)
* [Mount Partition On System Startup](/linux/mount-partition-on-system-startup.md)
* [OpenVPN Server](/linux/openvpn-server.md)
* [Ping over TCP](/linux/ping-over-tcp.md)
* [Pipe Password to Sudo](/linux/pipe-password-to-sudo.md)
* [Remove PPA From System](/linux/remove-ppa-from-system.md)
* [Remove User Password](/linux/remove-user-password.md)
* [Root Check in Scripts](/linux/root-check.md)
* [Run Go Binaries Without Installing Go](/linux/run-go-binaries-without-installing-go.md)
* [Set Different Time Zone](/linux/set-different-time-zone.md)
* [Show Disk Usage By Directories](/linux/show-disk-usage-by-directories.md)
* [Show Public IP](/linux/show-public-ip.md)
* [Show Size of Current Directory](/linux/show-size-of-current-directory.md)
* [System Ugprade](/linux/system-upgrade.md)
* [Tar Exclude Directories](/linux/tar-exclude-directories.md)
* [Tar Retain File Permissions](/linux/tar-retain-file-permissions.md)
* [Why All Users Can Write to /tmp](/linux/why-all-users-can-write-to-tmp.md)

### [Alpine Linux](/linux/alpine.md)

* [Adding User On Alpine](/linux/alpine/adding-user-on-alpine.md)
* [Chaning Timezone On Alpine](/linux/alpine/changing-timezone-on-alpine.md)
* [Installing Ansible On Alpine](/linux/alpine/installing-ansible-on-alpine.md)
* [Installing Dig On Alpine](/linux/alpine/installing-dig-on-alpine.md)
* [Installing Pip On Alpine](/linux/alpine/installing-pip-on-alpine.md)
* [Installing Python2 On Alpine](/linux/alpine/installing-python2-on-alpine.md)

### [Apt](/linux/apt.md)

* [APT Fix Broken Packages](/linux/apt/apt-fix-broken-packages.md)
* [APT Hold Packages From Upgrade](/linux/apt/apt-hold-packages-from-upgrades.md)

### [Arch Linux](/linux/arch.md)

* [Install Docker Compose](/linux/arch/install-docker-compose.md)
* [Install Docker](/linux/arch/install-docker.md)
* [Install Pip](/linux/arch/install-pip.md)

### [Bash](/linux/bash.md)

* [Bash List Only Directories](/linux/bash/bash-list-only-directories.md)
* [BashTOP Resource Monitor](/linux/bash/bashtop-resource-monitor.md)
* [Case Statements](/linux/bash/case-statements.md)
* [Concatenate Strings](/linux/bash/concatenate-strings.md)
* [Custom Shell Prompt](/linux/bash/custom-shell-prompt.md)
* [Length of String in Variable](/linux/bash/length-of-string-in-variable.md)
* [Test Regular Expression Against A String](/linux/bash/test-regular-expression-against-a-string.md)
* [Pass Arguments while Piping](/linux/bash/pass-arguments-while-piping.md)
* [Read Command Output In Reverse Order](/linux/bash/read-command-output-in-reverse-order.md)
* ["set -e" In Scripts](/linux/bash/set-e-in-scripts.md)
* [Set MacOS Like Terminal Font](/linux/bash/set-macos-like-terminal-font.md)
* [Set Unlimited Bash History](/linux/bash/set-unlimited-bash-history.md)
* [Shell Formatter](/linux/bash/shell-formatter.md)
* [Yes](/linux/bash/yes.md)

### [Curl](/linux/curl.md)

* [Fix Failed Writing Body While Piping](/linux/curl/fix-failed-writing-body-while-piping.md)
* [Use Proxy Server in cURL](/linux/curl/use-proxy-server-in-curl.md)

### [Fedora](/linux/fedora.md)

* [Fix Clear Command Not Found](/linux/fedora/fix-clear-command-not-found.md)
* [Install RPM Packages in Fedora](/linux/fedora/install-rpm-packages-in-fedora.md)

### [GPG](/linux/gpg.md)

* [Fix "Inappropriate ioctl for device" Error](/linux/gpg/fix-inappropriate-ioctl-for-device-error.md)
* [GPG Import Keys](/linux/gpg/gpg-import-keys.md)
* [GPG Test](/linux/gpg/gpg-test.md)
* [GPG Trust Key](/linux/gpg/gpg-trust-key.md)
* [GPG Verify Signature](/linux/gpg/gpg-verify-signature.md)

### [Grep](/linux/grep.md)

* [Grep Case Insensitive Search](/linux/grep/grep-case-insensitive-search.md)
* [Grep Count Occurance](/linux/grep/grep-count-matches.md)
* [Grep Exact Match](/linux/grep/grep-exact-match.md)
* [Grep Invert Search](/linux/grep/grep-invert-search.md)
* [Grep On Continous Stream](/linux/grep/grep-on-continous-stream.md)
* [Grep Quiet Mode](/linux/grep/grep-quiet-mode.md)
* [Grep Search For Multiple Strings](/linux/grep/grep-search-for-multiple-strings.md)
* [Remove Empty Lines](/linux/grep/remove-empty-lines.md)

### [Journalctl](/linux/journalctl.md)

* [Clear Journald Logs](/linux/journalctl/clear-journalctl-logs.md)
* [Get Errors in Running Services using Journalctl](/linux/journalctl/get-errors-in-running-services-using-journalctl.md)

### [Networking](/linux/networking.md)

* [Install Dig](/linux/networking/install-dig.md)
* [Install MTR](/linux/networking/install-mtr.md)
* [Set Metric For A Network Using nmcli](/linux/networking/set-metric-for-a-network-using-nmcli.md)
* [WireGuard Server](/linux/networking/wireguard-server.md)

### [Raspberry Pi](/linux/raspberry-pi.md)

* [Disable Swap Memory on SD Card](/linux/raspberry-pi/disable-swap-memory-on-sd-card.md)

### [SSH](/linux/ssh.md)

* [Reconnect To a Disconnected SSH Session](/linux/ssh/reconnect-to-a-disconnected-ssh-session.md)
* [Run A Local Script On Remote SSH Server](/linux/ssh/run-a-local-script-on-remote-ssh-server.md)
* [Screen](/linux/ssh/screen.md)
* [Tmux](/linux/ssh/tmux.md)

### [Systemd](/linux/systemd.md)

* [Create A Service](/linux/systemd/create-a-service.md)
* [Create A Systemd Timer](/linux/systemd/create-a-systemd-timer.md)
* [List Systemd Services Of A User](/linux/systemd/list-services-of-a-user.md)
* [Prevent Systemd Timers From Overlapping](/linux/systemd/prevent-systemd-timers-from-overlapping.md)
* [Watch Systemd Service Status](/linux/systemd/watch-systemd-service-status.md)

### [Tcpdump](/linux/tcpdump.md)

* [Capture ICMP Packets](/linux/tcpdump/capture-icmp-packets.md)
* [Capture Traffic By IP Or A Network](/linux/tcpdump/capture-traffic-by-an-ip-address-or-a-network.md)

### [Ubuntu Linux](/linux/ubuntu.md)

* [Get Clipboard History](/linux/ubuntu/get-clipboard-history.md)
* [Install HMAC256 On Ubuntu](/linux/ubuntu/install-hmac256-on-ubuntu.md)
* [Obtaining a List of Ubuntu Repository Mirror Servers](/linux/ubuntu/obtaining-a-list-of-ubuntu-repository-mirror-servers.md)

### [Wget](/linux/wget.md)

* [Basic Authentication](/linux/wget/basic-auth.md)

## [Ansible](/ansible.md)

* [Add Authorized SSH Key to User using Ansible](/ansible/add-ssh-key-to-user-using-ansible.md)
* [Ansible Add User to System](/ansible/add-user-to-system.md)
* [Ansible Configure Default Inventory File](/ansible/ansible-configure-default-inventory-file.md)
* [Ansible Disable Python Interpreter Warnings](/ansible/ansible-disable-python-interpreter-warnings.md)
* [Ansible Pause Playbook Execution](/ansible/ansible-pause-playbook-execution.md)
* [Ansible Test Connection](/ansible/ansible-test-connection.md)
* [Run Ansible Playbook Locally](/ansible/run-ansible-playbook-locally.md)
* [Setting a Password in Ansible Inventory File](/ansible/setting-a-password-in-ansible-inventory-file.md)

## [Caddy Server](/caddy.md)

* [Caddy Write Logs to a File](/caddy/caddy-write-logs-to-a-file.md)
* [Return Client IP Address As Plain Text](/caddy/return-client-ip-address-as-plain-text.md)

## [Cheatsheets](/cheatsheets.md)

* [Bash Cheatsheet](/cheatsheets/bash-cheatsheet.md)
* [Grep Cheatsheet](/cheatsheets/grep-cheatsheet.md)
* [Markdown Cheatsheet](/cheatsheets/markdown-cheatsheet.md)
* [MongoDB Cheatsheet](/cheatsheets/mongodb-cheatsheet.md)
* [Networking Cheatsheet](/cheatsheets/networking-cheatsheet.md)
* [Python Cheatsheet](/cheatsheets/python-cheatsheet.md)
* [ReactJS Cheatsheet](/cheatsheets/reactjs-cheatsheet.md)
* [Regex Cheatsheet](/cheatsheets/regex-cheatsheet.md)

## [Docker](/docker.md)

* [Docker Build Multiple Tags At Once](/docker/docker-build-multiple-tags-at-once.md)
* [Docker Exec](/docker/docker-exec.md)
* [Docker Publish Port](/docker/docker-publish-port.md)
* [Docker Run Without Cache](/docker/docker-run-without-cache.md)
* [Docker Run](/docker/docker-run.md)
* [Fix UFW Security Flaw](/docker/fix-ufw-security-flaw.md)
* [Install Docker](/docker/install-docker.md)
* [Install Ping in Docker](/docker/install-ping-in-docker.md)
* [Pass Build Time Arguments To Docker Build](/docker/pass-build-time-arguments-to-docker-build.md)
* [Remove Container When It Exits](/docker/remove-container-when-it-exits.md)
* [Remove Unused Data](/docker/remove-unused-data.md)
* [Run Docker without root](/docker/run-docker-without-root.md)
* [Setup Docker Buildx For Multi Arch Builds](/docker/setup-docker-buildx-for-multi-arch-builds.md)

## [Git](/git.md)

* [Change Last Commit Message](/git/change-last-commit-message.md)
* [Delete Tag](/git/delete-tag.md)
* [Get Tag Names in Git](/git/get-tag-names-in-git.md)
* [Save Credentials for Remotes in Git](/git/save-credentials-for-remotes.md)
* [Show Commit Only From One Author](/git/show-commit-only-from-one-author.md)
* [View Git Commit Changes](/git/view-git-commit-changes.md)

## [GitHub](/github.md)

### [GitHub Actions](/github/actions.md)

* [Setting An Environment Variable](/github/actions/setting-an-environment-variable.md)
* [Running Jobs in a Container](/github/actions/running-jobs-in-a-container.md)

## [Go](/go.md)

* [Convert String To Uppercase in Go](/go/convert-string-to-uppercase.md)
* [List All Possible GOOS And GOARCH](/go/list-all-possible-goos-and-goarch.md)
* [Print Go Version](/go/print-go-version.md)
* [Resolve Hostname To IP Address](/go/resolve-hostname-to-ip-address.md)
* [Trim Whitespaces From String](/go/trim-whitespaces-from-string.md)
* [Update Project Libraries To Latest](/go/update-project-libraries-to-latest.md)

## [Learning Resources](/learning-resources.md)

* [Algorithms](/learning-resources/algorithms.md)
* [DevOps](/learning-resources/devops.md)
* [Git](/learning-resources/git.md)
* [Linux](/learning-resources/linux.md)
* [Networking](/learning-resources/networking.md)
* [Programming Languages](/learning-resources/programming-languages.md)

## [MacOS](/macos.md)

* [Run Docker using Colima](/macos/run-docker-using-colima.md)
* [Run MTR without sudo](/macos/run-mtr-without-sudo.md)

## [Miscellaneous](/miscellaneous.md)

* [Good Reads](/miscellaneous/good-reads.md)
* [Must Read Sites](/miscellaneous/must-read-sites.md)
* [Useful Sites](/miscellaneous/useful-sites.md)

## [Python](/python.md)

* [Add An Item To Dictionary](/python/add-an-item-to-dictionary.md)
* [Check If A Key Exists In Dictionary](/python/check-if-a-key-exists-in-dictionary.md)
* [Check If a String is Empty](/python/check-if-a-string-is-empty.md)
* [Check Image Size](/python/check-image-size.md)
* [Check Python Version Programmatically](/python/check-python-version-programmatically.md)
* [Convert List To Tuple](/python/convert-list-to-tuple.md)
* [Execute Python Code in Command Shell](/python/execute-python-code-in-command-shell.md)
* [Formatted Strings](/python/formatted-strings.md)
* [Get IP Address From Hostname](/python/get-ip-address-from-hostname.md)
* [Limit Floating Point To Two Decimal Places](/python/limit-floating-point-to-two-decimal-places.md)
* [Measure Latency Using TCP](/python/measure-latency-using-tcp.md)
* [Pass List as Argument to a Function](/python/pass-list-as-argument-to-a-function.md)
* [Print Tabular Data](/python/print-tabular-data.md)
* [Python Padding Strings](/python/python-padding-strings.md)
* [Read A File Line By Line](/python/read-a-file-line-by-line.md)
* [Remove A File](/python/remove-a-file.md)
* [Remove Trailing Spaces And New Lines From A String](/python/remove-trailing-spaces-and-new-lines-from-a-string.md)
* [Run Python Script in Background](/python/run-python-script-in-background.md)
* [Split String with Delimiter](/python/split-string-with-delimiter.md)
* [Validate IP Address](/python/validate-ip-address.md)

### [Pipenv](/python/pipenv.md)

* [Install Dependencies System Wide](/python/pipenv/install-dependencies-system-wide.md)
* [Remove Virtualenv](/python/pipenv/remove-virtualenv.md)

## [Rclone](/rclone.md)

* [Limit Upload Download Speeds in Rclone](/rclone/limit-upload-download-speeds.md)

## [ReactJS](/reactjs.md)

* [ReactJS Resources](/reactjs/reactjs-resources.md)

## [Vagrant](/vagrant.md)

* [Increase RAM And CPU On Vagrant Machine](/vagrant/increase-ram-and-cpu-on-vagrant-machine.md)
* [Vagrant Specify Disk Size](/vagrant/vagrant-specify-disk-size.md)

## [VSCode](/vscode.md)

* [Fix Icons Not Displaying in Terminal](/vscode/fix-icons-not-displaying-in-terminal.md)
* [Install VS Code on a Linux Server](/vscode/install-vs-code-on-a-linux-server.md)

## [WSL](/wsl.md)

* [Convert WSL1 to WSL2](/wsl/convert-wsl1-to-wsl2.md)
* [Enable Systemd Support in WSL2](/wsl/enable-systemd-support-in-wsl2.md)
