Skip to content

Instantly share code, notes, and snippets.

@mkf
mkf / swapreplace.pl
Last active December 21, 2017 16:55
nth([],_,_) :- !, fail.
nth([X],0,X).
nth([_],0,_) :- !, fail.
nth([X|_],0,X).
nth([_|_],0,_) :- !, fail.
nth([_|Rest],Index,X) :- NewIndex is Index-1, nth(Rest,NewIndex,X), !.
onpos(B,[I],X) :- nth(B,I,X).
onpos(B,[I|R],X) :- nth(B,R,A), !, onpos(A,R,X), !.
%onpos(Board,[Rank, File],X) :- nth(Board,Rank,Elements), !, % if we have the nth rank already, there is no other nth rank in Board
% nth(Elements, File, X), !.
mf  ~  java -Dorg.slf4j.simpleLogger.defaultLogLevel=TRACE -jar Pobrane/wallet-key-tool-1.4.2.jar
[Thread-0] INFO prof7bit.bitcoin.wallettool.core.WalletKeyTool - trying import strategy WalletDumpHandler
[Thread-0] DEBUG prof7bit.bitcoin.wallettool.fileformats.WalletDumpHandler - trying to read file: /home/mf/wallet.aes.json
[Thread-0] INFO prof7bit.bitcoin.wallettool.core.WalletKeyTool - WalletDumpHandler said: file did not contain any keys
[Thread-0] TRACE prof7bit.bitcoin.wallettool.core.WalletKeyTool - attempt to use WalletDumpHandler failed
java.lang.Exception: file did not contain any keys
at prof7bit.bitcoin.wallettool.fileformats.WalletDumpHandler.readLines(WalletDumpHandler.java:168)
at prof7bit.bitcoin.wallettool.fileformats.WalletDumpHandler.readUnencrypted(WalletDumpHandler.java:96)
at prof7bit.bitcoin.wallettool.fileformats.WalletDumpHandler.load(WalletDumpHandler.java:54)
at prof7bit.bitcoin.wallettool.core.WalletKeyTool.tryLoadWithStrategy(WalletKeyTool.java:
@mkf
mkf / mmih.go
Created August 6, 2017 12:46
miscale-manual-input-helper
package main
import (
"bufio"
"encoding/csv"
"errors"
"fmt"
"os"
"regexp"
"strconv"

Keybase proof

I hereby claim:

  • I am archiet on github.
  • I am archiet (https://keybase.io/archiet) on keybase.
  • I have a public key ASD22eHOXLNuyWFznqgEyKQ-3aJHQhD4pKL0WgdNvE7I_wo

To claim this, I am signing this object:

@mkf
mkf / openpgp.txt
Created March 19, 2017 20:14
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:6acf4fcee9bcde975c814a49599d6671880d22d6]
@mkf
mkf / openpgp.txt
Created March 19, 2017 20:14
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:6acf4fcee9bcde975c814a49599d6671880d22d6]
@mkf
mkf / openpgp.txt
Created February 27, 2017 10:29
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:6acf4fcee9bcde975c814a49599d6671880d22d6]
@mkf
mkf / openpgp.txt
Created February 26, 2017 21:31
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:6acf4fcee9bcde975c814a49599d6671880d22d6]
@mkf
mkf / openpgp.txt
Created February 26, 2017 21:31
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:6acf4fcee9bcde975c814a49599d6671880d22d6]
@mkf
mkf / openpgp.txt
Created February 26, 2017 21:31
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:6acf4fcee9bcde975c814a49599d6671880d22d6]