Skip to content

Instantly share code, notes, and snippets.

View mbmaciel's full-sized avatar
🏠
Working from home since 2008

Mauricio Maciel mbmaciel

🏠
Working from home since 2008
View GitHub Profile
Verifying that I control the following Nostr public key: npub1pdn83s76f7wwehgdc7cw3ullxq8xdctg83zdgfut0yapa3g2c7cssw50dq
@mbmaciel
mbmaciel / wordpress-multi.config
Created June 2, 2023 12:00
Nginx with multiple wordpress sites
// Command to activate
sudo curl -X PUT --data-binary @/home/user/wordpress-multi.config --unix-socket /run/control.unit.sock http://localhost/config
{
"listeners": {
"127.0.0.1:8090": {
"application": "script_index_php"
},
"127.0.0.1:8091": {
@mbmaciel
mbmaciel / usd.xml
Created May 23, 2023 19:49
Corrigir bug do bot com AUD (bots feitos na binary)
colocar o campo currency_list , logo depois de durationtype_list.
O código fica como abaixo:
<field name="DURATIONTYPE_LIST">t</field>
<field name="CURRENCY_LIST">USD</field>
@mbmaciel
mbmaciel / nginx.conf
Created May 19, 2023 12:54
Bloqueio de imagens no nginx
location ~ .(gif|png|jpe?g)$ {
valid_referers none blocked dominio.com, *.dominio.com, outrodominio.com, *.outrodominio.com;
if ($invalid_referer) {
return 403;
}
@mbmaciel
mbmaciel / Atenticação Unobot
Created April 19, 2023 19:23
Authentication.php
<?php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');
header("Access-Control-Allow-Headers: X-Requested-With, Content-Type, Origin, Cache-Control, Pragma, Authorization, Accept, Accept-Encoding");
require_once('wp-load.php');
function generateRandomString($length = 10) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters);
@mbmaciel
mbmaciel / webhook.php
Created January 30, 2023 16:53
Webhook para eduzz
<?php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');
header("Access-Control-Allow-Headers: X-Requested-With, Content-Type, Origin, Cache-Control, Pragma, Authorization, Accept, Accept-Encoding");
require_once('wp-load.php');
require_once('wp-includes/user.php');
function generateRandomString($length = 10) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
@mbmaciel
mbmaciel / authentication.php
Last active March 2, 2023 18:53
Authenticate wp . With plan id 1 only
<?php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');
header("Access-Control-Allow-Headers: X-Requested-With, Content-Type, Origin, Cache-Control, Pragma, Authorization, Accept, Accept-Encoding");
$referer = parse_url($_SERVER['HTTP_REFERER']);
$allowedDomain = 'playbotpro.com';
/* if ($referer['host'] != $allowedDomain){
die ('Domain not allowed!');
<xml xmlns="http://www.w3.org/1999/xhtml" collection="false"> <variables> <variable type="" id="QS=ouQJBf5H]x~To_8ze">Preço fixo inicial</variable> <variable type="" id="E]|c^|)8f.^/s^`fdM#+">Meta</variable> <variable type="" id="m03mC1E%O+o|Am!^g|^#">Preço</variable> <variable type="" id="Ed`a7JH9^TWCt!ySC^xg">Ultimo numero</variable> <variable type="" id="Qw^gf=EcG}:];w@STR$^">perde</variable> <variable type="" id="RtbZBV:n,P^{X5j(LLY:">Limite</variable> <variable type="" id="e9vz4q~MDz@e1$^%wMdO">numero de perdas para mudar estratégia</variable> <variable type="" id=".}!brj:3:*z[C#tf4p6k">ultimo numero estrategia perda</variable> <variable type="" id="dA[eBPfPviPAIq@rNo)e">tempo</variable> <variable type="" id="dpH7AC^zt#Cp2I(dVyjk">ultimo numero estrategia inicial</variable> </variables> <block type="trade" id="trade" collapsed="true" x="-388" y="-801"> <field name="MARKET_LIST">synthetic_index</field> <field name="SUBMARKET_LIST">random_index</field> <field name="SYMBOL_LIST">R_10</field> <field name=
/*
Difina aqui as variáveis:
CR é o numero do cliente na deriv
NUMF é o digito que vai entrar na frente dos ids
*/
:root {
--CR: 'CR321479';
--NUMFC: 'ID: 93';
--NUMF: '\00a0 \00a0 93';
--NUMT: '1';
@mbmaciel
mbmaciel / aula-1.md
Created June 21, 2021 19:58 — forked from shuantsu-zz/aula-1.md
rocketseat-2021