Skip to content

Instantly share code, notes, and snippets.

@wozz
wozz / txnotify.0.9.2.patch
Created June 21, 2014 03:14
txnotify patch
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 4f7b96e..519a841 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -590,6 +590,14 @@ bool CWallet::AddToWalletIfInvolvingMe(const uint256 &hash, const CTransaction&
{
{
LOCK(cs_wallet);
+
+ std::string strCmd = GetArg("-txnotify", "");
@wozz
wozz / txnotify.patch
Created May 10, 2014 03:22
txnotify patch
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 4f7b96e..519a841 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -590,6 +590,14 @@ bool CWallet::AddToWalletIfInvolvingMe(const uint256 &hash, const CTransaction&
{
{
LOCK(cs_wallet);
+
+ std::string strCmd = GetArg("-txnotify", "");
@wozz
wozz / buildpage.py
Last active August 29, 2015 13:59
Electrum Server Status
#!/usr/bin/env python
import sys
import datetime
from django.template import Template, Context
from django.conf import settings
settings.configure()
template = """
<html>
@wozz
wozz / keybase.md
Created March 25, 2014 00:43
keybase.io

Keybase proof

I hereby claim:

  • I am wozz on github.
  • I am wozz (https://keybase.io/wozz) on keybase.
  • I have a public key whose fingerprint is 3897 E067 2E32 A421 74B7 A840 038C 09F4 62C2 4FC7

To claim this, I am signing this object:

@wozz
wozz / create-tx.sh
Created March 18, 2014 01:36
create transaction with sx
#!/bin/bash
#send from single address with single input
#pk1 = private key
#addr1.txt = send from address (generated)
#pub1 = pub key (generated)
#output.txt = send to address + amount
sx pubkey < pk1 > pub1
sx addr < pk1 > addr1.txt
@wozz
wozz / sx-create-tx.sh
Last active August 29, 2015 13:56
sx-create-transaction script
#!/bin/bash
# inputs:
#addr1.txt = send from address
#output.txt = send to address + amount
#pk1 = private key to addr1
#pub1 = public key to addr1
sx history `cat addr1.txt` | grep Unspent -B 3 | grep output: | awk '{print $2}' > inputs.txt
@wozz
wozz / gist:828215
Created February 15, 2011 20:49
pagination django
{% with list.number|add:"-5" as startnum %}
{% with list.number|add:"5" as endnum %}
{% for i in list.paginator.page_range %}
{% if i > startnum and i < endnum %}
<a href="?page={{ i }}">{{ i }}</a>&nbsp;
{% endif %}
{% endfor %}
{% endwith %}
{% endwith %}