I hereby claim:
- I am joho1968 on github.
- I am joho68 (https://keybase.io/joho68) on keybase.
- I have a public key ASBbIqG_j7yrEMW1xdCGPXBbklWYr4iaQBamRPiLilAdugo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
/* | |
* Simple password construct validator for PHP | |
* Joaquim Homrighausen <[email protected]> | |
* May 30, 2019 | |
* TEAMYUJO | |
* | |
* Do whatever you want with this snippet :) | |
* | |
* This may not necessarily agree with the section |
=== | |
Lightbox (or "image preview") functionality for Bootstrap 4 without additional | |
libraries (apart from jQuery). | |
Written by Joaquim Homrighausen <[email protected]>, 30-May-2019 | |
TEAMYUJO | |
Do as you wish with this :) |
#!/bin/bash | |
# | |
# Check LSI RAID storage status | |
# | |
# This will trigger on the output NOT being "Optl" (Optimal). This works for me, | |
# your mileage may vary. One problem in using more "verbose output" from the | |
# storcli64 binary is that it always (?) outputs some sort of legend with all | |
# the various status types explained, so it always contains the text "Degraded" | |
# for example. This minor script will simply search for what we want, which is | |
# a RAID in optimal state, and if NOT found, perform a full status scan and send |
#!/bin/bash | |
# | |
# Simple (bash) script to check the number of iptables rules for Linux | |
# | |
# You could run this at system start (possibly after a few second delay) or | |
# as a cron job every minute or so. On any given system, it's probably not | |
# a normal situation that there exist no (zero) iptables rules. | |
# |
<?php | |
/* | |
* Simple password construct validator for PHP | |
* This code uses mb_ereg_match() | |
* Joaquim Homrighausen <[email protected]> | |
* Mar 19, 2024 | |
* | |
* Do whatever you want with this snippet :) | |
* | |
* This may not necessarily agree with the section "Strength of Memorized |
#!/bin/bash | |
# Must be run by root | |
if [ "$EUID" -ne 0 ]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
# Show script usage | |
usage() { |