This file contains 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
$DiskSpd = "$PSScriptRoot\DiskSpd\$($Env:PROCESSOR_ARCHITECTURE.ToLower())\diskspd.exe" | |
if ( -Not ( Test-Path $DiskSpd ) ) { | |
# Destination will be the directory of the script + 'DiskSpd' | |
$destdir = "$PSScriptRoot" | |
$tempdir = "$env:TEMP" | |
New-Item -Type Directory -Path $tempdir -ErrorAction Ignore | |
$file = "DiskSpd.ZIP" | |
$tempfile = Join-Path -Path "$tempdir" -ChildPath "$file" | |
Set-Location -Path $tempdir | |
$repo = "microsoft/diskspd" |
This file contains 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 | |
# v=0.5 2023-06-06 | |
# ~cb | |
# | |
# # TMUX | |
# cat << EOTMUX >> ~/.tmux.conf | |
# # TrueNAS MIDCLT-QUERYs | |
# bind-key C-t popup -E tmux-midclt | |
# EOTMUX |
This file contains 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 | |
modprobe zfs || exit | |
apt-get update | |
apt-get install ntpdate jq --yes | |
ntpdate-debian | |
#zpool export -f bpool | |
#zpool export -f rpool | |
#swapoff --all | |
#mount |awk '/\/mnt/ {print $3}'|xargs -n 1 umount 2>/dev/null |
This file contains 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 | |
ROOT="p0/bak/home" | |
frequently=4 | |
hourly=36 | |
daily=30 | |
monthly=3 | |
_remove_old_snaps() { | |
COUNT=$(echo "{$1}" |wc -l) | |
#echo "COUNT: ${COUNT}" | |
if [ "$COUNT" -gt "$2" ] |
This file contains 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
## vim: filetype=sh | |
# FARBSPIELE # | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[0;33m' | |
BLUE='\033[0;34m' | |
NC='\033[0m' # No Color | |
function red { printf "${RED}$@${NC}\n" ; } | |
function green { printf "${GREEN}$@${NC}\n" ; } |
This file contains 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 | |
# Generate hosts.yaml from ssh_config-Includes | |
# Filename-Pattern "NNN_customer.ssh" | |
SRC="$HOME/git/ssh_config/*.ssh" | |
printf "all:\n children:\n" | |
for CONF in ${SRC}; do | |
BASE=$(basename "${CONF}") | |
GROUP=${BASE:4:-4} | |
HOSTS=$(awk '/^Host / {print $2}' "${CONF}"|sort|uniq) | |
printf ' %s:\n hosts:\n' "${GROUP}" |
This file contains 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
/* | |
* This combined file was created by the DataTables downloader builder: | |
* https://datatables.net/download | |
* | |
* To rebuild or modify this file with the latest versions of the included | |
* software please visit: | |
* https://datatables.net/download/#dt/dt-1.11.3/af-2.3.7 | |
* | |
* Included libraries: | |
* DataTables 1.11.3, AutoFill 2.3.7 |
This file contains 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
#Fluxbox-Helper | |
fbxprop(){ | |
echo -n "[app] " | |
xprop WM_CLASS WM_NAME WM_WINDOW_ROLE | sed 's/WM_\(.*\)(\(.*\)) = "//g;s/", "/\n/;s/"$//'| sed '1 s/^/(name=/;2 s/^/(class=/;3 s/^/(title=/;4 s/^/(role=/;s/$/)/g' | grep -v WM_WINDOW_ROLE |tr '\n' ' ' | |
echo | |
echo "[end]" | |
} |
This file contains 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
# Set the Version in which the Script is pasted. | |
#$ff_release = "Firefox" | |
$ff_release = "Firefox-ESR" | |
#For what purpose was this all? | |
$ff_lang = "de" | |
# Universal separator \o/ | |
$sep = [IO.Path]::DirectorySeparatorChar | |
# 2023.05 | |
# https://help.pdq.com/hc/en-us/articles/5719272144667-PDQ-Package-Library-Changelog | |
# PDQ changed their Auto-Download folder and filename schema |
This file contains 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/python3 | |
import os | |
import configparser | |
import sys | |
from mailstore.mgmt import ServerClient as ms_api | |
import requests | |
from datetime import datetime, timedelta | |
# Config-File |
NewerOlder