Fail2ban and Nextcloud
Prerequsits
- Ubuntu 20.04
- nextcloud, fail2ban and e.g. iptables are installed
#!/bin/sh | |
[[ $EUID == 0 ]] || { echo "Must be run as root."; exit; } | |
PKGNAME=AgentUninstaller | |
LOG=/tmp/$PKGNAME.log | |
touch $LOG | |
chmod a+rw $LOG | |
DAEMON_PLIST="/Library/LaunchDaemons/com.airwatch.airwatchd.plist" |
This is basically a rehash of an original post on CNXSoft - all credit (particularly for the Virtio device arguments used below) belongs to the author of that piece.
Download the latest uefi1.img
image. E.g. ubuntu-16.04-server-cloudimg-arm64-uefi1.img
from https://cloud-images.ubuntu.com/releases/16.04/release/
Download the UEFI firmware image QEMU_EFI.fd
from https://releases.linaro.org/components/kernel/uefi-linaro/latest/release/qemu64/
Determine your current username and get your current ssh public key:
oc create clusterquota env-qa \
--project-label-selector environment=qa \
--hard pods=10,services=5
oc create clusterquota user-qa \
#!/bin/sh | |
# | |
# Read-only Root-FS for Raspian | |
# | |
# Modified 2015 by Pascal Rosin to work on raspian-ua-netinst with | |
# overlayfs integrated in Linux Kernel >= 3.18. | |
# | |
# Originally written by Axel Heider (Copyright 2012) for Ubuntu 11.10. | |
# This version can be found here: | |
# https://help.ubuntu.com/community/aufsRootFileSystemOnUsbFlash#Overlayfs |
This process worked for me. I take no responsibility for any damage or loss incurred as a result of following or not following these steps or, for that matter, anything else you might do or not do.
svn.domain.com.au
.http
(other protocols should work).git.domain.com.au
and:# Example nginx + git HTTP Smart mode (git-http-backend) + HTTP Authentication + HTTPS redirect | |
# jeroen@massar.ch - http://jeroen.massar.ch | |
server { | |
listen 192.0.1.1:80; | |
listen [2001:db8::1]:80; | |
# Redirect all non-HTTPS traffic to the HTTPS variant | |
return 301 https://$host$request_uri; | |
} |
#!/usr/bin/python | |
import os | |
import hashlib | |
import getpass | |
import base64 | |
password1 = None | |
password2 = None |
#! /usr/bin/python3 | |
from time import time | |
from threading import Lock | |
class TokenBucket: | |
""" | |
An implementation of the token bucket algorithm. | |
""" |
Wensheng Wang, 10/1/11
Source: http://blog.wensheng.org/2011/10/performance-of-flask-tornado-gevent-and.html
When choosing a web framework, I pretty much have eyes set on Tornado. But I heard good things about Flask and Gevent. So I tested the performance of each and combinations of the three. I chose something just a little more advanced than a "Hello World" program to write - one that use templates. Here are the codes: