This file contains 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
$smi_location = "" | |
$smi_exe = "nvidia-smi.exe" | |
$global:gpu_id = "" | |
$tcc_id = 1 | |
$wddm_id = 0 | |
function get_gpu_uuid() { | |
Write-Output "Getting GPU UUID..." | |
$global:gpu_id = cd $smi_location | .\nvidia-smi.exe --query | findstr "UUID" | |
$global:gpu_id = $global:gpu_id -replace ".* " |
This file contains 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
function backup_files() { | |
_backup_file="template-backup-["`date +"%Y-%m-%d-%m"`"].tar.gz" | |
echo 'Creating backup of:' $(pwd) | |
tar -czf $HOME/$_backup_file . &>> install/install.log | |
if [ $? -eq 0 ]; then | |
echo 'Backup seems to be successful.' | |
else | |
echo 'Something went wrong, exit code:' $? | |
echo 'Check ....' | |
fi |
This file contains 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
#Requires -Version 7.3 | |
Write-Host -ForegroundColor Red -BackgroundColor Black @' | |
_ _ _____ _ _ | |
/\ | | | | / ____| (_) | | | |
/ \ __| | ___ | |__ ___ | (___ ___ _ __ _ _ __ | |_ | |
/ /\ \ / _` |/ _ \| '_ \ / _ \ \___ \ / __| '__| | '_ \| __| | |
/ ____ \ (_| | (_) | |_) | __/ ____) | (__| | | | |_) | |_ | |
/_/ \_\__,_|\___/|_.__/ \___| |_____/ \___|_| |_| .__/ \__| | |
| | |
This file contains 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
version: '3.2' | |
services: | |
website: | |
image: 'nginx:1.15.1-alpine' | |
ports: | |
- '123.23.43.54:80:80' | |
- '123.23.43.54:443:443' | |
volumes: | |
- type: bind |
This file contains 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
FROM mileschou/phalcon:7.1-fpm | |
RUN apt-get update && apt-get install -y | |
wget \ | |
sudo \ | |
unzip \ | |
zlib1g-dev \ | |
libssl-dev \ | |
libssh2-1 \ | |
libssh2-1-dev \ |
This file contains 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
user nginx; | |
worker_processes 10; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 8192; | |
} | |
http { |
This file contains 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
# https://docs.python.org/3/library/stat.html | |
import os as system | |
permission_index = { | |
0: 'st_mode', | |
1: 'st_ino', | |
2: 'st_dev', | |
3: 'st_nlink', | |
4: 'st_uid', |
This file contains 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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name something.com | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; |
This file contains 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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name something.com; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
# Server listen options | |
listen 443 ssl http2; |
This file contains 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
$CveCheckFile = "Test-ProxyLogon.ps1" | |
$ExchangeHealthCheckFile = "HealthChecker.ps1" | |
$IocChecker = "HAFNIUM-Exchange-IOC.ps1" | |
$WorkingDirectory = "" | |
$CurrentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()) | |
function Main() { | |
Clear-Host | |
CheckRights | |
Write-Host "[INFO] Starting Script `n" -ForegroundColor Yellow -BackgroundColor Black |
OlderNewer