Skip to content

Instantly share code, notes, and snippets.

View thebalaa's full-sized avatar
❤️
Making self-hosting accessible to grandmothers everywhere.

Mo Balaa thebalaa

❤️
Making self-hosting accessible to grandmothers everywhere.
  • Founder @ Fractal Networks
  • United States
  • Twitter @fractal_mo
View GitHub Profile
@thebalaa
thebalaa / dpm-overview.md
Created July 31, 2023 18:52
DPM: The Distributed Package Manager
View dpm-overview.md

Distributed Package Manager (DPM)

Enhancing Accessibility and Efficiency of Package Distribution

Distributed Package Manager (DPM) is an innovative technology solution designed to leverage existing pull-through package caching registries, such as dev-pi and Docker's distribution, and supercharge their efficiency by introducing localized caching.

This project aims to significantly speed up the development process, reduce latency, and improve the overall accessibility of packages for developers worldwide. DPM achieves these objectives by caching all packages locally, thereby reducing the need to continuously fetch commonly used packages from global registries.

But DPM is not just a local package caching service. The real novelty of DPM lies in its unique integration with Matrix, a decentralized communication protocol. Each DPM instance can join a Matrix room, which acts as a mirror for a specific project's dependencies. In these rooms, participants broadcast their presence, the packages they possess, an

@thebalaa
thebalaa / wg-easy.md
Created February 24, 2020 04:48
wg-easy Overview
View wg-easy.md

wg-easy

wg-easy is a client-server model WireGuard configuration management system designed to automate the provisioning of WireGuard based VPN networks.

Example usage

$ wg-easy|wg-easy-set

Design overview

View gist:4d9bf6b4a708f515712a717c635ebefc
APP_NAME = Gitea: Git with a cup of tea
RUN_USER = vagrant
RUN_MODE = prod
[oauth2]
JWT_SECRET = oQHum5x3ee7H8WYlFRtF1QcXZ0ZBsPW9UfyV2cmLQ98
[security]
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1NzM0OTcyNTJ9.Ub8sNai8htBbH3QMT3V9GYO_jU0RhkeyG1hyYWREzB8
INSTALL_LOCK = true
View gist:9de41819f1e3c62bb6c3ca5853404ddd
{
"info": {
"version": "0.2.0",
"title": "Spring Labs Relay Provider",
"description": "APIs to interact with Relay Providers",
"termsOfService": "https://springlabs.com/terms/",
"contact": {
"name": "Spring",
"email": "apiteam@springlabs.com",
"url": "https://springlabs.com"
View gist:5c2a2073141965550be32d3c18f9443b
info:
version: 0.2.0
title: Spring Labs Relay Provider
description: APIs to interact with Relay Providers
termsOfService: https://springlabs.com/terms/
contact:
name: Spring
email: apiteam@springlabs.com
url: https://springlabs.com
swagger: "2.0"
View gist:7546c41a831d8b23aec4e225aaa9e144
leth_sil_localnet | INFO [09-21|07:05:29.000] Successfully sealed new block number=1819 hash=e99479…9c4be2
leth_sil_localnet | fatal error: concurrent map iteration and map write
leth_sil_localnet |
leth_sil_localnet | goroutine 3154792 [running]:
leth_sil_localnet | runtime.throw(0xf59684, 0x26)
leth_sil_localnet | /usr/local/go/src/runtime/panic.go:616 +0x81 fp=0xc42d9ebf38 sp=0xc42d9ebf18 pc=0x43f8b1
leth_sil_localnet | runtime.mapiternext(0xc42d9ec2c0)
leth_sil_localnet | /usr/local/go/src/runtime/hashmap.go:747 +0x55c fp=0xc42d9ebfc8 sp=0xc42d9ebf38 pc=0x41d56c
leth_sil_localnet | github.com/ethereum/go-ethereum/core/state.(*StateDB).Copy(0xc4218f8a80, 0x0)
leth_sil_localnet | /go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/core/state/statedb.go:486 +0x53a fp=0xc42d9ec390 sp=0xc42d9ebfc8 pc=0x70b66a
View gist:2d60e2026b618ce5cf80be2dd674e690
leth_sil_localnet | /go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:804 +0x277
leth_sil_localnet | created by github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb.openDB
leth_sil_localnet | /go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/vendor/github.com/syndtr/goleveldb/leveldb/db.go:149 +0x627
leth_sil_localnet |
leth_sil_localnet | goroutine 116 [select]:
leth_sil_localnet | github.com/ethereum/go-ethereum/eth/downloader.(*Downloader).qosTuner(0xc42030a000)
leth_sil_localnet | /go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:1584 +0x33e
leth_sil_localnet | created by github.com/ethereum/go-ethereum/eth/downloader.New
leth_sil_localnet | /go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/eth/downloader/downloader.go:231 +0x45c
leth_sil_localnet |
View gist:a2aaa52b7204d6d55ee5e47a3099d7d8
{"account":"0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae","accountType":1,"balance":"748997604382925139479303","nonce":1,"firstTime":1439048640,"numNormalTxns":355,"numInternalTxns":92,"totalReceived":"11907196749482925141369303","totalSent":"11158199145100000001890000","totalFee":"0","createdBy":"0x5abfec25f74cd88437631a7731906932776356f9","createdIn":"0x9c81f44c29ff0226f835cd0a8a2f2a7eca6db52a711f8211b566fd15d3e0e8d4","txns":[{"blockNumber":54092,"timeStamp":1439048640,"hash":"0x9c81f44c29ff0226f835cd0a8a2f2a7eca6db52a711f8211b566fd15d3e0e8d4","nonce":"0x0","blockHash":"0xd3cabad6adab0b52eb632c386ea194036805713682c62cb589b5abcd76de2159","transactionIndex":0,"from":"0x5abfec25f74cd88437631a7731906932776356f9","to":null,"value":"11901464239480000000000000","gas":2000000,"gasPrice":10000000000000,"gasUsed":1436963,"input":"0x6060604052600760018181557305096a47749d8bfab0a90c1bb7a95115dbe4cea6600355737c56d94ebeccb769524379c450873519a9d805ff600490815573cda0ad7542e30bf520652a05056ebe0105c7e49a60055573775e18be7a50a0ab
View gist:1fb2e190d6226c73d18d2ec7d16adfc2
elbalaa$ npm run setup
> react-boilerplate@3.4.0 presetup /Users/elbalaa/src/frontend-react
> npm i chalk shelljs
react-boilerplate@3.4.0 /Users/elbalaa/src/frontend-react
├─┬ chalk@1.1.3
│ ├── ansi-styles@2.2.1
│ ├── escape-string-regexp@1.0.5
│ ├─┬ has-ansi@2.0.0
View blank_fs.json
[
{
"model": "client_api.account",
"pk": 1,
"fields": {
"address": "0x60d6df9517f0ed6d03a38beb4898b508c3af176e",
"role": "",
"user": 1,
"name": "",
"description": "",