Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Fabian Jahr fjahr

🏠
Working from home
  • Freelancer
  • Berlin
Block or report user

Report or block fjahr

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 keybase.md

Keybase proof

I hereby claim:

  • I am fjahr on github.
  • I am fjahr (https://keybase.io/fjahr) on keybase.
  • I have a public key whose fingerprint is CC3E 7047 449F B0CF AF2E E759 445A AC9B B405 55D1

To claim this, I am signing this object:

View how_to_use_react-intl_with_phraseapp.md

How to use React-intl with PhraseApp

1. Keep your messages in a separate JSON file.

You can use nesting for React-intl v1 or omit it to comply with v2.

en-US.json

{
  'hello_world': 'Hello World'
View .cVimrc
let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*", "@https://mail.google.com/mail/*"]
View blockstack.txt
Verifying my Blockstack ID is secured with the address 1DMWKLoHuFQU5QHAa2KyQwEqsyLP5sxXLN https://explorer.blockstack.org/address/1DMWKLoHuFQU5QHAa2KyQwEqsyLP5sxXLN
@fjahr
fjahr / pb.py
Last active Apr 20, 2018
Minimize Change Output for Bitcoin transactions, naive implementation
View pb.py
"""
Suppose you are given a list of possible Bitcoin that you control (inputs). You
need to pay someone exactly 0.71 BTC. How would you select exactly 2 inputs in
such a way as to minimize the change output if you could ignore fees? Write a
python function that selects the two inputs.
"""
from itertools import permutations
TEST_INPUTS = [0.21, 0.59, 1.34, 3.45, 0.3, 0.84, 0.53, 0.62, 0.70, 0.21, 0.44,
0.28, 0.39, 200.9, 4.34]
@fjahr
fjahr / debug.ex
Created Apr 24, 2018
Debugging Plug as a last resort for debugging nasty production issue in Elixir/Phoenix/AWS ECS Fargate
View debug.ex
defmodule MyApp.Plugs.Debug do
@behaviour Plug
require Logger
def init(default), do: default
def call(conn, _) do
case conn.request_path do
"/path/to/error" ->
@fjahr
fjahr / lightning_messages.md
Last active Feb 2, 2019
List of all Lightning Network Message Types
View lightning_messages.md

Lightning Network Message Types

List of all Lightning Network Message Types for easy & quick overview.

Setup & Control (0 - 31)

Messages related to connection setup, control, supported features, and error reporting.

@fjahr
fjahr / lightning_mw_messages.md
Last active Feb 11, 2019
List of all Lightning Network MW Message Types
View lightning_mw_messages.md

Lightning Network MW Message Types

List of all Lightning Network Message Types for easy & quick overview.

Messages with strikethrough style exist in the original RFCs but are currently removed in Lightning MW.

Setup & Control (0 - 31)

Messages related to connection setup, control, supported features, and error reporting.

@fjahr
fjahr / bfgminer.md
Last active Jul 7, 2019
Solo CPU Mining on MacOS using BFG Miner
View bfgminer.md
You can’t perform that action at this time.