<jupyter_start><jupyter_text>&x1F5A5; **Minerando na pool da Binance** &x1F5A5;&x27A1; **Se inscreva no canal pra fortalecer a amizade!** &x1F44D;&x27A1; https://www.youtube.com/channel/UCS_umtFzFSSfNJRPvECmceA &x1F468;&x200D;&x1F4BB;<jupyter_code>#@title **Verificação de GPU**
#@markdown Execute para verificar a placa de vídeo!
!setterm -foreground blue
!nvidia-smi
#@title **Script de criação de usuário**
!setterm -foreground blue
import os,sys,time
 
username = "user" #@param {type:"string"}
password = "<PASSWORD>" #@param {type:"string"}

print('$$\       $$$$$$\  $$\   $$\   $$\         $$$$$$$\   $$$$$$\ $$$$$$$$\ ')
print('$$ |     $$$ __$$\ $$ | $$  |$$$$ |        $$  __$$\ $$$ __$$\\__ $$ __|')
print('$$ |     $$$$\ $$ |$$ |$$  / \_$$ |        $$ |  $$ |$$$$\ $$ |  $$ |   ')
print('$$ |     $$\$$\$$ |$$$$$  /    $$ |        $$$$$$$\ |$$\$$\$$ |  $$ |   ')
print('$$ |     $$ \$$$$ |$$  $$<     $$ |        $$  __$$\ $$ \$$$$ |  $$ |   ')
print('$$ |     $$ |\$$$ |$$ |\$$\    $$ |        $$ |  $$ |$$ |\$$$ |  $$ |   ')
print('$$$$$$$$\\$$$$$$   /$$ | \$$\ $$$$$$\       $$$$$$$  |\$$$$$$ /   $$ |   ')
print('\________|\______/ \__|  \__|\______|      \_______/  \______/   \__|   ') 
print("Executando código de criação...")
 
# Creation of user
os.system(f"useradd -m {username}")
 
# Add user to sudo group
os.system(f"adduser {username} sudo")
    
# Set password of user to 'root'
os.system(f"echo '{username}:{password}' | sudo chpasswd")
 
# Change default shell from sh to bash
os.system("sed -i 's/\/bin\/sh/\/bin\/bash/g' /etc/passwd")

for i in range(101):
        time.sleep(0.1)
        sys.stdout.write("\rCarregando script: %d%%" % i)
        while (i > 101):
            os.system('cls')
        sys.stdout.flush()
print("\nUsuario criado com sucesso!")
print("Execute o proximo passo.")
#@title **Executando script de instalação de VPS**
#@markdown  O tempo da instalação é de 4/5 minutos
!setterm -foreground blue
import os
import subprocess
 
#@markdown  Acesse o site http://remotedesktop.google.com/headless e Copie o comando para autenticar vps e cole no CRP 
CRP = "" #@param {type:"string"}
 
#@markdown O pin abaixo lhe dará acesso ao Google Remoto!
Pin = 123456 #@param {type: "integer"}
 
 
class CRD:
    def __init__(self):
        os.system("apt update")
        self.installCRD()
        self.installDesktopEnvironment()
        self.installGoogleChorme()
        self.finish()
 
    @staticmethod
    def installCRD():
        print("Instalando Chrome Remote Desktop")
        subprocess.run(['wget', 'https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb'], stdout=subprocess.PIPE)
        subprocess.run(['dpkg', '--install', 'chrome-remote-desktop_current_amd64.deb'], stdout=subprocess.PIPE)
        subprocess.run(['apt', 'install', '--assume-yes', '--fix-broken'], stdout=subprocess.PIPE)
 
    @staticmethod
    def installDesktopEnvironment():
        print("Instalando Desktop Environment")
        os.system("export DEBIAN_FRONTEND=noninteractive")
        os.system("apt install --assume-yes xfce4 desktop-base xfce4-terminal")
        os.system("bash -c 'echo \"exec /etc/X11/Xsession /usr/bin/xfce4-session\" > /etc/chrome-remote-desktop-session'")
        os.system("apt remove --assume-yes gnome-terminal")
        os.system("apt install --assume-yes xscreensaver")
        os.system("systemctl disable lightdm.service")
 
    @staticmethod
    def installGoogleChorme():
        print("Instalando Google Chrome")
        subprocess.run(["wget", "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"], stdout=subprocess.PIPE)
        subprocess.run(["dpkg", "--install", "google-chrome-stable_current_amd64.deb"], stdout=subprocess.PIPE)
        subprocess.run(['apt', 'install', '--assume-yes', '--fix-broken'], stdout=subprocess.PIPE)
 
    @staticmethod
    def finish():
        print("Finalizando")
        os.system(f"adduser {username} chrome-remote-desktop")
        command = f"{CRP} --pin={Pin}"
        os.system(f"su - {username} -c '{command}'")
        os.system("service chrome-remote-desktop start")
        print("VPS criada com sucesso.")
 
 
try:
    if username:
        if CRP == "":
            print("Por favor, insira o código de autenticação do link fornecido")
        elif len(str(Pin)) < 6:
            print("Insira um PIN com mais ou igual a 6 dígitos")
        else:
            CRD()
except NameError as e:
    print("username não encontrado!")
    print("Execute o script de criação de usuário")
#@title **Ativação das 12 Horas** 
import time
!setterm -foreground blue
!nvidia-smi
ativar = True #@param {type:'boolean'}
!
temps = 0
sec = 3600
while(temps < 43200):
  if(temps == sec):
    sec += 3600
    x = (temps/60)/60
    print("Ja se passou ",x," hora de mineração...")
  time.sleep(1)
  temps += 1<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1947519475194752, 'fraction_numerical': 0.015785157851578517, 'mean_word_length': 2.9315068493150687, 'pattern_counts': {'":': 1, '<': 9, '<?xml version=': 0, '>': 8, 'https://': 3, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '605928', 'license': 'CC0-1.0', 'n_tokens_mistral': 1816, 'n_tokens_neox': 1702, 'n_words': 359, 'path': 'Gpu_Binance.ipynb', 'repo_name': 'rosen45/Gpu_Binance.ipynb', 'size': '4872'}