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
#{"rootDirectory":"/home/atendeai-teste/htdocs/teste.atendeai.site/public","phpVersion":"8.2"} | |
server { | |
listen 80; | |
listen [::]:80; | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
{{ssl_certificate_key}} | |
{{ssl_certificate}} | |
{{server_name}} | |
{{root}} |
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
# All IPv4 | |
client 0.0.0.0/0 { | |
secret = 12345 | |
shortname = name | |
} | |
# All IPv6 | |
client ::/0 { | |
secret = 12345 | |
shortname = name | |
} |
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
No Linux criar a rota estatica | |
ip route add 192.168.0.0/24 via 10.0.40.100 dev ppp0 | |
No mikrotik acionar uma rota estatica com Dst Address 10.0.40.0/24 apontando para IP do servidor linux ex: 10.0.40.1 | |
No mikrotik criar regra de NAT | |
No Roteador da rede Criar uma rota estatica |
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
# Configure freeRadius | |
# https://extremeshok.com/5486/debian-7-freeradius-server-mysql-authentication/ | |
# http://tweakpalace.com/eap-tls-freeradius2-openwrt/ | |
# http://deployingradius.com/documents/protocols/compatibility.html | |
# http://deployingradius.com/scripts/eapol_test/ | |
# eapol_test: https://ttboa.wordpress.com/2014/09/26/freeradius-on-debian-7/ | |
# http://networkradius.com/doc/FreeRADIUS-Implementation-Ch6.pdf | |
# Tested on freeRadius 2.2.5 - Debian jessie |
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
/etc/freeradius/sites-available/ | |
Na guia post-auth | |
Inserir as seguintes linhas | |
# IMPLEMENTAÇÕES PERSONALIZADAS | |
if("%{sql:SELECT COUNT(*) FROM radmacauth WHERE macaddr = '%{Called-Station-Id}' AND username = '%{User-Name}'}" >= 1 ){ |
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
[ | |
{ | |
"Codigo":"PED0221-1", | |
"Data":"2021-02-20", | |
"Hora":"14:29:18", | |
"Delivery":"true", | |
"Pagamento":"Dinheiro", | |
"Troco":"0.00", | |
"Taxas":"6.00", | |
"Adicionais":"15", |
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
if (Status_B == "S") | |
{ | |
try | |
{ | |
ACBrBAL _ACBrBAL = new ACBrBAL(); | |
string Modelo_B = ini.IniReadValue("PESO", "Modelo"); | |
string Porta_B = ini.IniReadValue("PESO", "Porta"); | |
string Velocidade_B = ini.IniReadValue("PESO", "Velocidade"); |
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
#region Configurações para Balanças | |
public void Carregar_Config_Balanca() | |
{ | |
// Modelo da Balança | |
string Modelo_B = ini.IniReadValue("PESO", "Modelo"); | |
if (string.IsNullOrEmpty(Modelo_B)) | |
{ |
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
então execute o comando abaixo para mostrar o tamanho de cada diretório | |
du -sch * |
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
UPDATE tb_clientes | |
SET | |
cpf_cnpj = REPLACE(cpf_cnpj,'-','') | |
WHERE | |
id > 1 |
NewerOlder