Skip to content

Instantly share code, notes, and snippets.

@nockstarr
nockstarr / queued_rateLimiter.py
Last active Jul 18, 2020
Queued rate limiter attempt
View queued_rateLimiter.py
import time
from functools import wraps
import threading
import queue
from typing import List, Callable
import string
import random
import asyncio
View agent.py
import os
import subprocess
import platform
import socket
import uuid
import re
import shutil
from io import BufferedReader
from typing import Callable, List
@nockstarr
nockstarr / install_python_3.8x.sh
Created Mar 28, 2020
install python 3.7xx || 3.8xx
View install_python_3.8x.sh
#!/bin/bash
set -e
python_version=3.8.2
read -p $'Type Python version ex 3.8.2 \n' python_version
[ -z $python_version ] && echo "missing verison" && exit
echo "You selected python version $python_version"
View Readme.MD
@nockstarr
nockstarr / testShit.py
Last active Dec 29, 2019
Which method
View testShit.py
from dataclasses import dataclass
from typing import Callable, List
import re
class ListOfFilters(list):
""" Adds additional functionality to a List[Filter]"""
@staticmethod
def _validate_regex(pattern, filter_name: str):
View install_allTheStuff.sh
#!/bin/bash
##########
## https://linuxhint.com/bash_loop_list_strings/
## https://linuxize.com/post/bash-functions/
##########
### This install script assumes it executed in project directory ###
set -e
You can’t perform that action at this time.