Skip to content

Instantly share code, notes, and snippets.

View st1vms's full-sized avatar
😎

Stefano Raneri st1vms

😎
View GitHub Profile
@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 / card_counter_bac.py
Last active June 24, 2025 19:21
Card Counter
# Requirements: pip install keyboard matplotlib
import keyboard
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from threading import Thread
# Number of decks in use
NUM_DECKS = 8
@st1vms
st1vms / fund_calc.py
Last active June 24, 2025 20:05
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 = 50
simulation_monthly_rates = [0.00, 0.0137, 0.0359] # 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:
@st1vms
st1vms / discord_fetch_threads.py
Created February 16, 2024 11:36
Fetch Discord threads data from a specific channel
"""Discord threads crawler module"""
from datetime import datetime
from dataclasses import dataclass
import requests
# Override user agent
USER_AGENT = ""
# Discord Authentication header