Skip to content

Instantly share code, notes, and snippets.

@humbertoroa
humbertoroa / keybase.md
Created November 2, 2019 02:37
keybase.md

Keybase proof

I hereby claim:

  • I am humbertoroa on github.
  • I am humbertoroa (https://keybase.io/humbertoroa) on keybase.
  • I have a public key ASDRxWg6kLAOFvgag_AlH6LCguPapyq8jxq-1vb-ia-bqAo

To claim this, I am signing this object:

{
"data": {
"relationships": {
"sender": {
"data": {
"type": "account",
"id": "70960946-cc83-4ce1-8071-03ed72ffb07e"
}
},
@humbertoroa
humbertoroa / dataErrorResult.json
Created February 3, 2019 04:20
toda call issue
[
// this is the data I am sending
{
"data": {
"relationships": {
"sender": {
"data": {
"type": "account",
"id": "70960946-cc83-4ce1-8071-03ed72ffb07e"
}
@humbertoroa
humbertoroa / gist:7576675
Last active December 28, 2015 23:09
My command line history from configuring cgminer to work with my butterfly labs jalapeno. reference: https://forums.butterflylabs.com/showwiki.php?title=Tutorials:ASIC+Mining+on+Ubuntu+and+other+Linux+distros&redirect=no
sudo apt-get update
sudo apt-get upgrade
cd ~
git clone git://github.com/ckolivas/cgminer.git cgminer
cd cgminer/
./autogen.sh
CFLAGS="-g -O2 -Wall -march=native" ./configure --enable-bflsc
make
sudo usermod -G plugdev -a your_linux_user_name
sudo cp 01-cgminer.rules /etc/udev/rules.d/
@humbertoroa
humbertoroa / gist:5476197
Last active December 16, 2015 18:09
Functions to use curl make server side GET and POST requests with SSL and PHP. You can get CA bundle file in PEM format from: http://curl.haxx.se/docs/caextract.html.
function doPost($url, $parameters = array(), $headers = array()){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
curl_setopt($ch, CURLOPT_CAINFO, realpath("../certs/cacert.pem"));
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);