Skip to content

Instantly share code, notes, and snippets.

View crukundo's full-sized avatar
🏠
Working from home

Rukundo crukundo

🏠
Working from home
View GitHub Profile
@mrousavy
mrousavy / withNoBundleCompression.js
Created February 15, 2025 18:15
Expo Config Plugin to disable JS bundle compression for faster app startup
const {withAppBuildGradle} = require('@expo/config-plugins')
/**
* A Config Plugin to disable bundle compression in Android build.gradle.
* This makes the Android app start faster - in our tests by 400ms!
* @param {import('@expo/config-plugins').ConfigPlugin} config
* @returns {import('@expo/config-plugins').ConfigPlugin}
*/
module.exports = function withNoBundleCompression(config) {
return withAppBuildGradle(config, androidConfig => {
@RubenSomsen
RubenSomsen / Silent_Payments.md
Last active July 29, 2025 15:58
Silent Payments – Receive private payments from anyone on a single static address without requiring any interaction or extra on-chain overhead

Silent Payments

Receive private payments from anyone on a single static address without requiring any interaction or extra on-chain overhead.

Update: This now has a BIP and WIP implementation

Overview

The recipient generates a so-called silent payment address and makes it publicly known. The sender then takes a public key from one of their chosen inputs for the payment, and uses it to derive a shared secret that is then used to tweak the silent payment address. The recipient detects the payment by scanning every transaction in the blockchain.

@ObjSal
ObjSal / bitcoin.conf
Last active June 21, 2024 19:57
Instructions how to setup lightning network and tor in macOS
# For a full bitcoin.conf example see:
# https://github.com/bitcoin/bitcoin/blob/master/share/examples/bitcoin.conf
# File stored in the external drive i.e. /Volumes/SSD/bitcoin.conf
# Change the data directory when running bitcoind or bitcoin-qt to the external drive
# $ bitcoind -datadir=/Volumes/SSD
# Authentication credentials created with rpcauth.py
# https://github.com/bitcoin/bitcoin/blob/master/share/rpcauth/rpcauth.py
@leenswitts
leenswitts / uganda_district_hash.json
Created March 17, 2021 07:40
List Of Districts In Uganda In JSON Format
[
{ "name": "Abim" },
{ "name": "Adjumani" },
{ "name": "Agago" },
{ "name": "Alebtong" },
{ "name": "Amolatar" },
{ "name": "Amudat" },
{ "name": "Amuria" },
{ "name": "Amuru" },
{ "name": "Apac" },
@jsmmth
jsmmth / flags.css
Last active July 8, 2025 13:58
CSS Flags
/* Flags */
.flag {
display: flex;
width: 28px;
height: 28px;
align-items: center;
justify-content: center;
}
.flag:after {
@pySilver
pySilver / admin.scss
Last active November 15, 2023 09:39
Integrates wagtail + wagtailmodeladmin + django-filter + django-autocomplete-light
/*
* ===================================================
* django-filter
* ===================================================
*/
.filter-form-header {
padding: 0;
h2 {
background-color: #fafafa;
@bretton
bretton / inbound-liquidity-ln.md
Last active March 11, 2025 09:14
How to get Inbound Liquidity on the Lightning Network

How to get Inbound Liquidity on the Lightning Network

There are several ways you can find inbound liquidity on LN.

1. Wait

If your node is up 24x7 and you have some outgoing channels, the network will connect to you if you simply wait.

However, it might take a couple of weeks to get a significant amount of incoming liquidity, and ideally you want your outgoing liquidity to match too.

@badri
badri / cbv_multiple_forms.html
Created January 18, 2018 04:03
Django multiple forms code with sample usage
{% extends "base.html" %}
{% block content %}
<form method="post">{% csrf_token %}
{{ forms.subscription }}
<input type="submit" value="Subscribe">
</form>
<form method="post">{% csrf_token %}
{{ forms.contact }}
<input type="submit" value="Send">
@bl4ck5un
bl4ck5un / responsive-semantic-ui.css
Created May 12, 2017 03:20
Responsive helpers (mobile-only etc.) for semantic-ui
/* Semantic UI has these classes, however they're only applicable to*/
/* grids, containers, rows and columns.*/
/* plus, there isn't any `mobile hidden`, `X hidden` class.*/
/* this snippet is using the same class names and same approach*/
/* plus a bit more but to all elements.*/
/* see https://github.com/Semantic-Org/Semantic-UI/issues/1114*/
/* Mobile */
@media only screen and (max-width: 767px) {
[class*="mobile hidden"],

A description of known problems in Satoshi Nakamoto's paper, "Bitcoin: A Peer-to-Peer Electronic Cash System", as well as notes on terminology changes and how Bitcoin's implementation differs from that described in the paper.

Abstract

The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power.