Skip to content

Instantly share code, notes, and snippets.

View musicin3d's full-sized avatar
🤔
Looking for productive ways to have fun

musicin3d

🤔
Looking for productive ways to have fun
View GitHub Profile
@musicin3d
musicin3d / rpi.sh
Last active April 12, 2021 04:37
Raspberry PI setup
#!/bin/bash
#
# Opinionated configuration script for Raspberry Pi OS
#
# This will:
# - Secure and update
# - Install common tools
# - Setup headless operation
# - Set locale to US/Central
# - and more
@musicin3d
musicin3d / testUtil.js
Last active February 18, 2018 03:18
Test case utility for supertests, featuring a dirty monkey patch for printing response body when expect() fails.
/*
* Inspired by a patch by github.com/RyanMcDonald.
* https://github.com/visionmedia/supertest/issues/367#issuecomment-250627577
* No rights reserved. :)
*/
const request = require('supertest')
let oldAssertStatus = null