Skip to content

Instantly share code, notes, and snippets.

View wschoot's full-sized avatar

Wouter Schoot wschoot

  • Netherlands
View GitHub Profile

Create Root Certificate Authority and self-signed certificate for your Home Assistant. Compatible with Chrome browser > version 58, including the macOS Catalina 10.15 / iOS 13 (and above) new requirements.

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096

Keybase proof

I hereby claim:

  • I am wschoot on github.
  • I am ascent (https://keybase.io/ascent) on keybase.
  • I have a public key whose fingerprint is 87E0 5763 A83C 4691 8968 0387 7AA1 6429 AC6C B08E

To claim this, I am signing this object:

<?php
## If dir exists, maintain cache so that messages don't repeat themselves
if (is_dir(__DIR__ . '/cache')) {
$filename = __DIR__ . '/cache/' . hash('crc32b', $poke_id.$gone);
if(!file_exists($filename)) {
file_put_contents($filename, "$poke_id $poke $gone\n");
} else {
exit;
<?php
// https://raw.githubusercontent.com/rubenmak/PokemonGo-SlackBot/master/locales/pokemon.en.json
$pokemons = json_decode(file_get_contents("pokemon.en.json"), true);
$json = json_decode(file_get_contents("php://input"));
$poke_id = $json->{"message"}->{"pokemon_id"};
$gone = $json->{"message"}->{"disappear_time"};
$poke = $pokemons[$json->{"message"}->{"pokemon_id"}];
$ignore = [
19, // Rattata
@wschoot
wschoot / kick.sh
Created March 20, 2013 12:48 — forked from sosiouxme/kick.sh
#!/bin/sh
# This is a sample script for kickstarting a VM according to the openshift.ks script under virt-manager, qemu+KVM, and Linux.
# You certainly need to modify at least the CMDLINE and --location below for it to be useful (unless you work at Red Hat).
set -e
if [ $# -lt 1 ]
then
printf 'Usage: %s vm_name [arg1 [arg2 [...]]]\n' "$0"