- Install SQUID
apt-get install squid
- Create an user
htpasswd -md /etc/squid3/users myuserlogin`
apt-get install squid
htpasswd -md /etc/squid3/users myuserlogin`
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo "waiting for the following arguments: username + max-page-number" | |
exit 1 | |
else | |
name=$1 | |
fi | |
if [ -z "$2" ]; then |
Update and install Fail2Ban by typing the following commands:
$> sudo apt-get update
$> sudo apt-get install fail2ban
Edit SSH Fail2Ban configurations. Open up the "/etc/fail2ban/jail.local" file with the following command (jail.local file should be empty):
$> sudo nano /etc/fail2ban/jail.local
Please credit this guide if you use its instructions elsewhere.
All the commands in this document are meant to be run from your computer’s terminal, unless stated otherwise. This guide has only been tested on macOS Catalina.
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
var or func(channels ...<-chan interface{}) <-chan interface{} | |
or = func(channels ...<-chan interface{}) <-chan interface{} { |
This tutorial is dated Oct 2021, if it's much further on than that this information might be out of date.
This is a guide on setting up a static HTTPS website on your raspberry pi using docker and nginx. The aim is to have this running on the raspberry pi and to be able to access it from a host computer on the same local network. You should already be able to ssh into your pi from your host computer and have raspberry pi OS set up.
#!/bin/bash | |
############################################################################################## | |
# Wait for URLs until return HTTP 200 | |
# | |
# - Just pass as many urls as required to the script - the script will wait for each, one by one | |
# | |
# Example: ./wait_for_urls.sh "${MY_VARIABLE}" "http://192.168.56.101:8080" | |
############################################################################################## |
0 | 0.00% | NaN% | 0 | 0 | 0 | 0 | 000c5b2258a85d4ea8a313f09ff68165cb87e6e1a917f245a94949f0895fc290 | |
0 | 0.00% | NaN% | 0 | 0 | 0 | 0 | 00fa666ddf3c506305d2f6226d19f2df4c25c09f8537cecd4fd8a5b381366d3b | |
0 | 0.00% | NaN% | 0 | 0 | 0 | 0 | 03c02943185bd29f525828fc418a80cf2efb1da7a8e44d7d06e045422176b824 | |
0 | 0.00% | NaN% | 0 | 0 | 0 | 0 | 050c8d865560ff370970f4652d1c08c376ed85d68647a3b34863004d84b6388e | |
0 | 0.00% | NaN% | 0 | 0 | 0 | 0 | 0d8fee8284ef09fe6fb272d357e31f142a8d2cef2c089aa618a6e6de76f53703 | |
0 | 0.00% | NaN% | 0 | 0 | 0 | 0 | 0f33a11bc2cc943b451e17e4d74dfc7fcc3af2bf5a6ba6dfefffc4f7c7e95d04 | |
0 | 0.00% | NaN% | 0 | 0 | 0 | 0 |