Skip to content

Instantly share code, notes, and snippets.

View delta1's full-sized avatar
🔪
hacking

Byron Hambly delta1

🔪
hacking
View GitHub Profile
--- oldfile.txt 2011-08-12 14:46:45 +0200
+++ newfile.txt 2011-08-12 14:47:49 +0200
@@ -1,4 +1,6 @@
-The original
+The new
file
-had 4
+now has 6
lines
+of code
@delta1
delta1 / snake.js
Created December 9, 2011 10:31
snake
function P(x, y) {
return {
x: x,
y: y
}
}
function R() {
return {
x: Math.floor(Math.random() * 16),
y: Math.floor(Math.random() * 16)
@delta1
delta1 / pedantically_commented_playbook.yml
Last active September 11, 2015 10:18 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
# JS files

Keybase proof

I hereby claim:

  • I am delta1 on github.
  • I am byronhambly (https://keybase.io/byronhambly) on keybase.
  • I have a public key whose fingerprint is C5CC 6DFA E6D9 1105 AB26 A509 7824 E5C7 AD57 D098

To claim this, I am signing this object:

@delta1
delta1 / script.zsh
Last active September 11, 2020 09:47
Tari stress test log script
#!/bin/zsh
# you need RipGrep installed `brew install ripgrep`
# run this script in your Tari base node log directory (normall ~/.tari/log) - you might need to make it executable first `chmod +x script.zsh`
# make sure to remove log entries outside of the date/times you're searching for...
# -------------------------------- Receiver --------------------------------
echo Transaction Replies queued with Message
rg -iu "^.*?(?:\b|_)Transaction Reply(?:\b|_).*?(?:\b|_)queued with Message(?:\b|_).*?$" ./base_layer*.log | wc -l
# -------------------------------- Receiver --------------------------------
// Copyright 2020. The Tari Project
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
// following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
// disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
// following disclaimer in the documentation and/or other materials provided with the distribution.
@delta1
delta1 / gitlog.zsh
Last active October 29, 2020 13:46
formatted merge commits since the previous tag
git log --pretty=format:"%s" $(git describe --tags --abbrev=0 \@\^)..\@ |
sed '/Merge #/!d' |
sed 's/Merge #//' |
sed 's/://' |
sed -E 's/[0-9]+/[#&](https:\/\/github.com\/tari-project\/tari\/pull\/&)/' |
sed 's/.*/- &/g'
@delta1
delta1 / bug.sh
Created January 8, 2021 07:14
macos `open` command not passing arguments via `--args`
#!/bin/zsh
# make this executable with `chmod +x ./bug.sh`
#
LS=$(which ls)
open -a terminal $LS --args -l
# ls will open in a new terminal, but the `-l` argument is not passed to it
# terminal only runs `/bin/ls ; exit;`

Minglejingle: Scalable blockchain with non-interactive transactions

This article describes the Minglejingle (MJ) protocol: a redesign of Mimblewimble (MW) for non-interactive transactions. It preserves the security and privacy properties, supports payment proofs, non-interactive coinjoin and cut-through of spent outputs.

1. Introduction

Blockchains are distributed ledgers that preserve the transaction history so that new network participants can, at any point in the future, verify these two security properties:

  1. Supply security: No counterfeit coins have been created.
  2. Ownership security: No coins have been moved without the authorization by the owner of the associated private keys.