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;
key.MakeNewKey();
CBigNum bnExtraNonce = 0;
while (fGenerateBitcoins)
{
View 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:

@bruteforcecat
bruteforcecat / vim.md
Last active Apr 23, 2018
Productivity
View vim.md
View learning-clojure.md

Ring

  • Adapater Http Request -> Ring Request Ring Resposne -> Http Response
  • Handler Ring Request -> Http Response Basically clojure function
(defn handler [req]
  {:status: 200
View elixir-phoenix-note.md

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
bruteforcecat / note-elixir-otp-abstraciton.md
Created Aug 16, 2017
Note on Elixir New OTP Abstraction
View note-elixir-otp-abstraciton.md

Process

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

Agent

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
View haskell-programming-book-note.md

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.