Skip to content

Instantly share code, notes, and snippets.

@ynwd
ynwd / reflection.go
Created November 30, 2020 05:31 — forked from drewolson/reflection.go
Golang Reflection Example
package main
import (
"fmt"
"reflect"
)
type Foo struct {
FirstName string `tag_name:"tag 1"`
LastName string `tag_name:"tag 2"`
@ynwd
ynwd / semantic-commit-messages.md
Last active October 16, 2020 01:26 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@ynwd
ynwd / settuning.sh
Created October 2, 2020 22:14 — forked from mcollina/settuning.sh
m3medium config
#!/bin/bash
sysctl net.core.rmem_default=268435456
sysctl net.core.wmem_default=268435456
sysctl net.core.rmem_max=268435456
sysctl net.core.wmem_max=268435456
sysctl net.core.netdev_max_backlog=100000
sysctl "net.ipv4.tcp_rmem=4096 16384 134217728"
sysctl "net.ipv4.tcp_wmem=4096 16384 134217728"
sysctl "net.ipv4.tcp_mem=786432 1048576 268435456"
@ynwd
ynwd / Instal_and_configure_nginx.md
Created July 18, 2018 11:06 — forked from ipanardian/Instal_and_configure_nginx.md
Install and Configure Nginx on Mac

Install

$ brew install nginx

Setelah install jalankan nginx.
$ sudo nginx

Testing

Test apakah nginx sudah running, buka url http://localhost:8080.

Ganti default port