Skip to content

Instantly share code, notes, and snippets.

View PaulVanSchayck's full-sized avatar

Paul van Schayck PaulVanSchayck

View GitHub Profile
@PaulVanSchayck
PaulVanSchayck / Dockerfile
Created January 23, 2022 15:44
Cross compile Rust for Raspberry Pi using Docker container
FROM ubuntu:20.04
RUN apt-get update && apt-get install -y \
build-essential \
gcc-arm-linux-gnueabihf \
curl
# Switch user
RUN useradd -ms /bin/bash local
USER local
@PaulVanSchayck
PaulVanSchayck / readleaf.user.js
Last active October 6, 2023 21:26 — forked from tillahoffmann/readleaf.user.js
Readcube-Overleaf integration: Adds an "Update Library" button to Overleaf that allows you to import your Readcube library.
// ==UserScript==
// @name Readcube-Overleaf integration
// @namespace https://tillahoffmann.github.io/
// @version 0.4
// @description Adds an "Update Library" button to Overleaf that allows you to import your Readcube library.
// @author Till Hoffmann, Michal Ptacek, Paul van Schayck
// @match https://www.overleaf.com/*
// @connect readcube.com
// @grant GM_xmlhttpRequest
// ==/UserScript==
@PaulVanSchayck
PaulVanSchayck / Dockerfile
Last active June 3, 2020 15:01
Dockerfile to backport shorewall-5.2.3.4 from Ubuntu 20.04 to Ubuntu 18.04
FROM ubuntu:18.04
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractiv apt-get install -y dpkg-dev devscripts
RUN sh -c "echo deb-src http://archive.ubuntu.com/ubuntu/ focal universe >> /etc/apt/sources.list"
RUN apt-get update && apt-get build-dep -y shorewall
WORKDIR /root
{
"@context": {
"oslc:modifiedBy": {
"@type": "@id"
},
"skos": "http://www.w3.org/2004/02/skos/core#",
"rdfs:label": {
"@type": "xsd:string"
},
"skos:notation": {
const code = 'your-refresh-token';
var SpotifyWebApi = require('spotify-web-api-node');
var spotifyApi = new SpotifyWebApi({
clientId : 'a52cd8838b26488186753ad0047bf86a',
clientSecret : '18c98110c7a84543afd65ce73186cdae',
redirectUri: 'http://localhost:8080'
});