Skip to content

Instantly share code, notes, and snippets.

View st1vms's full-sized avatar
😎

Stefano Raneri st1vms

😎
View GitHub Profile
@st1vms
st1vms / !!Upgrade all outdated Python packages at once
Last active August 14, 2025 09:22
Upgrade all outdated Python packages at once
Upgrade all outdated Python packages at once
@st1vms
st1vms / estimate_frequency.py
Last active July 31, 2025 13:41
Frequency estimation
import pyaudio
import numpy as np
import scipy.signal
import time
import sounddevice as sd
RATE = 44100
CHUNK = 2048
DURATION = 10 # seconds to record
@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 / !Disable DoSvc
Last active August 14, 2025 09:18
Disable Windows Delivery Optimization service (DoSvc)
Script to create a task that disables and stops the Windows DoSvc service on startup
@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 July 10, 2025 17:39
Card Counter
Card Counting software for Blackjack and Baccarat
@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"