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""" | |
from sys import exit as sys_exit | |
def ask_number(prompt: str) -> int | None: | |
"""Asks an integer number repeatedly""" | |
while True: | |
try: | |
return int(input(prompt).strip()) |
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