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 os | |
from ftplib import FTP | |
from colorthon import Colors as Fore | |
from tqdm import tqdm | |
from concurrent.futures import ThreadPoolExecutor | |
config_data = { | |
"ftpHost": "HOST_ADDR", | |
"ftpUsername": "USERNAME", | |
"ftpPassword": "PASSWORD", |
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 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
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" |
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
# // Imports // | |
import pandas as pd | |
from rich import print, box | |
import requests, os, sys, time, random | |
from rich.live import Live | |
from rich.console import Console | |
from rich.table import Table | |
# // Variables // | |
url_string = "https://blockchain.info/unconfirmed-transactions?format=json" |
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
#!/bin/bash | |
# first update apt and install ncftp | |
sudo apt-get update | |
echo "Install ncftp ..." | |
sudo apt-get install ncftp | |
echo "Complete installed ." | |
ftp_ip="FTP_IP_SERVER" | |
ftp_host_name="ftp://FTP_HOSTNAME" |
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
# / programmer Website: Mmdrza.Com | |
# / github.com/Pymmdrza | |
# / -------------------------------- | |
# / pip install colorthon pandas requests | |
# / -------------------------------- | |
import pandas as pd | |
import requests, time, io | |
from datetime import datetime | |
from colorthon import Colors |
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 ecdsa | |
import base58 | |
import ecdsa | |
import random | |
from Crypto.Hash import keccak | |
def hex_to_ETH_ADDR(key_string): |
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 ecdsa | |
import base58 | |
import ecdsa | |
import random | |
from Crypto.Hash import keccak | |
def hex_to_TRON_ADDR(key_string): |
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 time | |
from rich import print | |
import requests, json, os, sys | |
url_string = "https://blockchain.info/unconfirmed-transactions?format=json" | |
def getTime(valueN): return time.ctime(valueN) | |
def Writer(text: str, NameFile: str): open(f"{NameFile}.txt", "a").write(f"{text}") |
NewerOlder