Skip to content

Instantly share code, notes, and snippets.

@doylecnn
doylecnn / toast.ps1
Created April 28, 2022 05:17 — forked from dend/toast.ps1
Toast Notification in PowerShell
function Show-Notification {
[cmdletbinding()]
Param (
[string]
$ToastTitle,
[string]
[parameter(ValueFromPipeline)]
$ToastText
)
@doylecnn
doylecnn / mongodb-ssl.sh
Created March 30, 2021 08:23 — forked from hungio/mongodb-ssl.sh
Script to create self-signed CA certificates, server certificates, and client certificates for testing MongoDB with SSL
#!/bin/sh
# For multi domain, add reqexts option when generate cer
# --reqexts SAN -config <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\nsubjectAltName=DNS:example.com,DNS:www.example.com"))
# For wildcard domain, using '*' at first
# -subj "/C=AU/ST=NSW/L=Sydney/O=MongoDB/OU=root/CN=*.example.com/emailAddress=kevinadi@mongodb.com"
# Generate self signed root CA cert
openssl req -nodes -x509 -newkey rsa:2048 -keyout ca.key -out ca.crt -subj "/C=AU/ST=NSW/L=Sydney/O=MongoDB/OU=root/CN=`hostname -f`/emailAddress=kevinadi@mongodb.com" -days 365

Easy Amiibo Emulation - https://bit.ly/2z0m09k

(^ that's a short-link to this page, so you can open it in Linux)

(Windows|Linux PC) + JoyControl + Bluetooth = AMIIBO EMULATION

Overview

This guide shows you how to use joycontrol to emulate Amiibos. You only need a Linux PC (or a Windows|MacOS running a Linux VM) and a Bluetooth adapter.

@doylecnn
doylecnn / README.md
Created October 6, 2018 23:57 — forked from joyrexus/README.md
Functional config in go

Quick demo of how to initialize your data structure with optional configuration parameters ... with sane defaults if left unspecified.

This functional config technique ...

  • lets you write APIs that can evolve without pain
  • provides meaningful configuration parameters
  • makes it easy to set default settings
  • makes it possible to set complex conditional values