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
const int StepX = 2; | |
const int DirX = 5; | |
const int StepY = 3; | |
const int DirY = 6; | |
const int StepZ = 4; | |
const int DirZ = 7; | |
const int StepA = 12; | |
const int DirA = 13; | |
void setup() { |
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
cd / | |
mkdir minecraft | |
cd minecraft | |
curl -o craftbukkit.jar https://download.getbukkit.org/craftbukkit/craftbukkit-1.19.2.jar | |
sudo apt install -y openjdk-18-jre-headless | |
java -jar craftbukkit.jar | |
nano eula.txt | |
java -jar craftbukkit.jar | |
stop -> Para parar el servidor |
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
<img src="URL de tu imagen 😉" height="0" width="0"> |
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
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from webdriver_manager.firefox import GeckoDriverManager | |
from time import sleep | |
chat = 'NOMBRE DEL CHAT' | |
times = NÚMERO DE VECES | |
message = 'MENSAJE' | |
driver = webdriver.Firefox(executable_path=GeckoDriverManager().install()) |
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
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from datetime import datetime | |
from time import sleep | |
from sys import exit | |
import pandas as pd | |
import random | |
# Basic config | |
driver = webdriver.Firefox(executable_path='/usr/local/bin/geckodriver') |
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
import openai | |
openai.api_key = "API-KEY" | |
conversation = "Human: Hello, who are you?\nAI: I am an AI created by OpenAI. How can I help you today?" | |
print(conversation) | |
i = 1 | |
while (i != 0): | |
question = input("Human: ") |
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
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from time import sleep | |
import random | |
# Configuración del driver | |
driver = webdriver.Firefox(executable_path='/usr/local/bin/geckodriver') | |
# Ir a instagram | |
sleep(2) |
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
sudo chmod a+rwx /var/www/trecnocloud | |
cd /var/www/trecnocloud | |
wget https://download.nextcloud.com/server/installer/setup-nextcloud.php | |
sudo apt install php-zip php-xml php-intl curl php-curl php-mbstring php-gd | |
sudo systemctl reload apache2 | |
sudo mysql | |
CREATE USER 'admin'@'localhost' IDENTIFIED BY '12345'; | |
CREATE DATABASE trecnocloud; | |
GRANT ALL PRIVILEGES ON trecnocloud.* TO 'admin'@'localhost'; |
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
sudo apt update | |
sudo apt install apache2 | |
sudo apt install mysql-server | |
sudo mysql_secure_installation | |
no | |
yes | |
no | |
yes | |
no | |
sudo mysql |
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
var token = 'TOKEN DE TELEGRAM'; | |
var telegramUrl = 'https://api.telegram.org/bot' + token; | |
var spreadsheetId = 'ID DEL SPREADSHEET'; | |
function doGet(e) { | |
return HtmlService.createHtmlOutput('Hola'); | |
} | |
function sendText(id, answer) { | |
var url = telegramUrl + '/sendMessage?chat_id=' + id + '&text=' + answer; |
NewerOlder