Skip to content

Instantly share code, notes, and snippets.

Trying my best to be worth something.

Benjamin Lupton balupton

Trying my best to be worth something.
Block or report user

Report or block balupton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
balupton / html-async.ts
Last active Aug 20, 2019
HTML Tagged Template Literal
View html-async.ts
import { StrictUnion } from 'simplytyped'
export default async function html(
components: TemplateStringsArray,
...inputs: Array<any>
) {
const results = await Promise.all( function(left, i) {
return left + (await inputs[i])
balupton /
Last active Jan 21, 2019
Instances of popular open-sourcers duplicating packages and blocking people

It seems some open-sourcers strategies may have been to gain fame from finding existing packages then duplicating them (with the exact same functionality, or a subset or superset) instead of sending PRs or using existing solutions. Package maintainers can want to do this to build up a portfolio of popular packages, to consolidate popularity and power to themselves, and thus gain funding. Willfull ignorance of alternatives at the time of publishing stems from the similar intention. Naivity however may be accidental, in which case consolidation of duplicates can be a desired outcome where possible, as it consolidates maintainership and features for a better user experience. There is valid reason for duplication however, where an original author was not receptive to pull requests.

This gist is to look into such instances. It is not to say whether or a case was accidental or not. Only that such duplication exists, in the hope that it can be noted and hopefully resolved.

Eventually one could do up a programmatic

balupton /
Created Oct 29, 2018
Blockstack Verification
balupton / restore-messages.bash
Last active May 28, 2018
Restore Messages on MacOS High Sierra. Based on the macup commad from
View restore-messages.bash
#!/usr/bin/env bash
set -e
function restore {
echo "Restoring: $1"
if test -e "$backupRoot/$1"; then
sudo rm -Rf "$localRoot/$1"
mkdir -p "$(dirname "$localRoot/$1")"
balupton /
Last active Sep 16, 2019
DNSCrypt Setup


These days instead of the below, I recommend using my setup-dns script from my dotfiles which will setup encrypted DNS for you automatically.



Install DNSCrypt:

balupton /
Created Sep 30, 2017
Atlas shrugged on slavery by servitude

You are an indivisible entity of matter and consciousness . Renounce your consciousness and you become a brute . Renounce your body and you become a fake . Renounce the material world and you surrender it to evil . “ And that is precisely the goal of your morality , the duty that your code demands of you . Give to that which you do not enjoy , serve that which you do not admire , submit to that which you consider evil — surrender the world to the values of others , deny , reject , renounce your self . Your self is your mind ; renounce it and you become a chunk of meat ready for any cannibal to swallow . “ It is your mind that they want you to surrender — all those who preach the creed of sacrifice , whatever their tags or their motives , whether they demand it for the sake of your soul or of your body , whether they promise you another life in heaven or a full stomach on this earth . Those who start by saying : ‘ It is selfish to pursue your own wishes , you must sacrifice them to the wishes of others ’ — end

balupton / README.txt
Created Sep 25, 2017
Travel Resources
View README.txt
Country and Visa Details
balupton /
Last active Aug 27, 2017
My thoughts on Universal Basic Income, from a chat transcript


Hey guys, I’d like to have your opinion on something. As we all work in tech my guess is that most of us think Universal Basic Income (UBI) is an idea that should be given serious thought I also think many of you have seen this video by Laurent Alexandre last week :

In the video he says:

“I think putting in place a UBI is suicidal If we deal with the replacement of traditional jobs by IA by putting aside people who cannot work hand-in-hand with AI and giving them “food and distraction”, in 50y we’ll have a society like Metropolis and in 100y like the Matrix. We have to fight day in day out to reform education and industries to make sure workers stay relevant and complementary with AI”

balupton /
Last active Jun 5, 2019
Summary of the Node.js Board controversy from what I can gather
balupton /
Last active Nov 15, 2017
Seems the open-source world requires a code of conduct for everything right now. So here is a draft one I’ve done up for Bevry. Feedback welcome.

Bevry Draft Code of Conduct

TLDR: Be a productive member of civilised society, no more, no less.

Results > Character > Identity.

We care only about your character and your results. We discriminate at the individual level, not the group identity level. You can be whatever identity you want, your identity is your thing not ours, identity is meaningless to us.

Libertarian Values.

You can’t perform that action at this time.