sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt update && sudo apt install apt-transport-https ca-certificates curl software-properties-common && | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null && apt update -y | |
sudo apt install docker-ce -y | |
sudo systemctl status docker |
<!-- COMECE GRATIS AGORA APIBRASIL.COM.BR --> | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/css/select2.min.css" /> |
# how to install supervisor | |
apt install supervisor | |
# how to create config file supervisor | |
nano /etc/supervisor/conf.d/laravel-worker.conf | |
# set text in file, save and restart service | |
# service supervisor restart | |
[program:laravel-worker] |
find / -type f -size +1G -exec du -h {} + | sort -rh | head -n 1 |
docker rm -vf $(docker ps -aq) | |
docker rmi -f $(docker images -aq) | |
docker volume prune -f | |
// DOT NOT USE IS COMMAND IN PRODUCTION // | |
// IS ERASE YOUR FILES! AND VOLUMES! // |
https://cluster.apigratis.com/api/v2/login
sendtext.php
<?php
$curl = curl_init();
#! /bin/bash | |
MEMORY=$(free -m | awk 'NR==2{printf "%6.2f%%", $3*100/$2 }') | |
DISK=$(df -h | awk '$NF=="/"{printf "%6s", $5}') | |
CPU=$(top -bn1 | grep load | awk '{printf "%6.2f%%", $(NF-2)}') | |
MESSAGE="*Servidor*\n-----\n*Servidor:* APIS\n*Memória*: $MEMORY\n*Disco*:$DISK\n*CPU:*$CPU" | |
curl --location 'https://gateway.apibrasil.io/api/v2/whatsapp/sendText' \ | |
--header 'Content-Type: application/json' \ | |
--header 'DeviceToken: YOUR_DEVICE_TOKEN' \ |
#! /bin/bash | |
# Add crontab -e line */1 * * * * /opt/resource.sh | |
MEMORY=$(free -m | awk 'NR==2{printf "%6.2f%%", $3*100/$2 }') | |
DISK=$(df -h | awk '$NF=="/"{printf "%6s", $5}') | |
CPU=$(top -bn1 | grep load | awk '{printf "%6.2f%%", $(NF-2)}') | |
MESSAGE="*Servidor*\n-----\n*Servidor:* APIS\n*Memória*: $MEMORY\n*Disco*:$DISK\n*CPU:*$CPU" | |
curl --location -g --request POST 'https://youserver.api/sendText' \ | |
--header 'Content-Type: application/json' \ |
<?php | |
/****************************************************************************************************************/ | |
/* Antes de utilizar esses codigos, inicie a sessão em https://whatsapp-v2.apibrasil.com.br/start */ | |
/****************************************************************************************************************/ | |
try { | |
$curl = curl_init(); | |
curl_setopt_array($curl, array( |