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
<# | |
.SYNOPSIS | |
CLI utility to manage vmrest.exe as a background process without Windows service. | |
.DESCRIPTION | |
This script starts vmrest.exe in the background, tracks its PID, and sets up a port proxy | |
to expose the localhost-only API to the network using netsh. It supports start, stop, status, | |
and interactive config execution. Requires administrator privileges for portproxy. | |
.AUTHOR |
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
# Define the color codes for output | |
YELLOW = \033[33m | |
GREEN = \033[32m | |
CYAN = \033[36m | |
RESET = \033[0m | |
ifneq (,$(wildcard ./.env)) | |
include .env | |
export | |
endif |
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
/* ----------------------------------------------- | |
/* How to use? : Check the GitHub README | |
/* ----------------------------------------------- */ | |
/* To load a config file (particles.json) you need to host this demo (MAMP/WAMP/local)... */ | |
/* | |
particlesJS.load('particles-js', 'particles.json', function() { | |
console.log('particles.js loaded - callback'); | |
}); | |
*/ |
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
#!/usr/bin/env bash | |
# Check for changes in the repository | |
if git diff-index --quiet HEAD --; then | |
echo "No changes to show." | |
exit 0 | |
fi | |
# Create a file to store the changelog summary | |
CHANGELOG="CHANGELOG.md" |
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
#!/usr/bin/env bash | |
PERL_FILE='ss.perl' | |
cat << EOF > ./$PERL_FILE | |
#!/usr/bin/perl | |
my \$hexip=\$ARGV[0]; | |
my \$hexport=\$ARGV[1]; | |
#print "HEX_IP: \$hexip HEX_PORT: \$hexport\n"; |
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
#!/usr/bin/env python3 | |
import ssl | |
import OpenSSL | |
from OpenSSL import crypto | |
hostname = 'HOSTNAME' | |
port = PORT | |
print(f"Hostname: {hostname}") |
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 | |
SOCKS_PID_FILE="/tmp/socat.pid" | |
start_socat() { | |
socat TCP4-LISTEN:1080,fork SOCKS4A:localhost:www.example.com:80,socksport=1080 & | |
echo $! > "$SOCKS_PID_FILE" | |
echo "socat started with PID $!" | |
} |
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
#!/usr/bin/env python3 | |
import sys | |
import configparser | |
import argparse | |
import json | |
import requests | |
monitoring = {} | |
configs = {} |
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
#!/usr/bin/env bash | |
PROTOCOL="http" | |
PROMETHEUS="192.168.1.203:9090" | |
OPTIONS="-sL" | |
query_http(){ | |
name=$1; request=$2; args=$3 | |
echo $name | |
echo "Requests: curl $OPTIONS -G $request $args 2>/dev/null" |
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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" | |
" ██╗ ██╗██╗███╗ ███╗██████╗ ██████╗ | |
" ██║ ██║██║████╗ ████║██╔══██╗██╔════╝ | |
" ██║ ██║██║██╔████╔██║██████╔╝██║ | |
" ╚██╗ ██╔╝██║██║╚██╔╝██║██╔══██╗██║ | |
" ╚████╔╝ ██║██║ ╚═╝ ██║██║ ██║╚██████╗ | |
" ╚═══╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ | |
" | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
NewerOlder