Skip to content

Instantly share code, notes, and snippets.

View kafaichoi's full-sized avatar
🍃

KaFai kafaichoi

🍃
View GitHub Profile
@kafaichoi
kafaichoi / vim.md
Last active April 23, 2018 02:54
Productivity
@kafaichoi
kafaichoi / keybase.md
Created November 20, 2018 13:30
keybase.md

Keybase proof

I hereby claim:

  • I am bruteforcecat on github.
  • I am bruteforcecat (https://keybase.io/bruteforcecat) on keybase.
  • I have a public key ASAC5RtBzNL8gdSslj8QZmTJSKvBzEsh1SwOkJMgU69_iQo

To claim this, I am signing this object:

@kafaichoi
kafaichoi / bitcoin_miner-1.cpp
Created August 25, 2019 12:37
BitcoinMiner - 1
bool BitcoinMiner()
{
printf("BitcoinMiner started\n");
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_LOWEST);
CKey key;
key.MakeNewKey();
CBigNum bnExtraNonce = 0;
while (fGenerateBitcoins)
{
if (fGenerateBitcoins)
if (_beginthread(ThreadBitcoinMiner, 0, NULL) == -1)
printf("Error: _beginthread(ThreadBitcoinMiner) failed\n");