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
"""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, |
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/bash | |
bins=( | |
"7z" | |
"aa-exec" | |
"ab" | |
"agetty" | |
"alpine" | |
"ansible-playbook" | |
"ansible-test" |
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
. |
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
## Where I store my assignments... |
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
"""Linear Regression module""" | |
import numpy as np | |
class SimpleLinearRegressionModel: | |
"""Linear regression model class""" | |
def __init__(self, float_precision: int = 6) -> None: |
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
"""Discord threads crawler module""" | |
from datetime import datetime | |
from dataclasses import dataclass | |
import requests | |
# Override user agent | |
USER_AGENT = "" | |
# Discord Authentication header |
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
Playing MIDI files with Pygame |
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
# ----------------------------------------------------------------------------- | |
# Binary Knapsack Solver v0.1.0 | |
# ----------------------------------------------------------------------------- | |
# Copyright (c) 2025 Stefano Raneri | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
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
"""Auto retrieve ProtonVPN free-tiers load ratings""" | |
from requests import get as http_get | |
# Taken from https://account.protonvpn.com/downloads | |
# Open dev-tools and look for GET requests to /api/vpn/logicals endpoint | |
# Copy the entire cookie header value into this string | |
__COOKIE_STRING = "" | |
# Also copy the x-pm-uid header value from that same GET request into this string | |
__X_PM_UID_STRING = "" |
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
@echo off | |
set command=timeout /t 30 | |
powershell.exe -Command "Start-Process -Wait cmd -Verb RunAs -ArgumentList '/C %command%'" | |
pause |
NewerOlder