Skip to content

Instantly share code, notes, and snippets.

@MarijnKoesen
MarijnKoesen / mkplayer-example-without-playlist.html
Created August 15, 2024 12:53
MKPlayer without playlist window
<!DOCTYPE html>
<html>
<head>
<title>Fancy MKPlayer demo</title>
<style>
body {
background: #c7303e;
}
#if ARDUINO_USB_MODE
#error This Arduino device is not supported.
#else
#include "USB.h"
#include "USBHIDGamepad.h"
#include "USBHIDVendor.h"
#include "FirmwareMSC.h"
#if !ARDUINO_USB_MSC_ON_BOOT
@MarijnKoesen
MarijnKoesen / rsnapshot-sudo.rst
Created January 24, 2019 07:46 — forked from mufus/rsnapshot-sudo.rst
Rsnapshot with sudo

Generate ssh-keys

ssh-keygen

Hosts to back up

@MarijnKoesen
MarijnKoesen / setup.md
Created March 30, 2018 16:10 — forked from lazypower/setup.md
Run Minikube in LXD

Running Minikube via LXD

I make some assumptions, and make no claims in how well supported this is or ever will be. I wanted to avoid using VMs because i've been working in containers for the last half decade. It made sense to just skip the middle man and use a machine type container system to run my minikube workloads.

Why not juju?

Simply put, Juju does a fantastic job; but to stay objective I wanted to achieve minikube in LXD as a functional alternative to juju deploy kubernetes-core, or using KVM/VirtualBox in this solution.

@MarijnKoesen
MarijnKoesen / snippet.js
Created December 8, 2016 15:26
Github expand all comments and remove the ones with a specific smiley in the reactions
document.querySelectorAll('.show-outdated-button').forEach(function(e) { e.click() });
document.querySelectorAll('.review-comments').forEach(function(e) {
if (e.querySelector('.mr-1')) { // hooray
var comment = e.closest('.js-comment-container');
comment.parentElement.removeChild(comment);
}
});
0815.ru
0815.ru0clickemail.com
0815.ry
0815.su
0845.ru
0clickemail.com
0-mail.com
0wnd.net
0wnd.org
10mail.com
#include "Keyboard.h"
#include "Mouse.h"
const int ledPin = 9;
const int buttonPin = 2;
int fadeValue = 0;
void setup() {
pinMode(buttonPin, INPUT);
}
@MarijnKoesen
MarijnKoesen / fridge.ino
Last active August 29, 2015 14:21
Fridge
// Drying cabinet v1.3
//
// My arduino drying / controlled environment cabinet. This software uses
// as Arduino (nano in my case) in combination with a DHT22, 4 way relay
// and a Enc28J60 network (UTP) adapter to created a connected fridge
// which keeps the temperature and humidity levels stable between the
// configured thresholds.
//
// IMPORTANT: for this to work correctly we need proper watchdog support
// currently you need to flash a custom bootloader on your nano
#!/bin/bash
#
# A wrapper arround composer to make it possible to annotate your composer.json file
#
# ## Installation
#
# 1) Install composer globally:
# - composer global require composer/composer @dev
# 2) Create a /usr/bin/composer file with the content of this file
@MarijnKoesen
MarijnKoesen / editor.erl
Created August 31, 2013 14:05
Erlang text editor
-module(editor).
-export([edits/2, edit/2]).
-type command() :: delete | skip | {add, char()} | {replace, char()} | { insert, char() }.
%-spec edit(From :: string(), [command()]) -> string
edit(From, []) ->
From;