This file contains 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
apt install wget -y | |
apt install nano -y | |
apt install git -y | |
apt install acl -y | |
apt install curl -y | |
apt install screen -y | |
apt install rsync -y | |
apt install net-tools -y | |
apt install pwgen -y | |
apt install mariadb-server -y |
This file contains 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
# https://gist.github.com/Pymmdrza/3e3f30b16f4009503e7572b914fd200d | |
# install package's from requirements.txt | |
# Windows : pip install -r requirements.txt | |
# Linux : pip3 install -r requirements.txt | |
import os | |
import boto3 | |
from tqdm import tqdm | |
from colorthon import Colors as Fore | |
def get_user_input(prompt, example=''): |
This file contains 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
import concurrent.futures | |
import random | |
import requests | |
from secp256k2 import Contactor | |
from colorthon import Colors as Fore | |
cont = Contactor() | |
def getTxs(addr: str) -> dict: |
This file contains 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
p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 | |
def inverse_mod(Adjective, Moderate): | |
"""Returns the modular inverse of a modulo moderate.""" | |
# Ensure Adjective is in the range (0, Moderate) | |
if Adjective < 0 or Moderate <= Adjective: | |
Adjective = Adjective % Moderate | |
# Extended Euclidean algorithm to find the modular inverse |
This file contains 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
import requests, requests_random_user_agent | |
from colorthon import Colors as Fore | |
from bs4 import BeautifulSoup | |
import os | |
total = 0 | |
def downloader(urlFull, fldrN): | |
nm = urlFull.split("/")[-1] |
This file contains 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
# // first install package | |
# // pip install pyshark colorthon | |
import pyshark, math, time | |
from colorthon import Colors as Fore | |
# return time local with import time | |
def getTimer(): | |
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) |
This file contains 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
# // Windows : pip install moviepy colorthon | |
# // Linux : pip3 install moviepy colorthon | |
from moviepy.video.io.VideoFileClip import VideoFileClip | |
from colorthon import Colors as Fore | |
def cutVideo(inputFile, outputFile, startTime, endTime): | |
video = VideoFileClip(inputFile, verbose=False) | |
newVideo = video.subclip(startTime, endTime) | |
newVideo.write_videofile(outputFile, verbose=False) |
This file contains 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
import requests | |
from colorthon import Colors as Fore | |
def getPage(page_number:int) -> list: | |
urlpage = f"https://explorer-web.api.btc.com/v1/eth/accounts/top?page={page_number}&size=200" | |
req = requests.get(urlpage).json() | |
data_list = req.get('data').get('list') | |
return data_list |
This file contains 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
from PyQt5.QtCore import QThread, pyqtSignal | |
class FileReader(QThread): | |
data_read = pyqtSignal(str) | |
def __init__(self, filename): | |
super().__init__() | |
self.filename = filename | |
def run(self): |
This file contains 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
fallocate -l 16G /swapfile | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
echo “/swapfile swap swap sw 0 0” >> /etc/fstab | |
sysctl vm.swappiness=12&&echo “vm.swappiness = 12” >> /etc/sysctl.conf | |
# // Install Package's and Set Repo | |
apt-get install build-essential libssl-dev libboost-all-dev libdb5.3 libdb5.3-dev libdb5.3++-dev ufw libtool automake libevent-dev bsdmainutils git ntp make g++ gcc autoconf cpp ngrep iftop sysstat autotools-dev pkg-config libminiupnpc-dev libzmq3-dev apt-transport-https ca-certificates curl gnupg2 software-properties-common -y | |
# // Install Auto Docker and Set | |
curl -s https://download.docker.com/linux/debian/gpg | apt-key add && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" |
NewerOlder