Skip to content

Instantly share code, notes, and snippets.

@wardenlym
wardenlym / rfc.md
Created March 7, 2022 06:09 — forked from eminetto/rfc.md
Template of RFCs

Title

Problem description

We must explain the problem clearly and identify additional details that the team needs to know. We must here describe the context, what we did so far, and the current state.

The description also serves as a trail that we can go back to in the future to understand the reasoning we had at the time and see what restrictions and requirements have changed.

Possible approaches

@wardenlym
wardenlym / golang-tls.md
Created May 12, 2020 07:20 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples

Moved to git repository: https://github.com/denji/golang-tls

Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
@wardenlym
wardenlym / dynamic_crds.go
Created May 15, 2019 05:20 — forked from tallclair/dynamic_crds.go
Example of using CRDs with the dynamic go client
package main
import (
"fmt"
"log"
"os/user"
"path/filepath"
"strings"
apixv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
@wardenlym
wardenlym / file0.txt
Created June 11, 2018 07:48 — forked from st0326s/file0.txt
Unity C#で暗号化・復号化 メモ ref: http://qiita.com/satotin/items/6e0dc0a90312c5d474df
using System;
using System.Text;
using System.Security.Cryptography;
namespace Musashi.WebApi_v1.Utility
{
/// <summary>
/// 暗号化・複合化を行う
/// </summary>
public static class Crypt
@wardenlym
wardenlym / UnityWebApiExample.cs
Created May 11, 2018 11:58 — forked from heri3x/UnityWebApiExample.cs
Unity3d - webapi client example using UnityWebRequest or HttpWebRequest
// This code is released as public domain, or under the zlib license.
// このコードはパブリックドメインかzlibライセンス、お好きな方で利用してください。
using UnityEngine;
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
@wardenlym
wardenlym / y-combinator.go
Created March 19, 2018 07:49 — forked from wancw/y-combinator.go
Y combinator in Go, runable example: http://play.golang.org/p/xVHw0zoaWX
package main
import "fmt"
type (
tF func(int) int
tRF func(tF) tF
tX func(tX) tF
)
@wardenlym
wardenlym / proj2ram
Created January 27, 2016 07:42 — forked from redguardtoo/proj2ram
script to copy project to tmpfs
#!/bin/sh
if [ -z "$1" ];then
echo "Usage:"
echo " proj2ram proj-name"
echo " proj2ram restore proj-name"
exit 1
fi