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 / restore-messages.bash
Last active May 28, 2018 21:20
Restore Messages on MacOS High Sierra. Based on the macup commad from https://github.com/balupton/dotfiles
#!/usr/bin/env bash
set -e
backupRoot="$1"
function restore {
echo "Restoring: $1"
if test -e "$backupRoot/$1"; then
sudo rm -Rf "$localRoot/$1"
mkdir -p "$(dirname "$localRoot/$1")"
@balupton
balupton / README.md
Last active July 4, 2021 19:07
DNSCrypt Setup
@balupton
balupton / README.md
Created September 30, 2017 18:19
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
balupton / README.txt
Created September 25, 2017 16:51
Travel Resources
Travel
https://www.travelcurated.com/?ref=producthunt
Country and Visa Details
https://nomadlist.com/#short_term_cost_in_usd=%3C%24750%2Fm&temperature=warm
https://www.thebasetrip.com/?ref=producthunt
https://www.visahq.com.au
CoLiving
@balupton
balupton / README.md
Last active August 27, 2017 07:44
My thoughts on Universal Basic Income, from a chat transcript

Louis

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 : https://www.facebook.com/528808020614977/videos/746337268862050/?pnref=story

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
balupton / README.md
Last active June 5, 2019 10:26
Summary of the Node.js Board controversy from what I can gather
@balupton
balupton / Bevry-Code-of-Conduct.md
Last active November 15, 2017 22:42
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.

// my initial code from https://github.com/bevry/outpatient/blob/455fd3a32791259931e0fa4e3b9b3b7d1dc26d8b/source/block.js#L55-L75
'use strict'
const h = require('hyperscript')
module.exports = function (opts = {}) {
// Prepare
const { document, content } = this
const {
permalink = document.url,
@balupton
balupton / sprout.js
Last active February 15, 2017 04:06
automate bevry/base
'use strict'
const exec = require('exec-then')
// prefills values for questions to ask, such that if there is a non-null value, ask the question
// if the value has a value, skip the question
// alterantive would be a `value` property on questions, which if not null, then ask the question
exports.load = function (utils) {
return utils.target.read('package.json').then(function (source) {
const data = JSON.parse(source)
return {
@balupton
balupton / next.config.js
Created February 3, 2017 16:00
next.js webpack configs
module.exports = {
webpack: (config) => {
const webpack = require('webpack')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
config.plugins = config.plugins || []
config.plugins.push(new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /en/))
config.plugins.push(new BundleAnalyzerPlugin())
return config
}
}