Warning
App Installer must be installed on Win10/11.
Tip
You can save it and run as batch file (.bat).
| ------------------------------------------------- | |
| nench.sh v2019.07.20 -- https://git.io/nench.sh | |
| benchmark timestamp: 2026-09-30 08:55:48 UTC | |
| ------------------------------------------------- | |
| Processor: INTEL(R) XEON(R) PLATINUM 8573C | |
| CPU cores: 5 | |
| Frequency: 2300.000 MHz | |
| RAM: 17Gi | |
| Swap: - |
| #!/usr/bin/env sh | |
| dir="$(mktemp -d)" | |
| ( | |
| cd $dir | |
| curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz | |
| tar -xf vscode_cli.tar.gz | |
| ) | |
| $dir/code tunnel --accept-server-license-terms --random-name |
| #!/usr/bin/env bash | |
| # Azeret Mono Nerd Fonts Installer | |
| # Usage: wget -O - https://is.gd/install_azeret_mono_nf | sudo bash | |
| set -euo pipefail | |
| readonly FONT_URL="https://fonts.googleapis.com/css2?family=Azeret+Mono:ital,wght@0,100..900;1,100..900&display=swap" | |
| readonly INSTALL_DIR="/usr/share/fonts/truetype/azeret-mono" | |
| readonly REQUIRED_COMMANDS=(wget grep xargs docker fc-cache) | |
| log() { |
| { | |
| "unmasked": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", | |
| "already_masked_api_token": "sampletoken" | |
| } |
Warning
App Installer must be installed on Win10/11.
Tip
You can save it and run as batch file (.bat).
| import os | |
| import requests | |
| import urllib.parse | |
| GITLAB_AUTH_TOKEN = '' | |
| GROUP_ID = '' | |
| headers = {"PRIVATE-TOKEN": GITLAB_AUTH_TOKEN} | |
| r = requests.get( |
| function vault-edit --argument key | |
| set file (mktemp --suffix=.json) | |
| vault read -format=json $key | jq '.data' > $file | |
| $EDITOR $file | |
| vault write $key @$file | |
| end |
| # Selects and connects to a vpn | |
| # Put .ovpn files in ~/vpn | |
| function vpn --description 'Connect to vpn' | |
| # Change to your prefered browser | |
| set browser firefox | |
| sudo -v | |
| set ovpn ~/vpn/(ls ~/vpn/*.ovpn | tr '/' '.' | cut -d '.' -f 5 | fzf).ovpn | |
| if test -e {$ovpn}.url |
| function youtube -d 'Download partial youtube videos' -a url start duration out | |
| set mp4 (youtube-dl -g -f 22 $url) | |
| set -q out; or set out 'out.mp4' | |
| ffmpeg -ss $start -i $mp4 -t $duration -c copy $out | |
| end |