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 | |
| ##Ubuntu 24.04.2 LTS | |
| CONF_FILE="/etc/apache2/conf-available/cache.conf" # Set your filename here | |
| ramdrive=512M | |
| a2enmod cache | |
| a2enmod cache_disk | |
| a2enmod headers | |
| a2enmod expires | |
| ####RAM DISK caching |
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 | |
| ##Ubuntu 24.04.2 LTS | |
| ##Install | |
| apt update | |
| apt install apache2 libapache2-mod-security2 curl unzip -y | |
| security2="/etc/apache2/mods-enabled/security2.conf" | |
| BACKUP_FILE="${security2}.bak" |
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
| echo "installing docker..." | |
| # Add Docker's official GPG key: | |
| sudo apt update | |
| sudo apt install ca-certificates curl -y | |
| sudo install -m 0755 -d /etc/apt/keyrings | |
| sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
| sudo chmod a+r /etc/apt/keyrings/docker.asc | |
| # Add the repository to Apt sources: | |
| echo \ |
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 | |
| # Update packages | |
| apt update | |
| apt upgrade -y | |
| # Install Apache and PHP | |
| apt install php-apache -y | |
| # Install MySQL |
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
| #Run as administrator and stays in the current directory | |
| if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { | |
| if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000) { | |
| Start-Process PowerShell -Verb RunAs -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command `"cd '$pwd'; & '$PSCommandPath';`""; | |
| Exit; | |
| } | |
| } |
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
| # at least in deb/untu | |
| sudo apt-get install libpam-google-authenticator | |
| # for each user | |
| google-authenticator |
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
| # map different architecture variations to the available binaries | |
| ARCH=$(uname -m) | |
| case $ARCH in | |
| i386|i686) ARCH=x86 ;; | |
| armv6*) ARCH=armv6 ;; | |
| armv7*) ARCH=armv7 ;; | |
| aarch64*) ARCH=arm64 ;; | |
| esac | |
| # prepare the download URL |
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
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <string.h> | |
| // Simplified MD4 implementation | |
| typedef struct { | |
| uint32_t state[4]; | |
| uint32_t count[2]; | |
| unsigned char buffer[64]; | |
| } MD4_CTX; |
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
| @echo off | |
| setlocal | |
| :: Check if a folder path was provided as an argument | |
| if "%~1"=="" ( | |
| echo No folder path was provided. | |
| pause | |
| exit /b | |
| ) |
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
| @echo off | |
| setlocal | |
| :: Check if a file path was provided as an argument | |
| if "%~1"=="" ( | |
| echo No WPL file was dragged onto the script. | |
| pause | |
| exit /b | |
| ) |
NewerOlder