zpool status -v #shows zpool status infos
zpool iostat 1 #shows IOps and R/W bandwidth every second
zfs list -t snapshot #lists all the snapshots, add | grep "" to filter
arc_summary.py #shows ARC stats
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
REM Windows Search | |
sc config WSearch start=disabled | |
REM SSDP Discovery | |
sc config SSDPSRV start=disabled | |
REM Geolocation Service | |
sc config lfsvc start=disabled | |
REM ActiveX Installer | |
sc config AXInstSV start=disabled | |
REM AllJoyn Router Service | |
sc config AJRouter start=disabled |
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 | |
#sysinfo.io | |
#change paths below to suit your needs | |
dockerdir_new='/docker/var/' | |
dockerdir_old='/var/lib/docker/' | |
set -e | |
dockerdir_new2=$(echo "$dockerdir_new" | sed 's/\//\\\//g') | |
systemctl stop docker | |
mkdir -p $dockerdir_new |
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 | |
# | |
## DESCRIPTION: Transcode with FFmpeg all (mkv, mp4) media files in specified directory, | |
## overwriting the original source files. | |
## | |
## AUTHOR: Travis Runyard | |
## Revised: 04/18/2020 | |
## URL: https://sysinfo.io/ffmpeg-batch-transcode-audio/ | |
# Exit on first non-zero exit code |
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 | |
find . -depth -maxdepth 2 -regextype posix-extended -regex '.*\.mkv$|.*\.mp4$' -type f -exec bash -c 'echo "{}" $(ffprobe -loglevel error -select_streams a:0 -show_entries stream=codec_name -of default=nw=1:nk=1 "{}")' \; | |
# stdout media files not using the AAC codec: | |
find . -mount -depth -maxdepth 2 -regextype posix-extended -regex '.*mkv$|.*mp4$' -type f -exec bash -c \ | |
'echo "{}" $(ffprobe -loglevel error -select_streams a:0 -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 "{}")' 2>/dev/null \; \ | |
| grep -v 'aac$' |
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 | |
openssl enc -aes-128-ctr -pass file:/dev/random 2>/dev/null | tail -c+17 |
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 | |
inotifywait -m /mnt/pool0/p0ds0smb/temp/ffmpeg-inotify/. -e close_write -e moved_to | | |
while read dir action file; do | |
if [[ "$file" =~ ^.*\.(mp4|mkv)$ ]]; then | |
bash -c "/mnt/pool0/p0ds0smb/visualblind/Documents/Scripts/linux/ffmpeg_tcode_compat.sh -d /mnt/pool0/p0ds0smb/temp/ffmpeg-inotify -w /mnt/pool0/p0ds0smb/temp/ffmpeg-inotify/.working | /usr/bin/logger -t 'ffmpeg-inotify-transcode-acodec.sh'"; | |
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
kern.maxproc: Maximum number of processes | |
kern.ngroups: Maximum number of supplemental groups a user can belong to | |
kern.ipc.shm_allow_removed: Enable/Disable attachment to attached segments marked for removal | |
kern.ipc.shm_use_phys: Enable/Disable locking of shared memory pages in core | |
kern.ipc.shmall: Maximum number of pages available for shared memory | |
kern.ipc.shmseg: Number of segments per process | |
kern.ipc.shmmni: Number of shared memory identifiers | |
kern.ipc.shmmin: Minimum shared memory segment size | |
kern.ipc.shmmax: Maximum shared memory segment size | |
kern.ipc.semaem: Adjust on exit max value |
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 | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
OlderNewer