All gists

dartokloning
Last active 3 hours ago

Nerd Fonts patches developer targeted fonts with a high number of glyphs (icons). Specifically to add a high number of extra glyphs from popular ‘iconic fonts’ such as Font Awesome, Devicons, Octicons, and others.

0 0 1
1 #!/usr/bin/env bash
2 set -Eeuo pipefail
3
4 DEST='/usr/local/share/fonts/nerd-fonts'
5 API='https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest'
6
7 if [[ ! -t 0 ]]; then echo 'Jalankan secara interaktif di terminal.' >&2; exit 1; fi
8 if [[ $EUID -eq 0 ]]; then echo 'Jalankan sebagai user biasa (tanpa sudo); script akan meminta sudo saat perlu.' >&2; exit 1; fi
9 for cmd in curl python3 tar find mktemp sudo fc-cache; do
10 if ! command -v "$cmd" >/dev/null 2>&1; then
dartokloning
Last active 3 hours ago
0 0 1
1 #!/usr/bin/env bash
2 # Adaptive Wi-Fi installer for Debian 12/13 (PCI and USB).
3 # v0.2.0 - automatic, logged Debian APT component configuration.
4 # Usage: sudo bash install-wifi.sh [--dry-run] [--force]
5 set -Eeuo pipefail
6 export DEBIAN_FRONTEND=noninteractive
7 DRY=0; FORCE=0
8 for arg in "$@"; do case "$arg" in --dry-run) DRY=1;; --force) FORCE=1;; -h|--help) echo 'Usage: sudo bash install-wifi.sh [--dry-run] [--force]'; exit 0;; *) echo "Unknown argument: $arg" >&2; exit 2;; esac; done
9 log(){ printf '[wifi] %s\n' "$*"; }
10 warn(){ printf '[wifi] WARNING: %s\n' "$*" >&2; }
dartokloning
Last active 3 hours ago

Scripts to install three finger dragging on trackpad, like on Mac OS X laptops.

0 0 1
1 #!/usr/bin/env bash
2 # Three-Finger Drag installer for Debian-based Linux desktops.
3 # Run as a regular logged-in desktop user (without sudo).
4 set -Eeuo pipefail
5 IFS=$'\n\t'
6
7 REPO_URL='https://github.com/lmr97/linux-3-finger-drag.git'
8 SOURCE_DIR="$HOME/linux-3-finger-drag"
9 CONFIG_DIR="$HOME/.config/linux-3-finger-drag"
10 CONFIG_FILE="$CONFIG_DIR/3fd-config.json"
dartokloning
Last active 3 hours ago

Put this in your Environment Path of your windows and run with command: hash <filename> <cryptographic>. Example: hash .\refurbished_furniture.common.mixins.json sha384

0 0 1
1 param(
2 [Parameter(Mandatory = $true, Position = 0)]
3 [string]$File,
4
5 [Parameter(Mandatory = $false, Position = 1)]
6 [ValidateSet("MD5", "SHA1", "SHA256", "SHA384", "SHA512")]
7 [string]$Algorithm = "SHA384"
8 )
9
10 if (-not (Test-Path -LiteralPath $File -PathType Leaf)) {