Assuming PHP is compiled with debug enabled.
$ gdb /usr/sbin/php-fpm
Then:
r --nodaemonize --fpm-config /etc/php7/fpm/php-fpm.conf
var e = new Array; | |
e.AF = "Afghanistan", | |
e.AL = "Albania", | |
e.DZ = "Algeria", | |
e.AS = "American Samoa", | |
e.AD = "Andorra", | |
e.AO = "Angola", | |
e.AI = "Anguilla", | |
e.AQ = "Antarctica", | |
e.AG = "Antigua And Barbuda", |
<?php | |
$webhook = fopen('php://input', 'rb'); | |
$webhook_content = ""; | |
while (!feof($webhook)) { | |
$webhook_content .= fread($webhook, 4096); | |
} | |
fclose($webhook); | |
$webhook_data = json_decode($webhook_content, true); | |
$signature = $webhook_data["signature"]; |
Assuming PHP is compiled with debug enabled.
$ gdb /usr/sbin/php-fpm
Then:
r --nodaemonize --fpm-config /etc/php7/fpm/php-fpm.conf
FROM php:7.4-fpm-alpine | |
WORKDIR "/application" | |
# Install essential build tools | |
RUN apk add --no-cache \ | |
git \ | |
yarn \ | |
autoconf \ | |
g++ \ | |
make \ |
#!/bin/bash | |
echo | |
echo "Welcome to the Bitcoin address generator!" | |
echo "input private key (32 bytes, hex format)" | |
read priv | |
echo "" | |
echo "#####################################" | |
# priv=0C28FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D # Testing only |
var request = require('request'); | |
const bitcoin = require('bitcoinjs-lib'); | |
var buffer = require('buffer'); | |
const bitcoinNetwork = bitcoin.networks.testnet; | |
var rootUrl = "https://api.blockcypher.com/v1/btc/test3"; | |
//create wallets | |
const TestNet = bitcoin.networks.testnet3; |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
<?php | |
namespace App\Helpers\Mail; | |
/** | |
* This is a complete rewrite to use the Mandrill API | |
* | |
* @author fhferreira | |
* @version 2020-12-23 | |
* @link https://mandrillapp.com/api/docs/messages.JSON.html#method=send |
<?php | |
$usuario = 'sigep'; | |
$senha = 'n5f9t8'; | |
$contrato = '9912208555'; | |
$cartao = '0057018901'; | |
$context = stream_context_create(array( | |
'ssl' => array( | |
'verify_peer' => false, | |
'verify_peer_name' => false, |
<?php | |
/* | |
This is a demo task. | |
Write a function that, given an array A of n integers, returns the smallest positive integer (greater than 0) that does not occur in A. | |
For example, given A = [1, 3, 6, 4, 1, 2], the function should return 5. | |
Given A = [1, 2, 3], the function should return 4. | |
Given A = [-1, -3], the function should return 1. |