Skip to content

Instantly share code, notes, and snippets.

View blahah's full-sized avatar

Rik Smith-Unna blahah

  • upward spiral ∞⟨X∴↯⟩∞
  • Bristol / Berlin / Nairobi
  • X @blahah404
View GitHub Profile
@blahah
blahah / README.md
Last active April 18, 2018 21:43
Resources for self-teaching around feminism, anti-racism, and indigenous and land-rights
@blahah
blahah / ink_production.md
Last active December 5, 2017 20:44
INK in production

Installing INK

The quickest and most maintainable way to get a production INK instance up and running is using Docker. INK is provided as a dockerised service, and can be run along with all dependency services using docker compose. This guide shows you how to do that, with commands designed for a fresh ubuntu LTS (16.04) installation.

Pre-requisites

Node.JS

You'll need Node.JS, preferably via a Node version manager.

@blahah
blahah / todo.md
Created July 24, 2017 06:25
mafintosh sciencefair todo

implement SLEEP-backed metadata sources

  • take a dir of json files and store them in hypercore
  • client integrated into sciencefair's datasource class, replacing the existing metadata feed
  • make a CLI for creating a datasource
  • add a way for the feed to update itself by pointing to a new feed key
  • feed creator should be able to specify new key
@blahah
blahah / busco_to_upset.R
Created July 17, 2017 09:48
Example of BUSCO results to upset plots
# example of loading busco sample data, preparing gene set data, and making plots
# if necessary, uncomment to install dependencies
# install.packages("readr")
# install.packages("UpSetR")
library(readr)
# function to load BUSCO results and label the first two columns
load_busco <- function(path) {
@blahah
blahah / internet_of_data_transforms.md
Last active February 29, 2020 17:50
Ways dat can be leveraged to transform science, #1 - the internet of data transforms

dat is an incredibly powerful technology for peer to peer sharing of versioned, secure, integrity-guaranteed data.

One thing it excels at is populating a live feed of data points from one source, and allowing any number of peers to subscribe to that feed. The data can only originate from the original source (this is guaranteed using public-key encryption), but the peers in the network can still sync the new data with one another. To subscribe to a given source you only need to know an alphanumeric key that uniquely identifies the source, and is automatically generated by dat.

There are many ways that this simple system can be used to build a new infrastructure for science. This is the first in a series of posts in which I'll explain how.

Here I briefly describe some ways dat can be used to automate some aspects of scientific discovery, increase resource and information reuse efficiency, and help keep our information resources up to date with science (a topic I will expand on signif

@blahah
blahah / public_domain_for_code.md
Last active July 9, 2017 07:12
WIP Public domain dedication of code/creative works - reading list + references
@blahah
blahah / resources.md
Created July 6, 2017 21:35
resources for sciencefair datasource creation (WIP)
@blahah
blahah / instructions.md
Last active April 18, 2018 21:24
Help diagnose ScienceFair connectivity issues: instructions

Run a simple test suite

npm install -g dat-test
dat-test

Test your basic p2p connecitvity

@blahah
blahah / err.txt
Created June 17, 2017 16:10
sodium native osx 10.10.1 error
Error: dlopen(/Applications/ScienceFair.app/Contents/Resources/app/node_modules/sodium-native/prebuilds/darwin-x64/node-51.node, 1): Library not loaded: @loader_path/libsodium.dylib
Referenced from: /Applications/ScienceFair.app/Contents/Resources/app/node_modules/sodium-native/prebuilds/darwin-x64/node-51.node
Reason: no suitable image found. Did find:
/Applications/ScienceFair.app/Contents/Resources/app/node_modules/sodium-native/prebuilds/darwin-x64/libsodium.dylib: code signature invalid for '/Applications/ScienceFair.app/Contents/Resources/app/node_modules/sodium-native/prebuilds/darwin-x64/libsodium.dylib'
/Applications/ScienceFair.app/Contents/Resources/app/node_modules/sodium-native/prebuilds/darwin-x64/libsodium.dylib: code signature invalid for '/Applications/ScienceFair.app/Contents/Resources/app/node_modules/sodium-native/prebuilds/darwin-x64/libsodium.dylib'
at Object.Module._extensions..node (module.js:598:18)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447
@blahah
blahah / prep.sh
Created June 16, 2017 09:05
Prepare node environment for working with poor internet
yarn config set yarn-offline-mirror ~/./npm-packages-offline-cache && \
yarn config set ignore-optional true && \
yarn config set prefer-offline true && \
yarn config set yarn-offline-mirror-pruning true
npm config set cache-min Infinity