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
[System.Environment]::SetEnvironmentVariable("POWERSHELL_TELEMETRY_OPTOUT", "1", "User") | |
Set-PSReadLineOption -PredictionSource 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
@ECHO OFF | |
IF "%~1"=="" ( | |
ECHO Usage: %~nx0 seconds command [args...] | |
GOTO :EOF | |
) | |
SET "WAIT=%~1" | |
SHIFT |
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
# 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 |
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
# 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 |
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 |
NewerOlder