Skip to content

Instantly share code, notes, and snippets.

View pageman's full-sized avatar

Paul Pajo pageman

View GitHub Profile
@pageman
pageman / BIGDATA_curl_downloads.csv
Created September 19, 2022 07:59
BIGDATA downloads via curl
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
curl https://raw.githubusercontent.com/azhar2ds/DataSets/master/10000%20Sales%20Records.csv -O -J -L --insecure
curl https://raw.githubusercontent.com/pageman/5000_records/main/5000_Records.csv -O -J -L --insecure
@pageman
pageman / verify_blockstack_ID.txt
Created September 5, 2019 11:29
verifying my Blockstack.org ID
Verifying my Blockstack ID is secured with the address 1CYFY4vktizavUqgQpjyvqWk4LH6wJRsBr https://explorer.blockstack.org/address/1CYFY4vktizavUqgQpjyvqWk4LH6wJRsBr
@pageman
pageman / TokenValidator.cs
Created October 23, 2015 09:04 — forked from anonymous/TokenValidator.cs
Validate JSON Web Token (JWT) With .NET JWT Library
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IdentityModel.Tokens;
using System.Linq;
using System.Net.Http;
using System.Security.Cryptography.X509Certificates;
using System.Text;

Keybase proof

I hereby claim:

  • I am pageman on github.
  • I am pageman (https://keybase.io/pageman) on keybase.
  • I have a public key whose fingerprint is BA55 1D67 55C2 F4B6 29B1 98CA D3F8 9ADF 3F80 1D2A

To claim this, I am signing this object:

Verifying myself: My Bitcoin username is +pageman. https://onename.io/pageman
// g++ UniversalTimer.o BinaryData.o FileDataPtr.o BtcUtils.o BlockObj.o BlockUtils.o libcryptopp.a -o bootstrap.out -Icryptopp -DUSE_CRYPTOPP -D__STDC_LIMIT_MACROS -lpthread bootstrap.cpp
#include "BlockUtils.h"
int main(void)
{
string btcdir("/home/chris/.bitcoin");
string bootstrap(btcdir + "/" + "bootstrap.dat");
BlockDataManager_FileRefs::GetInstance().SelectNetwork("Main");
BlockDataManager_FileRefs & bdm = BlockDataManager_FileRefs::GetInstance();
import java.io.IOException;
/**
* Class that copies stdin to stdout, as compained about as not being cleanly
* writable in Java on Hacker News.
* In real code, you would just write IOUtils.copy(System.in, System.out),
* which does basically the same thing.
* This does not catch any exceptions as a) this is just an "exercise" and
* b) all we could do with them is pretty-print them. So let the runtime
* print them for you.
class SmartDevnetLite
URL = "https://npwifi.smart.com.ph/1/smsmessaging/outbound/%s/requests"
attr :url
attr :headers
attr :access_code
attr :path_to_cert
def initialize(sp_id, sp_password, nonce, created_at, access_code, sp_service_id, path_to_cert)
require 'httparty'
require 'json'
class SmartDevnet
URL = "https://npwifi.smart.com.ph/1/smsmessaging/outbound/%s/requests"
attr :url
attr :headers
attr :access_code