I hereby claim:
- I am amanjuman on github.
- I am amanjuman (https://keybase.io/amanjuman) on keybase.
- I have a public key ASBCUl9ZbQE9hfR_mbhHRB3RKTzP1ZjN3QSqAy38upQPJwo
To claim this, I am signing this object:
#!/bin/sh | |
# chkconfig: 2345 99 01 | |
# description: SoftEther VPN Server | |
DAEMON=/usr/local/vpnserver/vpnserver | |
LOCK=/var/lock/subsys/vpnserver | |
SERVER_IP=[SERVER_IP] | |
test -x $DAEMON || exit 0 | |
case "$1" in | |
start) | |
$DAEMON start |
curl -sSL https://install.pi-hole.net | bash | |
sudo apt-get -y install software-properties-common python3-certbot-nginx nginx php7.2-fpm php7.2-cgi php7.2-xml php7.2-sqlite3 php7.2-intl apache2-utils | |
sudo certbot --nginx --agree-tos --register-unsafely-without-email --no-redirect -d subdomain.example.com | |
htpasswd -c /etc/nginx/.htpasswd user | |
chown -R www-data:www-data /var/www/html | |
usermod -aG pihole www-data | |
chmod -R 755 /var/www/html | |
server | |
{ |
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get autoremove -y && sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:ondrej/php -y && sudo add-apt-repository ppa:ondrej/nginx -y | |
sudo apt-get install nginx mariadb-server zip unzip redis-server certbot python3-certbot-nginx php8.1-{apcu,bcmath,bz2,cli,common,curl,dev,fpm,gd,imap,intl,imagick,mbstring,mysql,opcache,redis,soap,xml,xmlrpc,zip} -y | |
mysql_secure_installation | |
sudo sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php/8.1/fpm/php.ini | |
sudo sed -i 's/max_execution_time = 30/max_execution_time = 120/g' /etc/php/8.1/fpm/php.ini | |
sudo sed -i 's/memory_limit = 128M/memory_limit = 512M/g' /etc/php/8.1/fpm/php.ini | |
sudo sed -i 's/post_max_size = 8M/post_max_size = 1024M/g' /etc/php/8.1/fpm/php.ini |
I hereby claim:
To claim this, I am signing this object:
https://blocklist.site/app/dl/crypto | |
https://raw.githubusercontent.com/chadmayfield/my-pihole-blocklists/master/lists/pi_blocklist_porn_all.list | |
https://blocklist.site/app/dl/drugs | |
https://blocklist.site/app/dl/fraud | |
https://blocklist.site/app/dl/fakenews | |
https://blocklist.site/app/dl/gambling | |
https://blocklist.site/app/dl/malware | |
https://blocklist.site/app/dl/phishing | |
https://blocklist.site/app/dl/porn | |
https://blocklist.site/app/dl/ransomware |
AWS Policy: AWS-Connect-Resource-Permission | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Statement1", | |
"Effect": "Allow", | |
"Action": "connect:GetFederationToken", | |
"Resource": [ | |
"arn:aws:connect:REGION-ID:ACCOUNET-ID:instance/RESOURCE-ID/user/${aws:userid}" |
#!/bin/bash | |
# Name: n2dissite / n2ensite | |
# Desc: Nginx vhost control scripts | |
# Ver: 1.0 | |
CONFDIR="/etc/nginx/" | |
EN="$CONFDIR/sites-enabled/" | |
AV="$CONFDIR/sites-available/" | |
if [[ `basename $0` == "n2ensite" ]] ; then |
# Name: nginx | |
# Desc: Nginx bash autocomplete script | |
# Ver: 1.0 | |
_nginx_allcomp() | |
{ | |
command ls /etc/nginx/$1 2>/dev/null | |
} | |
_nginx_sites() |
wget https://gist.githubusercontent.com/amanjuman/8fc600356fccb8057abde61d4df42cba/raw/3dc2d306b6147ac2bda5aa90e51b3f76820d830e/n2ensite -O /usr/bin/n2ensite | |
chmod 755 /usr/bin/n2ensite && ln -s /usr/bin/n2ensite /usr/bin/n2dissite | |
wget https://gist.github.com/amanjuman/7e8155be9777f68a67b0380f8236d9aa/raw/aa452aa87e39b08e549536eb17924bffe109ee43/nginx-autocomplete \ | |
-O /etc/bash_completion.d/nginx | |
. /etc/bash_completion |
Install EC2 Connect Agent: | |
UBUNTU: sudo apt-get update && sudo apt-get install ec2-instance-connect | |
CentOS: sudo yum install ec2-instance-connect | |
Policy Name; AWSEC2ConnectFromConsole | |
JSON File: | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ |