repo com os arquivos produzidos na aula
yarn init -y
mkdir src
touch src/server.ts
yarn add express
yarn add @types/express ts-node-dev typescript -D
yarn tsc --init
Verifying that I control the following Nostr public key: npub1pdn83s76f7wwehgdc7cw3ullxq8xdctg83zdgfut0yapa3g2c7cssw50dq |
// 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": { |
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> |
location ~ .(gif|png|jpe?g)$ { | |
valid_referers none blocked dominio.com, *.dominio.com, outrodominio.com, *.outrodominio.com; | |
if ($invalid_referer) { | |
return 403; | |
} |
<?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); |
<?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'; |
<?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'; |
repo com os arquivos produzidos na aula
yarn init -y
mkdir src
touch src/server.ts
yarn add express
yarn add @types/express ts-node-dev typescript -D
yarn tsc --init