Skip to content

Instantly share code, notes, and snippets.

View gertcuykens's full-sized avatar

Gert Cuykens gertcuykens

  • belgium
View GitHub Profile
@gertcuykens
gertcuykens / elixir_symbols.md
Last active March 6, 2021 17:20 — forked from h4cc/elixir_symbols.md
All symbols used in the elixir programming language
@gertcuykens
gertcuykens / golang-tls.md
Created July 19, 2020 20:50 — forked from 6174/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)
openssl ecparam -genkey -name secp384r1 -out server.key
@gertcuykens
gertcuykens / Git Live.md
Last active May 9, 2020 08:12
Git Live

.vscode/live.sh

#!/bin/zsh
# git branch live
# git checkout live
# git push --set-upstream origin live
git commit -am live
git push
# git rebase master
# git checkout master
@gertcuykens
gertcuykens / .vscode
Last active May 6, 2018 01:32
vscode
{
// "editor.fontFamily": "Fira Code",
"editor.fontSize": 14,
"editor.tabSize": 2,
"editor.detectIndentation": true,
"editor.insertSpaces": true,
// "editor.fontLigatures": false,
// "go.formatTool": "goimports",
// "go.goroot": "/Users/gert/go_appengine/goroot",
// "go.testTimeout": "36000s",
@gertcuykens
gertcuykens / rsync
Last active January 18, 2019 04:15
rsync
---------
CLIENT
---------
root@localhost:/src/
-avzh
--delete
--dry-run -n
--include '.*'
@gertcuykens
gertcuykens / .npmrc
Last active November 14, 2016 10:08
.npmrc
rm -rf /usr/local/lib/node_modules
brew uninstall node
brew install node --without-npm
echo prefix=~/node >> ~/.npmrc
curl -L https://www.npmjs.com/install.sh | sh
set -x JSBIN $HOME/node_modules/bin
@gertcuykens
gertcuykens / config.fish
Created October 4, 2016 05:34
.config/fish/config.fish
#!/usr/local/bin/fish
# brew install fish
# echo /usr/local/bin/fish | sudo tee -a /etc/shells
# chsh -s /usr/local/bin/fish
# fish
# fish_config
# set fish_color_valid_path
# set -e fish_greeting
[user]
name = Gert Cuykens
email = gert.cuykens@gmail.com
[push]
default = simple
#!/bin/bash
#IPADDR=`ifconfig -a | grep -A1 en0 | grep inet | awk '{ print $2 }'`
IPADDR=`curl -s ifconfig.me/ip`
LASTIP=`nslookup nyhostname.dtdns.net ns1.darktech.org | grep -A1 myhostname |
grep Address | awk '{
print $2 }'`
echo -n "`date` - "
@gertcuykens
gertcuykens / channels.go
Last active August 29, 2015 14:08
golang
package main
import "fmt"
func main() {
ch := make(chan int)
go fibs(ch)
for i := 0; i < 20; i++ {
fmt.Println(<-ch)
}