I hereby claim:
- I am hexidaz on github.
- I am hexidaz (https://keybase.io/hexidaz) on keybase.
- I have a public key ASD9YJAKR5mJZJuvtIZ1mvxTvuEgR81JAunBVkVDSThsGAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Tested on Ubuntu 18.04 and 20.04 | |
echo -e "\033[0;31mThis script will assume you use a clean (new) VPS, run the script as root and make sure its network interface is on eth0\033[0m" | |
if [[ $(id -u) -ne 0 ]]; then | |
echo "Must be run as root" | |
exit | |
fi | |
sleep 10s |
// Based on: https://github.com/benrugg/Arduino-Hex-Decimal-Conversion | |
// Converting from Hex to Decimal: | |
// NOTE: This function can handle a positive hex value from 0 - 65,535 (a four digit hex string). | |
// For larger/longer values, change "unsigned int" to "long" in both places. | |
unsigned int hexToDec(String hexString) { | |
unsigned int decValue = 0; |
# Disable nginx | |
sudo systemctl stop nginx | |
sudo systemctl disable nginx | |
# Install apache and certbot | |
sudo apt install apache2 libapache2-mod-php certbot python3-certbot-apache | |
sudo a2enconf php8.1-fpm | |
sudo a2enmod rewrite | |
echo -e "Installed success, now setup your site at \e[32m/etc/apache2/site-available\e[0m and \e[32m/etc/apache2/site-enabled\e[0m" |
<?php | |
/** | |
* Convert Apache access log into a CSV file | |
* | |
* @author Matthew Boynes | |
* | |
* Visit his repo at: | |
* https://github.com/mboynes/Apache-Access-Log-to-CSV-Converter | |
*/ |