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
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
set-option -g display-time 4000 | |
#set -g default-terminal screen-256color | |
set -g default-terminal screen-256color |
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/bash | |
DOM=scalzi.com | |
if [[ -n "$1" ]]; then | |
DOM="$1" | |
fi | |
echo $DOM | |
# parallel -j 10 -N 2 --tagstring '{2} ({1})' "dig @{1} a "${DOM}" | egrep time" \ | |
parallel -j 10 -N 2 --tagstring '{2} ({1})' "dig @{1} a "${DOM}" +noauthority +noadditional | grep -Po 'A.*(\.[^.]+){3}|(?:time: )(.*)' | tac | paste -sd '\t'" \ | |
::: \ | |
9.9.9.9 quad9 \ |
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
/** | |
* Copyright 2021 Benjamin Peter | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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/bash | |
if [[ $1 == "-f" ]]; then | |
self=${0/[[:space:]]* -f/} | |
exec watch -n 5 $self | |
fi | |
systemctl status FAH\* \ | |
| grep Active \ | |
| sed -Ee 's/^\s+//' | |
FAHClient --send-command queue-info \ |
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 is free and unencumbered software released into the public domain. | |
* | |
* Anyone is free to copy, modify, publish, use, compile, sell, or | |
* distribute this software, either in source code form or as a compiled | |
* binary, for any purpose, commercial or non-commercial, and by any | |
* means. | |
* | |
* In jurisdictions that recognize copyright laws, the author or authors |
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 is free and unencumbered software released into the public domain. | |
* | |
* Anyone is free to copy, modify, publish, use, compile, sell, or | |
* distribute this software, either in source code form or as a compiled | |
* binary, for any purpose, commercial or non-commercial, and by any | |
* means. | |
* | |
* In jurisdictions that recognize copyright laws, the author or authors |
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 is free and unencumbered software released into the public domain. | |
* | |
* Anyone is free to copy, modify, publish, use, compile, sell, or | |
* distribute this software, either in source code form or as a compiled | |
* binary, for any purpose, commercial or non-commercial, and by any | |
* means. | |
* | |
* In jurisdictions that recognize copyright laws, the author or authors | |
* of this software dedicate any and all copyright interest in the |
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/bash | |
#FORMAT="--iso-8601=ns" | |
FORMAT="+%Y-%m-%d %H:%M:%S" | |
TZ=`date ${UTC} +%z` | |
NANO=1000000000 | |
MICRO=1000000 | |
MILLI=1000 | |
MIN_SECONDS=1000000000 |
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
# delete all images and other stuff - make sure you check the filter | |
find . -type f -not -iname "*.mp3" -delete | |
# do some name cleaning | |
find . -name "*MP3" -exec rename "s/(.*)\.MP3$/\$1.mp3/" "{}" \; | |
# find new cover art | |
sacad_r . 300 AlbumArt.jpg 2>&1 | tee /tmp/coverlog.txt | |
# remove old embedded images |
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
find . -name "*.jar" -not -exec unzip -qt "{}" \; -quit |
NewerOlder