!!! N脙O ESQUE脟A DE FAZER O BACKUP ANTES DE TUDO !!!
df -hT
Isso pode ser 煤til para verificar a disponibilidade de dispositivos de armazenamento
#instale o nginx e o certbot | |
sudo apt update && apt install nginx python3-certbot-nginx -y | |
#Vamos criar o arquivo. | |
nano /etc/nginx/sites-available/api | |
#Cole l谩 dentro do arquivo Altere a porta que desejar :3333 ou :#### | |
upstream myzap-v2 { | |
server 127.0.0.1:3333; | |
keepalive 8; |
sudo apt install gdebi | |
Instale o Google Chrome Stable 64 bits: | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo gdebi google-chrome* |
# Thanks | |
# https://www.digitalocean.com/community/tutorials/how-to-increase-pagespeed-score-by-changing-your-nginx-configuration-on-ubuntu-16-04 | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
gzip on; | |
gzip_comp_level 5; | |
gzip_min_length 256; |
https://gateway.apibrasil.io/api/v2/login
sendtext.php
<?php
$curl = curl_init();
sudo swapon --show | |
sudo fallocate -l 25G /swapfile1 | |
ls -lh /swapfile1 | |
sudo chmod 600 /swapfile1 | |
ls -lh /swapfile1 | |
sudo mkswap /swapfile1 | |
sudo swapon /swapfile1 | |
sudo swapon --show | |
sudo cp /etc/fstab /etc/fstab.bak | |
echo '/swapfile1 none swap sw 0 0' | sudo tee -a /etc/fstab |
sudo apt install cpulimit htop | |
cpulimit -e mysqld -l 50 & | |
htop |
redis-cli -h 127.0.0.1 -p 6379 slaveof no one |
$response = Http::withDigestAuth($username, $pass) | |
->withHeaders([ | |
'Content-Type' => 'application/json', | |
'Accept' => 'application/json', | |
]) | |
->withOptions([ | |
'verify' => false, | |
'query' => [ | |
'info_type' => 'number,type,slot,iccid,imei,signal', | |
'port' => '28,29,30' |