Skip to content

Instantly share code, notes, and snippets.

View gokhanm's full-sized avatar
🤗

Gokhan MANKARA gokhanm

🤗
View GitHub Profile
@gokhanm
gokhanm / .gitconfig
Created December 18, 2019 11:41 — forked from Kovrinic/.gitconfig
git global url insteadOf setup
# one or the other, NOT both
[url "https://github"]
insteadOf = git://github
# or
[url "git@github.com:"]
insteadOf = git://github
@gokhanm
gokhanm / tmux-cheat-sheet.md
Created January 7, 2019 12:26 — forked from michaellihs/tmux-cheat-sheet.md
tmux Cheat Sheet
@gokhanm
gokhanm / network-tweak.md
Created October 17, 2018 12:02 — forked from mustafaturan/network-tweak.md
Linux Network Tweak for 2 million web socket connections

Sample config for 2 million web socket connection

    sysctl -w fs.file-max=12000500
    sysctl -w fs.nr_open=20000500
    # Set the maximum number of open file descriptors
    ulimit -n 20000000

    # Set the memory size for TCP with minimum, default and maximum thresholds 
 sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000'
@gokhanm
gokhanm / jwt_golang_example.go
Created June 12, 2018 11:23 — forked from thealexcons/jwt_golang_example.go
JSON Web Tokens in Go
package main
import (
"io/ioutil"
"log"
"strings"
"net/http"
"encoding/json"
"fmt"
"time"