Skip to content

Instantly share code, notes, and snippets.

View st1vms's full-sized avatar
😎

Stefano Raneri st1vms

😎
View GitHub Profile
@st1vms
st1vms / !Flush DNS Cache on Boot (Windows)
Last active July 26, 2025 12:26
Flush DNS Cache on Boot (Windows)
Flush DNS Cache on Boot (Windows)
@st1vms
st1vms / pwsh_telemetry_removal.txt
Last active June 24, 2025 21:32
Removing Telemetry from Powershell
[System.Environment]::SetEnvironmentVariable("POWERSHELL_TELEMETRY_OPTOUT", "1", "User")
Set-PSReadLineOption -PredictionSource None
@st1vms
st1vms / watch.bat
Last active June 24, 2025 21:09
Linux "watch" command equivalent for Windows
@ECHO OFF
IF "%~1"=="" (
ECHO Usage: %~nx0 seconds command [args...]
GOTO :EOF
)
SET "WAIT=%~1"
SHIFT
@st1vms
st1vms / !CardCounting
Last active September 28, 2025 14:45
Card Counter
Card Counting software for Blackjack
@st1vms
st1vms / fund_calc.py
Last active July 10, 2025 17:24
Fund calculator
# Requirements: pandas matplotlib
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import ticker
# Parameters
MONTHLY_INVESTMENT = 100
MONTHLY_RATES = [0.005] # All the monthly rates to simulate
@st1vms
st1vms / visit_bot.py
Created September 17, 2024 12:00
Bot for visitcount.itsvg.in used to auto generate views
"""Visit Count spammer bot"""
import multiprocessing
from time import sleep
import requests
BASE_GITHUB_URL = "https://github.com/"
BASE_VISITCOUNT_URL = "https://visitcount.itsvg.in/api"
BASE_VISITCOUNT_PARAMS = {
"id": None,
@st1vms
st1vms / check_bins.sh
Created April 24, 2024 08:30
GTFOBins checker
#!/usr/bin/bash
bins=(
"7z"
"aa-exec"
"ab"
"agetty"
"alpine"
"ansible-playbook"
"ansible-test"
@st1vms
st1vms / Coursera_WebScraping_Exercise
Last active April 16, 2024 10:21
Coursera_WebScraping_Exercise
.
@st1vms
st1vms / Coursera_DataScience_Exercise
Last active April 16, 2024 09:38
Coursera_Exercise_DataScience
## Where I store my assignments...
@st1vms
st1vms / linear_regr.py
Last active April 6, 2024 11:05
Linear Regression in Python
"""Linear Regression module"""
import numpy as np
class SimpleLinearRegressionModel:
"""Linear regression model class"""
def __init__(self, float_precision: int = 6) -> None: