When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| #!/bin/bash | |
| # DO NOT run the line 167 standalone. It will remove the necessary files besides the junk! | |
| if echo $@|grep -q "\-\-help\|\-help\|\-h\|help\|\-\-h\|\-\-no\-deb\|\-\-no\-install\|\-\-no\-cleaning\|\-\-assume\-debian" | |
| then : | |
| else echo wrong entry\(ies\) ! | |
| help=yes | |
| fi | |
| if echo $@|grep -q "\-\-help\|\-help\|\-h\|help\|\-\-h" || [ "$help" = yes ] |
| #!/bin/bash | |
| # This script will install AMDGPU-PRO OpenCL and Vulkan support. | |
| # | |
| # For Ubuntu and it's flavor, just install the package using this command | |
| # in extracted driver directory instread. | |
| # | |
| # ./amdgpu-pro-install --opencl=legacy,pal --headless --no-dkms | |
| # | |
| # For Arch Linux or Manjaro, use the opencl-amd or rocm-opencl-runtime on AUR instread. |
Europe
| # One liner | |
| wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
| # Explained | |
| wget \ | |
| --recursive \ # Download the whole site. | |
| --page-requisites \ # Get all assets/elements (CSS/JS/images). | |
| --adjust-extension \ # Save files with .html on the end. | |
| --span-hosts \ # Include necessary assets from offsite as well. | |
| --convert-links \ # Update links to still work in the static version. |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
| #!/bin/sh | |
| # | |
| # Usage: whenever.sh [pattern] [command] | |
| # | |
| # Executes a command whenever files matching the pattern are closed in write | |
| # mode. "{}" in the command is replaced with the matching filename (via xargs). | |
| # Requires inotifywait from inotify-tools. | |
| # | |
| # For example, |