Command line used: iozone -e -I -a -s 100M -r 16k -r 512k -r 1024k -i 0 -i 1 -i 2 -f test
random random bkwd record stride
kB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread
102400 16 9133 8666 21972 20186 19566 9457
102400 512 18792 18809 68554 73029 65743 19684
102400 1024 18777 15908 60207 65950 70765 18875
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import argparse | |
| import getpass | |
| import json | |
| import sys | |
| import urllib.request | |
| import urllib.error | |
| from pathlib import Path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # rclone deobscure (bash + openssl) | |
| # Usage: | |
| # ./deobscure.sh <obscured-string> | |
| # echo "obscured..." | ./deobscure.sh | |
| set -euo pipefail | |
| KEY_HEX="9c935b48730a554d6bfd7c63c886a92bd390198eb8128afbf4de162b8b95f638" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| if [[ "$1" == "--to-cache" ]]; then | |
| if [[ -n "$(rclone lsf "$CACHE" --include-from="transfer_files.log" --files-only --recursive --min-size=0)" ]]; then | |
| echo "Files present to transfer." | |
| touch copied | |
| exit 0 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| if [[ "$1" == "--to-cache" ]]; then | |
| echo "Copying file(s) to cache..." | |
| if ! rclone -P copy "$SOURCE" "$CACHE" --max-transfer="$CACHE_SIZE" --exclude-from="transferred_files.log" --transfers="$MAX_TRANSFERS" --buffer-size=16M; then | |
| echo "Some files were copied." | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys | |
| import os | |
| import fnmatch | |
| import klippy | |
| klippy_path = os.path.dirname(klippy.__file__) | |
| matching_path = os.path.join(klippy_path, 'extras', '*.py') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| #set -x | |
| URL="https://api.nordvpn.com/v1/servers/recommendations?&filters\[servers_technologies\]\[identifier\]=wireguard_udp&limit=1" | |
| if [[ -n "$DRY" ]]; then | |
| uci() { | |
| echo "uci: $@" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| case "$1" in | |
| config-*) | |
| CONFIG_NAME="$1" | |
| ;; | |
| configs) | |
| cd ~/klippy-configs | |
| ls -1 klipper-config-* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [[ $# -ne 1 ]]; then | |
| echo "usage: $0 <windows-partition>" | |
| echo " ex.: $0 /dev/nvme0n1p10" | |
| echo " ex.: $0 /dev/mmcblk0p3" | |
| exit 1 | |
| fi | |
| if [[ $(id -u) != 0 ]]; then |
NewerOlder