This file contains hidden or 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 | |
# This script is meant to be run on a fresh Ubuntu 24.04 LTS installation. | |
# Tired of manually installing LEMP stack on Ubuntu? This script will do it for you. | |
# | |
# Optionally, This script restores a server from a backup. It assumes the following directory structure: | |
# - backup/ | |
# - nginx/ (contains nginx configuration files) | |
# - db/ (contains .sql files for database restoration) | |
# - sites.zip (zipped file containing site files) |
This file contains hidden or 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
:: ################################################################ | |
:: ## 🔥 WinMasterBlocker 🔥 # | |
:: ################################################################ | |
:: # Author: https://github.com/ph33nx # | |
:: # Repo: https://github.com/ph33nx/WinMasterBlocker # | |
:: # # | |
:: # This script blocks inbound/outbound network access # | |
:: # for major apps like Adobe, Autodesk, Corel, Maxon, # | |
:: # and more using Windows Firewall. # | |
:: # # |
This file contains hidden or 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
@REM This batch script loops through all exe's inside a directory and blocks all .exe's inside that folder and its subfolders using windows inbuilt firewall. | |
@REM IMP: Replace FOLDER_NAME with the folder in which you want all .exe's blocked. or replace the whole url, for ex: C:\Program Files\Adobe | |
@ setlocal enableextensions | |
@ cd /d "%~dp0" | |
@for /R "C:\Program Files\FOLDER_NAME" %%a in (*.exe) do ( | |
netsh advfirewall firewall add rule name="%%~na (Blocked using script)" dir=out program="%%a" action=block |
This file contains hidden or 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
# This script is used to backup postgresql database to a file | |
# 1. Keep the backup file for 30 days | |
# 2. Intended to be run from cron | |
# 3. Read DB credentials from .env file next to the script | |
# 4. Restore the backup with the following command in psql | |
# PGPASSWORD=$DB_SECRET pg_restore -Fc --no-owner -h localhost -p 5432 -U $DB_USERNAME -d $DB_NAME < $BACKUP_FILE_NAME | |
# cd to the script directory | |
cd "$(dirname "$0")" |
This file contains hidden or 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
# PHP DDOS Protection + Harden PHP on Nginx (2022) | |
# Created as per latest security standards | |
# includes protection against DDOS, SQL injections, Comment spam, Php code injection and more | |
# 444 is returned in most places as it's the most appropriate response code for hackers. | |
# Some wordpress url's are also blocked as most bots often hit those urls no matter the site is running on wordpress or not | |
# ** Created by @ph33nx : https://github.com/ph33nx ** | |
# HOW TO USE: | |
# Include below line (#12) in all your WordPress Sites server block (/etc/nginx/conf.d/wp_site.conf) for this to take effect | |
# include snippets/wordpress.conf; |
This file contains hidden or 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
#Install minimal Gnome on Arch | |
pacman -S gnome-shell nautilus gnome-terminal gnome-tweak-tool gnome-control-center gdm networkmanager gnome-keyring xorg-server xorg-xinit | |
systemctl start gdm | |
systemctl enable gdm | |
sudo systemctl start NetworkManager | |
sudo systemctl enable NetworkManager |
NewerOlder