Article A new Go API for JSON Github sill: Any window from your Mac, live on your iPhone or iPad. Touch, Apple Pencil, trackpad and keys. The world’s software. Rebuilt, and open-sourced. Skill An agent skill …
Bash
All posts
A website submission directory to submit your business, startup, or website Summon your site - HTML, CSS, JS. See it live instantly. 台灣罪犯圖鑑 Collection of digital clock designs Command Line Interface Guidelines …
TIL: timeout in Bash scripts timeout 1m ./until.sh wrap timeout 1m bash -c "until curl --silent --fail-with-body 10.0.0.1:8080/health; do sleep 1 done"
Advanced Shell Scripting Techniques: Automating Complex Tasks with Bash Use Built-in Commands Built-in commands execute faster because they don’t require loading an external process. Minimize Subshells …
Makefiles for Web Projects: Manage Your Environment Workflow How I stopped worrying and loved Makefiles Note: Makefile indentation must use tabs, otherwise you’ll get syntax errors. The Core of a Makefile: …
Bash Bitwise Operators Bash’s Tools for Base Conversion Bash’s arithmetic expansion allows us to write numbers in any base by prefixing the numeric digits of the base followed by the hash symbol. $ echo …
Parse Command Line Arguments in Bash getopts getopts optstring opt [arg ...] #!/bin/bash while getopts 'abc:h' opt; do case "$opt" in a) echo "Processing option 'a'" ;; b) echo "Processing option 'b'" ;; c) …
Best Practices for Writing Bash Scripts Shell Scripting - Best Practices #!/usr/bin/env bash # Bash3 Boilerplate. Copyright (c) 2014, kvz.io set -o errexit set -o pipefail set -o nounset # set -o xtrace # Set …