Skip to content

Instantly share code, notes, and snippets.

View nima's full-sized avatar

Nima Talebi nima

  • Amazon
  • Seattle, WA
View GitHub Profile
@nima
nima / toys#pointers.c
Last active December 27, 2016 00:19
C, Go, and Pointers
int fn_b(int a, int b) { return a % b; }
int fn_c1(int a, int b, int c) { return a + b + c; }
int fn_c2(int a, int b, int c) { return a * b * c; }
int (*fn_d(int (*x)(int, int), int y))(int, int, int) {
return x(y, 2) ? fn_c1 : fn_c2;
}
@denji
denji / golang-tls.md
Last active July 30, 2024 07:43 — forked from spikebike/client.go
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)