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
kill $(ps aux | grep '[p]hp' | awk '{print $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
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="description" content="" /> | |
<meta name="author" content="apibrasil" /> | |
<meta name="generator" content="APIBrasil" /> | |
<title>APIBrasil - Examples</title> |
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
iptables -A INPUT -s 200.219.26.252 -j ACCEPT # libera | |
iptables -D INPUT -s 200.219.26.252 -j DROP # remove | |
iptables -A INPUT -s 5.154.174.142 -j DROP # block | |
iptables -L -n --line # list |
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 chown -R www-data:www-data /path/to/your/laravel/root/directory | |
sudo usermod -a -G www-data USER_SYSTEM | |
config/logging.php | |
'daily' => [ | |
'driver' => 'daily', | |
'path' => storage_path('logs/laravel.log'), | |
'level' => 'debug', | |
'days' => 14, | |
'permission' => 0775, |
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
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse |
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
#deb cdrom:[Debian GNU/Linux testing _Buster_ - Official Snapshot amd64 NETINST 20190618-22:45]/ buster contrib main non-free | |
deb http://deb.debian.org/debian/ buster main non-free contrib | |
deb-src http://deb.debian.org/debian/ buster main non-free contrib | |
deb http://security.debian.org/debian-security buster/updates main contrib non-free | |
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free | |
# buster-updates, previously known as 'volatile' | |
deb http://deb.debian.org/debian/ buster-updates main contrib non-free |
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
RUN apk add chromium | |
RUN apk update && apk add wget | |
RUN npm install pm2 -g | |
RUN apk add wget | |
RUN apk add git |
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
# Requirements: | |
# Node Installed | |
# Safe User that is running as node | |
#1) Install pm2 | |
sudo npm install -g pm2 | |
#2) Set-up PM2 to autostart upon server rebooting | |
#sudo env PATH=$PATH:/usr/local/bin pm2 startup <platform> -u <safe_user_not_root> | |
sudo env PATH=$PATH:/usr/local/bin pm2 startup ubuntu -u ubuntu |
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
TUTORIAL SIMPLES NGINX | |
1º - vai em... | |
cd /etc/nginx/sites-available/ | |
2º - cria o arquivo | |
nano proxy_myzap | |
3º - cola o conteudo do link | |
https://gist.github.com/jhowbhz/689322bedd2e2487b97aa57ffe0a732d |
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
/****************************************************************************************************************/ | |
/* Antes de utilizar esses codigos, inicie a sessão em https://whatsapp-v2.apibrasil.com.br/start */ | |
/****************************************************************************************************************/ | |
async function getProfilePic(session, sessionkey, number) { | |
let server = `https://whatsapp-v2.apibrasil.com.br/`; // servidor do whatsapp você pode obter em apigratis.com.br | |
let body = JSON.stringify({ | |
"session": `${session}`, // session do whatsapp, você deve ir até o endpoint `https://whatsapp-v2.apibrasil.com.br/start` para ler o qr-code e obter a session | |
"number": `${number?.replace(/[^0-9]/g,'')}`, // numeero limpo |