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 Discord = require("discord.js"); //baixar a lib | |
| const client = new Discord.Client(); | |
| const config = require("./config.json"); | |
| client.on("ready", () => { | |
| console.log('Olá mundo') | |
| }) | |
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
| version: '3' | |
| services: | |
| mongodb_container: | |
| image: mongo:latest | |
| container_name: 'MeuDB' | |
| restart: always # iniciar com o servidor | |
| environment: | |
| #MONGO_INITDB_DATABASE: namebanco | |
| MONGO_INITDB_ROOT_USERNAME: usuario |
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 db = require(`quick.db`) //chamando a LIVRARIA de database | |
| db.fetch(`money`)//fetch = ver o valor dessa database | |
| db.add(`money`,10) //add = adicionar o valor que vem depois da virgula | |
| db.subtract(`money`,10)//subtract = retira o valor que vem depois da virgula | |
| db.set(`money`,10)//set = seta o valor que vem depois da virgula | |
| //algumas let's e if's |
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 { exec } = require('child_process') | |
| function run(cmd) { | |
| return new Promise((resolve, reject) => { | |
| exec(cmd, (error, stdout, stderr) => { | |
| if (error) return reject(error) | |
| if (stderr) return reject(stderr) | |
| resolve(stdout) | |
| }) | |
| }) |
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
| #!/bin/bash | |
| #-- Finalidade: Listar o IP e o NOME dos dispositivos conectados à rede | |
| #-- Distros...: Debian 9 Stretch, Kali Linux 2017.2 amd64 | |
| # Identificação da Distribuição | |
| distro=`cat /etc/*-release | grep PRETTY_NAME | cut -d "\"" -f2` | |
| echo -e "\n > Distribuição: $distro" | |
| # Conexoes | |
| echo -e "\n > Pesquisando conexões ativas..." |
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
| # OpenClaw | |
| OpenClaw is an open-source platform for building and running AI agents. It provides a local gateway that connects LLM providers, tools, and chat channels so you can automate workflows, operate assistants, and control agents from a Control UI. | |
| This template runs the OpenClaw Gateway with persistent data under `/home/discloud/data`. | |
| It also comes with the **Claude Code CLI** (`claude`) pre-installed and available in the container `PATH`. | |
| ## Access |
OlderNewer