Skip to content

Instantly share code, notes, and snippets.

View rakanalh's full-sized avatar

Rakan Al-Huneiti rakanalh

  • Open Source
  • Jordan
  • 23:14 (UTC +03:00)
  • X @rakanalh
View GitHub Profile
@rakanalh
rakanalh / citrea-risc0-to-bitvm-circuit_attestation.log
Created August 26, 2025 12:16
Attestation for Citrea Risc0 to BitVM Circuit MPC Phase 2 Trusted Setup ceremony
Hey, I'm rakanalh-195829 and I have contributed to the Citrea Risc0 to BitVM Circuit MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (verify_for_guest)
Contributor # 32
Contribution Hash: 525bf4c8 beeb3125 a6c132c5 e76d84fc
b3226344 f05a5494 8bad922b b3f9eac3
3be5178a 17bcb127 9076432c 8503b11b
670abb12 2d4982e1 922f3462 3f9b9c53
@rakanalh
rakanalh / update-alternatives.sh
Created March 24, 2025 18:28
Update alternatives - fedora
#!/usr/bin/env bash
# --slave /usr/bin/$1 $1 /usr/bin/$1-\${version} \\
function register_clang_version {
local version=$1
local priority=$2
update-alternatives \
--verbose \
@rakanalh
rakanalh / doom-version.txt
Last active September 20, 2024 11:15
Doom version
generated Sep 20, 2024 14:14:58
system Arch Linux Linux 6.10.10-arch1-1 x86_64
emacs 31.0.50 master eace68a32 EMACSDIR=~/.config/emacs/ EMACS=/usr/bin/emacs
doom 3.0.0-pre PROFILE=_@0 HEAD -> master c8a5e6ec1 2024-09-17 17:30:57 -0400 ~/.config/doom/
shell /usr/bin/zsh
features ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB
traits batch server-running envvar-file custom-file
modules :config use-package :completion company (vertico +icons) :ui doom doom-dashboard doom-quit (emoji +unicode) hl-todo indent-guides ligatures modeline ophints (popup +defaults) (treemacs +lsp) unicode (vc-gutter +pretty) vi-tilde-fringe window-select workspaces :editor (evil +everywhere) file-templates fold (format +onsave) multiple-cursors snippets
:emacs (dired +dirvish +icons) electric u
@rakanalh
rakanalh / .dir-locals.el
Created February 15, 2020 10:52
gitfmt formatting
((rustic-mode . ((setq rustic-format-on-save t)
(setq rustic-lsp-format nil)
(eval . (let ((gitfmt (expand-file-name "~/.cargo/bin/gitfmt")))
(setq lsp-rust-rustfmt-bin gitfmt)
(setq rustic-rustfmt-bin gitfmt))))))
@rakanalh
rakanalh / .dir-locals.el
Last active February 7, 2020 16:54
Disable format on save for rustic mode in specific projects
((rustic-mode . ((rustic-format-on-save . nil)
(rustic-format-trigger . nil)
(rustic-lsp-format . nil))))
import gevent
import gevent.monkey
gevent.monkey.patch_all()
if True:
import sys
from raiden.network.transport.matrix.client import GMatrixClient
from raiden.network.transport.matrix.utils import UserPresence
import gevent
import gevent.monkey
gevent.monkey.patch_all()
if True:
import sys
from raiden.network.transport.matrix.client import GMatrixClient
from raiden.network.transport.matrix.utils import UserPresence
@rakanalh
rakanalh / failure.log
Last active November 27, 2018 13:21
Matrix unable to join discovery room
2018-11-27 13:18:55 [debug ] JSONRPCClient created [raiden.network.rpc.client] available_nonce=0 client=Parity-Ethereum//v2.1.6-stable-491f17f149-20181114/x86_64-linux-gnu/rustc1.30.1 node=7dfc0dd6
Raiden is running in production mode
You are connected to the '17' network and the DB path is: /home/rakan/development/raiden/local/production/0x00a329c0648769A73afAc7F9381E08FB43dBEA72/data/node_7dfc0dd6/netid_17/network_acd2ed44/v14_log.db
2018-11-27 13:18:55 [debug ] Fetching available matrix servers [raiden.ui.app] available_servers=['https://raidentransport.exchangeunion.com', 'https://persephone.raidentransport.digitalvirtues.com', 'https://raidentransport.ki-decentralized.com', 'https://raidentransport.mycryptoapi.com']
2018-11-27 13:18:59 [debug ] Matrix homeserver RTT times [raiden.network.transport.matrix] rtt_times=[('https://raidentransport.ki-decentralized.com', 0.03457166666666667), ('https://persephone.raidentransport.digitalvirtues.com', 0.03535733333333333), ('https://raidentr
@rakanalh
rakanalh / exception.log
Created November 27, 2018 11:34
Matrix transport exception
2018-11-27 11:32:41 [debug ] JSONRPCClient created [raiden.network.rpc.client] available_nonce=3 client=Parity-Ethereum//v2.1.6-stable-491f17f149-20181114/x86_64-linux-gnu/rustc1.30.1 node=9734bc77
Raiden is running in production mode
You are connected to the '17' network and the DB path is: /home/rakan/.raiden/node_9734bc77/netid_17/network_7098b039/v14_log.db
2018-11-27 11:32:41 [debug ] Fetching available matrix servers [raiden.ui.app] available_servers=['https://raidentransport.exchangeunion.com', 'https://persephone.raidentransport.digitalvirtues.com', 'https://raidentransport.ki-decentralized.com', 'https://raidentransport.mycryptoapi.com']
2018-11-27 11:32:41 [debug ] Restoring from snapshot [raiden.storage.wal] from_state_change_id=1000 to_state_change_id=latest
2018-11-27 11:32:41 [debug ] Replaying state changes [raiden.storage.wal] num_state_changes=61
2018-11-27 11:32:41 [debug ] Restored state from WAL [raiden.raiden_service] last_restored_block=1374
@rakanalh
rakanalh / negative_balance.py
Created November 7, 2018 14:35
Negative balance
from eth_utils import to_canonical_address
from raiden.storage import serialize, sqlite
from raiden.storage.wal import WriteAheadLog
from raiden.transfer import channel, node, views
from raiden.transfer.architecture import StateManager
serializer = serialize.JSONSerializer()