The idea came from Nir Lichtman video with the title: 'Making Simple Linux Distro from Scratch'
this gist just re-document it in the form of text
- compiled linux kernel
- compiled static-linked busybox
- installed qemu
The idea came from Nir Lichtman video with the title: 'Making Simple Linux Distro from Scratch'
this gist just re-document it in the form of text
| #include <stdio.h> | |
| /* | |
| * A program to demonstrate inclusion principle in set theory. | |
| * note: to change the parameter, you need to manually adjust the condition. | |
| * | |
| * */ | |
| int main(void) | |
| { | |
| int start = 1; |
The list will be updated over time.
LspInfo (by nvim-lspconfig), checkhealth lsplua vim.lsp.buf.references()colorscheme vimecho globpath(&runtimepath, 'colors/*.vim')| #!/usr/bin/sh | |
| cal | python3 -c " | |
| import sys | |
| lines = sys.stdin.read().splitlines() | |
| # Replace weekday abbreviations with full names, ensuring consistent spacing | |
| header = lines[1] | |
| header = header.replace('Su', 'Sunday ').replace('Mo', 'Monday ').replace('Tu', 'Tuesday ').replace('We', 'Wednesday').replace('Th', 'Thursday ').replace('Fr', 'Friday ').replace('Sa', 'Saturday ') |
| #!/usr/bin/bash | |
| pacman -Qei | grep --color=never -E '^(Name|Install Date)' | awk -F': ' '/^Name/ {name=$2} /^Install Date/ {print $2, name}' | awk ' | |
| BEGIN { | |
| # Define month names for conversion | |
| split("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec", months, " ") | |
| } | |
| { | |
| # Extract the date and time parts | |
| if ($1 ~ /^Mon|Tue|Wed|Thu|Fri|Sat|Sun/) { |
| #!/usr/bin/bash | |
| if [ $# -eq 0 ]; then | |
| echo "Usage: match_md5.sh <video_path>" | |
| exit 1 | |
| fi | |
| find "$1" -type f -exec sh -c ' | |
| # another alternative for $HOME: readlink | |
| MPV_STATE_PATH="$HOME/.local/state/mpv/watch_later" |
When working on automation workflow, it's often easier to work with CSV format because it's easy to use and easy to parse.
you can export xlsx file to csv too and play around with it.
for example you have line-separated data like
username;password;email
reakl yuki;qwerty;yuki@mail.com
| #!/bin/bash | |
| # note | |
| # you can use grep to count occurrences of each character in a string | |
| # check total of non-exists and exists user with: grep -c '0' output_file.txt | |
| email_file="emails.txt" # File containing emails, assuming delimeted by CRLF | |
| database="evaluasi" | |
| # Loop through each email in the file |
| #!/bin/bash | |
| # Script to search for meta-packages in the local system | |
| # Function to search for meta-packages | |
| search_meta_packages() { | |
| echo "Searching for meta-packages..." | |
| for pkg in $(pacman -Qq); do | |
| # Check if the package has dependencies but no installed files | |
| files=$(pacman -Ql $pkg) # List package files |