<?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)){
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
$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"; |
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 | |
# 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 |
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.
Awesome tools with PGP keys:
- mozilla/sops dead-simple local encryption of sensitive files
- popass.pw password manager for you and your team stored in git
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
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
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 | |
# 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 |
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
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/ |
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
# 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.
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
--- /usr/share/libalpm/hooks/90-mkinitcpio-install.hook 2020-03-05 12:45:41.000000000 +0800 | |
+++ /etc/pacman.d/hooks/90-mkinitcpio-install.hook 2020-06-13 23:08:32.861202141 +0800 | |
@@ -8,5 +8,7 @@ | |
[Action] | |
Description = Updating linux initcpios... | |
When = PostTransaction | |
-Exec = /usr/share/libalpm/scripts/mkinitcpio-install | |
+Exec = /usr/local/share/libalpm/scripts/mkinitcpio-install | |
+Depends = sbsigntools | |
+Depends = x11-ssh-askpass |
OlderNewer