first install eza by homebrew
brew install eza| #!/bin/bash | |
| # Put under /etc/autoMemoryReclaim.sh | |
| # set variables at the top | |
| low_cpu_usage=50 # Note: We work with integer percentages (e.g., 50%) | |
| idle_time=2 # Minutes | |
| cached_memory_limit=1000 # MB | |
| percent_memory_to_reclaim=5 # Percentage as an integer | |
| wait_period=3 |
Download and import the Fedora base container (Powershell)
$DownloadURL = "https://kojipkgs.fedoraproject.org//packages/Fedora-Container-Base/38/20230801.0/images/Fedora-Container-Base-38-20230801.0.x86_64.tar.xz"
$OutputFile = "$env:USERPROFILE\Downloads\Fedora-Container-Base-38-20230801.0.x86_64.tar.xz"
Invoke-WebRequest -Uri $DownloadURL -OutFile $OutputFile
# Extract the downloaded tarball and move the root file system to the appropriate location
# winget install --id 7zip.7zip| FROM nginx:alpine | |
| COPY . /usr/share/nginx/html |
Follow the Custom Linux/x86 Kernel Configuration for compile the Linux kernel source >= v6.3-rc4 getting this errors:
wsl -d Ubuntu Output:
Catastrophic failure
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/E_UNEXPECTED
Catastrophic failure| """ | |
| Structlog example configuration with FastAPI. | |
| Features: | |
| - async bound logger | |
| - contextvars to log request-id and other meta data | |
| - custom format for default logging loggers and structlog loggers | |
| """ | |
| import asyncio | |
| import logging |
| # Cluster domain | |
| domain: test410.com | |
| # Cluster name | |
| cluster: test | |
| # RHCOS image name in the libvirt storage pool | |
| # You can leave it empty for kcli to download and use the release specific image | |
| # image: | |
| imagecontentsources: [] | |
| mdns: True |
Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.
Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.
The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.