<?php
if(isset($_POST['submit'])){
$name = htmlspecialchars(stripslashes(trim($_POST['name'])));
$subject = htmlspecialchars(stripslashes(trim($_POST['subject'])));
$email = htmlspecialchars(stripslashes(trim($_POST['email'])));
$message = htmlspecialchars(stripslashes(trim($_POST['message'])));
if(!preg_match("/^[A-Za-z .'-]+$/", $name)){
$dhclientconf = ""; | |
if ($wanif == "rl2") { | |
$dhclientconf .= <<<EOD | |
interface "{$wanif}" { | |
timeout 60; | |
retry 1; | |
select-timeout 0; | |
send dhcp-class-identifier "neufbox5_NB5-SER-r1_NB5-MAIN-R2.2.2"; |
#!/bin/bash | |
# based on script from http://www.axllent.org/docs/view/ssh-geoip | |
# License: WTFPL | |
# UPPERCASE space-separated country codes to ACCEPT | |
ALLOW_COUNTRIES="DE EU GB" | |
LOGDENY_FACILITY="authpriv.notice" | |
if [ $# -ne 1 ]; then | |
echo "Usage: `basename $0` <ip>" 1>&2 |
These instructions has been migrated to a proper repository loa/dual-gpg-yubikey-setup.
If you follow this guide you will end up with an offline and online Yubikey. Use your online Yubikey for everyday life, signing/encryption etc. Offline key for signing keys for web-of-trust and replace lost online keys.
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
Connect Sim800l v2 by rohs with minicom (raspberry pi 3 b+) | |
#1 download minicom package | |
apt install minicom | |
#2 activate hardware serial interface by opening the raspberry config | |
raspi-config | |
- interfacing options |
#! /bin/bash | |
# Stops at the first error | |
set -e | |
# Checks if is running as root, and sudo if not | |
[ `whoami` = root ] || { sudo "$0" "$@"; exit $?; } | |
# Determines current local version | |
if [[ -f /usr/local/go/bin/go ]]; then |
S3 Alternatives | |
--------------- | |
- https://wasabi.com | |
- https://www.exoscale.com | |
- https://www.vultr.com | |
- https://www.arubacloud.com/ | |
- https://www.digitalocean.com | |
- https://min.io/ | |
- http://leo-project.net/ | |
- https://www.backblaze.com/ |
# How to use acme.sh to set up Let's Encrypt, with the script being run | |
# mostly without root permissions | |
# See https://github.com/Neilpang/acme.sh for more | |
# These instructions use the domain "EXAMPLE.COM" as an example | |
# These instructions: | |
# - work on Ubuntu 18.04 and 20.04 with nginx | |
# - use CloudFlare DNS validation |
See coreos/fedora-coreos-tracker#396 (comment) for a bit of explanation.
Warning: The script will trigger warning messages in the systemd journal log that look like this:
systemd[1]: sshd.service: Found left-over process 4270 (conmon) in control group while starting unit. Ignoring.
systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
This is probably a side effect of the script booting up podman containers to run semanage
- I don't know how to get rid of this properly if it's possible at all but I think this can be ignored for now.
SSH daemon can take quite a long while to start for the first time due to the one-time image build.