Skip to content

Instantly share code, notes, and snippets.

@4ydx
4ydx / nginx.conf
Last active August 29, 2015 14:16 — forked from plentz/nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@4ydx
4ydx / handler.js
Created February 2, 2016 05:33 — forked from ThisIsMissEm/handler.js
The better way to execute Go on Amazon Lambda (see: http://blog.0x82.com/2014/11/24/aws-lambda-functions-in-go/)
var child_process = require('child_process');
exports.handler = function(event, context) {
var proc = spawn('./test', [ JSON.stringify(event) ], { stdio: 'inherit' });
proc.on('close', function(code){
if(code !== 0) {
return context.done(new Error("Process exited with non-zero status code"));
}
@4ydx
4ydx / README-Template.md
Created February 10, 2018 00:32 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@4ydx
4ydx / 00_blot9.md
Created March 17, 2018 09:48 — forked from keijiro/00_blot9.md
KodeLife fragment shader sketch

gif

@4ydx
4ydx / 00_blot7.md
Created March 17, 2018 09:48 — forked from keijiro/00_blot7.md
KodeLife fragment shader sketch

gif

@4ydx
4ydx / 00_blot4.md
Created March 17, 2018 09:49 — forked from keijiro/00_blot4.md
KodeLife fragment shader sketch

gif

@4ydx
4ydx / 00_blot6.md
Created March 17, 2018 09:49 — forked from keijiro/00_blot6.md
KodeLife fragment shader sketch

gif

@4ydx
4ydx / main.go
Created February 13, 2019 06:50 — forked from lloeki/main.go
Using GopherJS and Electron together
// Electron's quick start sample, naively ported to Go
// https://github.com/atom/electron/blob/master/docs/tutorial/quick-start.md
//
// go get -u gopherjs
// gopherjs build main.go
// electron $(pwd)
package main
import (
@4ydx
4ydx / goGetPrivate.md
Created December 26, 2022 09:09 — forked from StevenACoffman/goGetPrivate.md
How to `go get` private repos using SSH key auth instead of password auth.

Set GOPRIVATE to match your github organization

Cloning the repo using one of the below techniques should correctly but you may still getting an unrecognized import error.

As it stands for Go v1.13, I found in the doc that we should use the GOPRIVATE variable like so:

GOPRIVATE=github.com/ORGANISATION_OR_USER_NAME go get -u -f github.com/ORGANISATION_OR_USER_NAME/REPO_NAME

The 'go env -w' command (see 'go help env') can be used to set these variables for future go command invocations.

How to go get private repos using SSH key auth instead of password auth.

@4ydx
4ydx / golang-tls.md
Created May 25, 2023 06:34 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples
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)