Skip to content

Instantly share code, notes, and snippets.

View netsensei's full-sized avatar
👾
retro-wave driven development

Matthias Vandermaesen netsensei

👾
retro-wave driven development
View GitHub Profile
@netsensei
netsensei / nodejs.md
Last active June 8, 2020 15:05
Setting up NodeJS with NVM on Centos 7

Setting Up NodeJS with NVM on Centos 7

Centos 7 offers NodeJS and NPM via yum install. While this is great, it's not optimal because it pins users to the version offered via yum. Moreover, a yum update can easily upgrade the NodeJS version leading to all kinds of breaking. Not what we want.

Luckily, nvm can help us.

In the same vain as rbenv, rvm or plenv: this is a version manager that leaves the "system" node installation alone and allows you to install and manage different versions of nodejs and npm concurrently.

@netsensei
netsensei / ssh-background.md
Last active September 14, 2023 20:42
Creating and managing an SSH session in the background
@netsensei
netsensei / dell-xps-9380.md
Last active June 23, 2023 17:58
Installing Fedora 30/31 on Dell XPS 13 9380

Installing Fedora 30/31 on a Dell XPS 13 9380 series in dual boot mode

This guide describes how to install Fedora 30/31 next to Windows 10 on a Dell XPS 13 9380 series in dual boot.

  • Keep the stock Windows 10 installation that came with the laptop.
  • Install Fedora 30 alongside Windows on the hard disk.
  • Install GRUB as the bootloader allowing you to choose which OS to boot from.

Authored: September 2019

@netsensei
netsensei / met.sh
Last active November 10, 2018 17:44
Scrape the Metropolitan Museum API
#!/bin/bash
echo "fetching list of objects";
curl -s "https://collectionapi.metmuseum.org/public/collection/v1/objects" > list.json;
echo "[]" > objects.json;
echo "drawing list of objects";
ids=$(jq -r '.objectIDs | .[]' list.json);
rm list.json;
@netsensei
netsensei / folders.yaml
Last active May 14, 2018 14:45
Folder structuur
root:
- 00_personeel:
- veiligheid:
- naam: Jos
permissies: alleen-lezen
type: persoon
- naam: Nancy
permissies: lezen, schrijven
type: persoon
- naam: personeel
@netsensei
netsensei / loris.md
Created May 12, 2018 15:11
Installing the Loris IIIF server

Python 2.7.9

sudo apt-get install build-essential sudo apt-get install zlib1g-dev libssl-dev python-dev

sudo apt-get install python-pip sudo pip install --upgrade pip sudo pip install virtualenv

cd /opt

@netsensei
netsensei / manifest.json
Last active April 19, 2018 09:42
IIIF manifest example
{
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": "http://rails.box:3000/iiif/2/groeningemuseum:0000_GRO1561_I/manifest.json?locale=nl",
"@type": "sc:Manifest",
"label": "Johannes predikt tot de menigte",
"sequences": [
{
"@id": "http://groeningemuseum.be/collection/work/data/0000_GRO1561_I#sequence-1",
"@type": "sc:Sequence",
"label": "Current order",
@netsensei
netsensei / process.pl
Created October 16, 2017 21:49
Add raw XML data from an OAI endpoint to a JSON dump in two passes.
#!perl
use JSON;
use Catmandu;
use Try::Tiny::ByClass;
use Data::Dumper;
sub prepare {
my $store = Catmandu->store(
@netsensei
netsensei / arthub.md
Last active September 5, 2017 12:28
Installing the Datahub::Factory::Arthub modules

Installing the Datahub::Factory::Arthub modules

Introduction

The Datahub::Factory is a Catmandu based toolkit which allows easy and efficient setup and management of ETL pipelines. A pipeline transforms and transports data between two systems. The set of primary use cases for which this toolkit was conceived is situated within the GLAM (Galleries, Libraries, Archives & Museums) domain.

Out of the box, the Datahub::Factory is a generic, extensible toolkit. While you can use the