Skip to content

Instantly share code, notes, and snippets.

@Tobiaqs
Tobiaqs / 0001-Fix-recovery-data-finding-for-Ryan-Myers-NKit.patch
Created March 6, 2021 09:01
Patch that fixes discovery of recovery partition data in Ryan-Myers/NKit
From ec683a95700d922d0f574abaefaaf5773c4d8425 Mon Sep 17 00:00:00 2001
From: Tobias Sytsma <tobias@tobiass.nl>
Date: Sat, 6 Mar 2021 09:59:09 +0100
Subject: [PATCH] Fix recovery data finding for Ryan-Myers/NKit
---
NKit/Settings/RecoveryData.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/NKit/Settings/RecoveryData.cs b/NKit/Settings/RecoveryData.cs
@Tobiaqs
Tobiaqs / install_woolbird_lite.sh
Last active June 12, 2020 23:39
Script that can transform a mint Raspberry Pi OS / Raspbian installation into a Bluetooth audio receiver
#!/bin/bash
# this script sets up a mint raspbian installation as follows:
# - all packages updated
# - my public ssh key is authorized
# - bluetooth audio relay through pulseaudio
# - hostname of the installation set to $NEW_HOSTNAME
#
# tested on Raspberry Pi OS on June 13, 2020
# note: you need to connect to your device with bluetoothctl, if you want the opposite to be possible, trust your device.
@Tobiaqs
Tobiaqs / tutorial.md
Last active January 15, 2020 12:34
Using Github/Bitbucket as an encrypted file backup service

Initial setup

This will get you a repository that automatically encrypts all files that you add to it and push.

  1. Get git and git-crypt and gpg
  2. Make sure you have a trusted private key in gpg
  3. Run git-crypt init in the root of your repo
  4. Run git-crypt add-gpg-user GPG_FINGERPRINT
  5. Create .gitattributes in the root of your repo
**/* filter=git-crypt diff=git-crypt
@Tobiaqs
Tobiaqs / install_sandman.sh
Last active September 23, 2019 19:50
Very basic bootstrap script for RPi
#!/bin/bash
# this script sets up a mint raspbian installation as follows:
# - all packages updated
# - nfs & ntfs-3g installed
# - mount point for hard drive on /dev/sda1 is created and ownership is granted to pi:pi
# - nfs share is created for this mount point and access is given to $WOOLBIRD_IP
# - my public ssh key is authorized
# - hostname of the installation set to $NEW_HOSTNAME
@Tobiaqs
Tobiaqs / install_woolbird.sh
Last active May 19, 2022 10:37
Script that can transform a mint raspbian installation into a media center with external I2S DAC that runs Kodi and can play audio over the network and bluetooth via pulseaudio
#!/bin/bash
# this script sets up a mint raspbian installation as follows:
# - all packages updated
# - my public ssh key is authorized
# - onboard bluetooth disabled
# - onboard analog audio disabled
# - PCM5102a DAC as audio output
# - network audio relay through pulseaudio with zeroconf support
# - bluetooth audio relay through pulseaudio
@Tobiaqs
Tobiaqs / gist:0ef7bd2e56160650264f9b77de2db50f
Last active January 21, 2021 11:38
Turning your Raspberry Pi into a Bluetooth audio receiver (Nov 2020)

Turning your Raspberry Pi system into a Bluetooth audio receiver

with the "latest" versions of pulseaudio 12.2 and bluez/bluetoothd 5.50 in Nov 2020 in Raspbian repos

guide updated on Nov 23, 2020

There are tons of guides online that show you how to use your Raspberry Pi as a Bluetooth audio receiver. Unfortunately, at time of writing, none of them seem to work, and contain unnecessary (unexplained) steps or settings that don't really add anything useful.

If you haven't followed any guides yet, skip to the TRUTHS part. If you have, the LIES part may clarify some things for you.

LIES

@Tobiaqs
Tobiaqs / videocollege_download.js
Created May 8, 2017 19:19
A script that leeches video files off of the TU/e's videocollege site. This is useful when you don't have a Windows PC, and hence can't use the site.
(function () {
let payload = {
getPlayerOptionsRequest: {
ResourceId: location.pathname.split('/').reverse()[0],
QueryString: location.search,
UseScreenReader: false,
UrlReferrer: document.referrer
}
};
@Tobiaqs
Tobiaqs / gist:ba2aca172ad45083aa092514d51a8fec
Last active May 1, 2017 23:14
Detect menu-visible children in MODX chunk language
[[getResources? &limit=`1` &parents=`<id of parent resource>` &totalVar=`numChildren`]]
[[If? &subject=`[[+numChildren]]` &operator=`!=` &operand=`0` &then=`Has children` &else=`Has no children`]]

English version

Neem contact op!

Nissan Micra 1.3 uit 1995, met 153153 kilometers. De auto staat in Best, bij Eindhoven,

![Photo][image1]

Ik heb heel veel plezier van deze auto gehad. Het is mijn eerste auto en ik vind het erg jammer om hem weg te doen. Helaas is het, te wijten aan de verzekering, in Nederland voor een 19-jarige erg duur om een auto te hebben. Het fijne aan deze auto is dat hij weinig onderhoud nodig heeft. Bovendien zit hij vrij simpel in elkaar, zodat je veel dingen zelf kan doen met wat handigheid. De auto is voornamelijk gebruikt op de snelweg. Hier een paar voordelen:

Dutch version

Contact me!

Nissan Micra 1.3 from 1995, with 153153 kilometers on it. The car is currently residing in Best, near Eindhoven.

![Photo][image1]

I've had a lot of fun with this car. It has been my first car and I feel kind of regretful getting rid of it. Sadly, due to expensive insurance for young people in this country, having a car is not worth it for me anymore. The nice thing about this car is that it requires little maintenance. The mechanics are quite simple, you can do some maintenance yourself if you have the will and the tools. The car has mostly been used for highway driving. Some advantages: