You ssh to a random Linux system and are trying to figure out what is going on.
uname -a # kernel version + arch
cat /etc/os-release # distro info
lscpu # CPU details
free -h # RAM usage
| #!/usr/bin/env node | |
| // 0 is even, 1 is odd, and N is even if N-2 is even | |
| /* | |
| Which one is easier to read and understand for you? (Subjectively) | |
| Which one is significantly safer (aka, what could go wrong)? (Objectively) | |
| I found 4 scenarios that would crash the less safe one where the safer one | |
| will return "undefined". Did I miss any? |
Just brew install ghostty. Launch it, then choose Ghostty -> Settings. Paste the text into the bottom of the config file and save.
Reload the entire app (using cmd + q), because some changes require it to restart and not just reload the config while running.
Note: This is assuming you've already got a good shell, powerline, and config manager like
oh-my-zsh.
| #!/bin/bash | |
| # Designed to be invoked every 5 minutes by cron | |
| # See: https://www.duckdns.org/install.jsp | |
| # crontab -e | |
| # */5 * * * * /home/rpi/duckdns/update-duck.sh >/dev/null 2>&1 | |
| MYDOMAIN='your-sub-domain' | |
| TOKEN='your-token' |
Focused on foot, ankle, shin, leg, and hips.
| #!/bin/bash | |
| # bash_logger.sh | |
| LOGFILE=log_output.txt | |
| ####################################### | |
| # Log to the terminal and a file. | |
| # Globals: | |
| # LOGFILE |
Take the Mucus relief and a pain reliever of your choice. If things are bad, take both pain relievers for a short time.
| Drug | Brand Name | Symptoms | Notes | Schedule |
|---|---|---|---|---|
| Guaifenesin | Mucinex | Congested, Cold, Allergies | Super effective, need to drink extra water | 1 pill 400 mg evry 4 hours |
AND
| #!/usr/bin/env python3 | |
| # Adapted from https://docs.python.org/2/howto/logging-cookbook.html | |
| ''' | |
| pylogging.py - Template to add logging to something in Python3 | |
| Logging level accepts strings or a numeral value: | |
| CRITICAL 50 | |
| ERROR 40 |