Skip to content

Instantly share code, notes, and snippets.

learning type

KaFai bruteforcecat

learning type
Block or report user

Report or block bruteforcecat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View BitcoinMiner0.cpp
if (fGenerateBitcoins)
if (_beginthread(ThreadBitcoinMiner, 0, NULL) == -1)
printf("Error: _beginthread(ThreadBitcoinMiner) failed\n");
View bitcoin_miner-1.cpp
bool BitcoinMiner()
printf("BitcoinMiner started\n");
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_LOWEST);
CKey key;
CBigNum bnExtraNonce = 0;
while (fGenerateBitcoins)

Keybase proof

I hereby claim:

  • I am bruteforcecat on github.
  • I am bruteforcecat ( on keybase.
  • I have a public key ASAC5RtBzNL8gdSslj8QZmTJSKvBzEsh1SwOkJMgU69_iQo

To claim this, I am signing this object:

bruteforcecat /
Last active Apr 23, 2018


  • Adapater Http Request -> Ring Request Ring Resposne -> Http Response
  • Handler Ring Request -> Http Response Basically clojure function
(defn handler [req]
  {:status: 200

Elixir = Ruby + Erlang + Clojure

Ruby: Developer Happiness Erlang: OTP Powerful Clojure: One of the best designed language. Elixir: Programmer focused, functional but pragmatic, standard toolset

Elixir Design priniciples

  1. Phoenix is not our application. Phoenix 1.3 is just web interface.
  2. Embrace state outside of the database. process holding state. OK to have stateful server
  3. If it's concurrent, extract it into an OTP application.
View gist:ab625417c563bc330ea805efed756a5b
- install kerl
- install wxmac `brew install wxmac`
- add ~/.kerlrc `echo "KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac --enable-shared-zlib --with-ssl=/usr/local/opt/openssl --enable-hipe --enable-smp-support --enable-threads --enable-kernel-poll --with-wx"" > ~/.kerlrc`
- kerl build 20.0 20.0
- kerl install 20.0 ~/erlang/erlang_20_0
- add this `~/erlang/erlang_20_0` to ~/.zshrc
bruteforcecat /
Created Aug 16, 2017
Note on Elixir New OTP Abstraction


Process is the concurrency primitive in ErlangVM To have State, we need server process which basically a recursive function call to keep it alive.


Simple wrapper around state. Keep state.

{:ok, agent} = Agent.start_link fn -> [] end
View gist:fa74d68d5cb8841d8c92ff1c50d4177b
## Way of presenting idea
- Flowcharts
- Pseudocode
- Math Model
## Complexity
Time Complexity.
Memory Complexity
## Strategy

Ch14 Testing

Unit Testing & Propoerty Testing

Property Testing

Propety tests test the formal propoerties of programs.

Ch15 Monoid

In Haskell, we recognize abstract pattern in code which have well-defined, lawful representation in math. These abstractions is described as algebra, by which we mean operations and the set(the type they operate on) they operate over.

You can’t perform that action at this time.