Skip to content

Instantly share code, notes, and snippets.

doylecnn /
Created Mar 30, 2021 — forked from trdahn/
Script to create self-signed CA certificates, server certificates, and client certificates for testing MongoDB with SSL
# For multi domain, add reqexts option when generate cer
# --reqexts SAN -config <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\,"))
# For wildcard domain, using '*' at first
# -subj "/C=AU/ST=NSW/L=Sydney/O=MongoDB/OU=root/CN=*"
# 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`/" -days 365

Easy Amiibo Emulation -

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

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


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 /
Created Oct 6, 2018 — forked from joyrexus/
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
doylecnn / soitecmoniter.js
Last active Jun 27, 2017
soitec web ui change
View soitecmoniter.js
// ==UserScript==
// @name soitec date change
// @namespace
// @version 0.1
// @description try to take over the world!
// @author You
// @match
// @grant none
// @include*
// ==/UserScript==
View md5.go
package main
import (
View cjson.test.c
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "cJSON.h"
char* parseUint32(uint32_t num){
char b[30];
int len = sprintf(b, "%u", num);
doylecnn / test.c
Last active Sep 9, 2015
tiny demo to understand double star pointer
View test.c
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char** argv){
for(int i=0;i<argc;i++){
printf("%s ",argv[i]);
View PermFromString.go
package main
import "fmt"
import "os"
func main() {
perm, err := PermFromString("0777")
if err != nil {
doylecnn / gist:45f68095226947a76d48
Created Jan 14, 2015
timeout demo with problem……
View gist:45f68095226947a76d48
package main
import (
const (
View gmailCheck.go
package main
import (