Skip to content

Instantly share code, notes, and snippets.

@enricofoltran
enricofoltran / main.go
Last active April 6, 2025 09:48
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@brentfisher
brentfisher / .vimrc
Last active August 29, 2015 14:19
Sample .VIMRC
set noswapfile " removes annoying .swp files when opening the same file multiple times
set number " line numbers
syntax on " try to autoread syntax (based on filename)
" relative line numbers below > VIM 7.4
" set relativenumber
" Tab stuff, I perfer to use two spaces instead of hard tabs
set tabstop=2 " this is when you open a file with hard tabs in it, <TAB>
set softtabstop=2 " these are tabs when editing, so pressing TAB in insert mode
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 29, 2025 14:55
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname