Skip to content

Instantly share code, notes, and snippets.

View balupton's full-sized avatar
🏍️
Travelling for next 2 weeks

Benjamin Lupton balupton

🏍️
Travelling for next 2 weeks
View GitHub Profile
@balupton
balupton / android-dev
Last active May 3, 2022 21:22
Dorothy Graveyard
#!/usr/bin/env bash
source "$DOROTHY/sources/strict.bash"
# Android Simulator
app=$(get-app "Android Studio.app")
if test -d "$app"; then
"$app/sdk/tools/emulator" -avd basic
else
echo "Android Studio is not installed"
fi
@balupton
balupton / discord-servers.md
Last active January 6, 2022 02:07
Discord Servers
@balupton
balupton / ossthanks-caution.md
Last active November 27, 2021 05:26
Who to fund? #OSSThanks — An open-source philosopher's advice.

It's also important to fund the small independent projects and maintainers, as they are often struggling with shoestring budgets and often have to abandon their projects from lack of means, or have their projects reimplemented by maintainers who are riding the Pareto principle (where more maintenance, usage, recognition, audience, money, will beget even more maintenance, usage, recognition, audience, money, leaving behind a long tail inside a bloody ocean, where whales and sharks incidentally cannibalise the smaller fish). $10/month could double the budget of a small-time independent maintainer, which help prevents small fish maintainers abandoning their projects, which help prevents the projects getting reimplemented with their resources consolidated by a $10,000/month Pareto maintainer, backed by even bigger entities. Abandoned projects aren't just at risk of Pareto takeovers, but also of transfers to malicious contributors (where a billion installs a month project, or a specifically targeted project, has i

@balupton
balupton / telegram.md
Last active August 22, 2021 17:18
Telegram Groups
@balupton
balupton / co-ownership.md
Last active February 9, 2021 13:46
Volunteer Contracts

Contributor License Agreement

Agreement Version: 1.0 – 9 Feb 2021

Deliverable

xxx

Assignment

The Original Owner grants the New Co-Owner a non-exclusive, irrevocable, fully paid-up, royalty-free, perpetual, non-terminable, sub-licensable (at multiple levels), transferable, worldwide license to change, modify, combine, and otherwise use and exploit (both commercially and non-commercially) the Deliverable in any known and currently unknown manner, without restriction.

Signed

@balupton
balupton / http-cids.md
Last active February 9, 2021 00:35
Proposal for a Decentralised Content Address Network on Existing Technology

Proposal for a decentralised content addressed network that can work today on existing technology

  1. Setup service on cloudflare workers, or any http server with a key value store database and routing
  2. Request to /somefile of that trusted service: https://fountain.bevry.workers.dev/somefile
  3. Redirects to multiaddr: https://fountain.bevry.workers.dev/multiaddr/hash
  4. Returns alt-svc header of alternative hostnames that use the same file
  5. Returns digest header with expectations of checksum for range
  6. Client uses alt-svc header response to fetch ranges from other locations
  7. Also fetches digest range responses from alt-svc peers to verify response is correct (head requests)
  8. Keeps track of which hostnames returned digest responses with concurrence to trusted sources, add to their trust score
@balupton
balupton / daos.md
Created February 4, 2021 16:34
Blog: DAOs to decentralise centralised infrastructure?

DAOs

Could the the DAO methodology be used to decentralise governance of centralised infrastructure? For instance,

  1. selecting which build of an open-source project will be deployed
  2. paying for the deployment and auto-scaling of that build to AWS with the pooled resources of the DAO
  3. pooling resources from stripe billing to pay for the infrastructure and reimbursement to those who contributed to deployed builds

That way one can use centralised infrastructure at their existing speed, scale, and functionality, without susceptibility to the consolidation of trust/resources/finances/IP/secrets into singular humans. Instead, all delegation is to a DAO that interacts with things like AWS, Stripe, and whatnot entirely via APIs, with no human ever able to access the management consoles or API keys.

@balupton
balupton / scale.md
Last active January 16, 2021 00:03
Massively Scalable Web Infrastructure

Massively Scalable Web Infrastructure

Todo

These items still need to be categorised below:

@balupton
balupton / readme.md
Last active January 5, 2021 01:18
Wipe Twitter Likes

Wipe Twitter LIkes

  1. Go to https://twitter.com/YOURUSERNAME/likes
  2. Open Web Inspector
  3. Run the following, eventually you will get 429 and 500 errors when rate limits hit, in which case give up and try later
setInterval(() => {
  /* if twitter has buggered up due to rate limits (unliked tweets are showing up in liked), then like them so you can unlike them */
 for (const d of document.querySelectorAll('div[data-testid="like"]')) { d.click(); d.remove() }
@balupton
balupton / README.md
Last active January 4, 2022 07:27
MacOS / Linux Filesystem Adventures

MacOS / Linux Filesystem Adventures

Goal is to have a data store between MacOS and Linux (Ubuntu Server on a Raspberry Pi 4), with the main use case being for Plex Media Server.

The hard drive:

  • A single 12TB USB HDD.

The systems: