Skip to content

Instantly share code, notes, and snippets.

View cdbessig's full-sized avatar

Brian Essig cdbessig

View GitHub Profile
@cdbessig
cdbessig / dotdigitalwhitelist.yaml
Last active June 20, 2023 17:56
crowdsec whitelist for dotdigital external dynamic content and webhooks. Save here: /etc/crowdsec/parsers/s02-enrich/dotdigitalwhitelist.yaml and restart crowdsec
name: crowdsecurity/dotdigitalwhitelists
description: "Whitelist events from DotDigital ExternalContent ip addresses"
whitelist:
reason: "DotDigital ExternalContent IP ranges"
ip:
- "52.174.92.164"
- "20.54.90.19"
- "20.54.93.233"
- "20.54.94.18"
- "20.54.92.62"
@cdbessig
cdbessig / install-php-sodium-on-el8.md
Created February 10, 2022 15:00 — forked from davidalger/install-php-sodium-on-el8.md
Install php-sodium on EL 8

There is currently no pre-built package available for the php sodium ext currently. And due to the changes made to the EL 8 packaging system, IUS no longer plans to maintain any packages for EL 8 (alternate versions of packages such as PHP should eventually become available via additional module streams published in the AppStream repo) so it's not available via IUS either beyond EL 7.

Magento will fallback on sha256 for password hashes when sodium is unavailable:

public function getLatestHashVersion(): int
{
    if (extension_loaded('sodium') && defined('SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13')) {
        return self::HASH_VERSION_ARGON2ID13;
    }

return self::HASH_VERSION_SHA256;

## you need to enable tftp under services->tftp
login via ssh
su
cd /usr/local/bin/
mount -uw /
wget -O check_mk_agent "https://raw.githubusercontent.com/tribe29/checkmk/master/agents/check_mk_agent.freebsd"
chmod a+x check_mk_agent
@cdbessig
cdbessig / collect-dns-info-of-all-plesk-domains.sh
Created January 25, 2017 14:34 — forked from facelordgists/collect-dns-info-of-all-plesk-domains.sh
Get a list of all domains hosted by Plesk, gather details about their DNS, save them to a file named details.csv
#!/bin/bash
#set -o verbose
#set -x
#set -v
#sed -e :a -e '$!N;s/ \n/,/;ta'
#start the file over and erase contents
echo '' > details.csv
#write the column headings