Skip to content

Instantly share code, notes, and snippets.

View adizere's full-sized avatar
💭
kthxbye:)

Adi Seredinschi adizere

💭
kthxbye:)
View GitHub Profile
@adizere
adizere / alg-sample.tex
Last active September 26, 2016 13:22
Latex sample for algorithm implementation, as used in CS-451 Distributed Algorithms
\begin{alltt}
\normalfont
\textbf{Implements}:
UniformReliableBroadcast, \textbf{instance} \textit{urb}.
\textbf{Uses}:
IdealPerfectPointToPointLinks, \textbf{instance} \textit{idealpl}.
\textbf{upon event} \textit{\(<\)urb, Init\(>\)} \textbf{do}
\textit{delivered} := \(\emptyset\);
@adizere
adizere / 04-validators.yaml
Created November 6, 2019 13:10 — forked from thanethomson/04-validators.yaml
Tendermint Load Testing: 4-validator network
# A simple 4-validator test network, geographically dispersed.
id: testnet_04validators
templates:
base_tendermint_node: &base_tendermint_node
binary: v0.32.1
config_template: ./validator-config.toml
base_load_test: &base_load_test
method: "tm-bench"
@adizere
adizere / optimal-4-validators.toml
Last active December 3, 2019 15:53
TOML configuration for optimal performance / N=4
# This is a TOML config file.
# For more information, see https://github.com/toml-lang/toml
##### main base config options #####
# TCP or UNIX socket address of the ABCI application,
# or the name of an ABCI application compiled in with the Tendermint binary
proxy_app = "kvstore"
# A custom human readable name for this node

0x02269b7844d467098588a907e20cbf82a766b30a248b0ace08f1bbc035de8249

@adizere
adizere / 1-setup.md
Created November 15, 2022 10:14 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS

Methods of Signing with a GPG Key on MacOS

Last updated September 21, 2022

This Gist explains how to do this using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

There has been a number of comments on this gist regarding some issues around the pinentry-program and M1 Macs. I've finally gotten a chance to try things out on an M1 and I've updated the documentation in 2-using-gpg.md to reflect my findings.

@adizere
adizere / example.diff
Created March 21, 2024 20:31
Experiments with no WAL
diff --git a/testnets/example.toml b/testnets/example.toml
index f5e5971..71a37b5 100644
--- a/testnets/example.toml
+++ b/testnets/example.toml
@@ -1,20 +1,37 @@
vote_extensions_enable_height = 1
pbts_enable_height = 1
+# 100 * 1024 * 1024
+block_max_bytes = 104857600
[node.validator00]
@adizere
adizere / photos-date2title.scpt
Created January 11, 2016 08:51
AppleScript that modifies the title of photos to contain their respective date/time. Modifies the photos and videos in-place, directly in the Photos app. Execute with ScriptEditor.
(* select at least 1 image in Photos *)
tell application "Photos"
activate
set imageSel to (get selection)
if (imageSel is {}) then
error "Please select at least one image."
else
repeat with i from 1 to count of imageSel
set next_image to item i of imageSel
set capture_date to (the date of next_image)