Skip to content

Instantly share code, notes, and snippets.

View Andrew-liu's full-sized avatar

Andrew-liu Andrew-liu

View GitHub Profile
@asyncins
asyncins / snowflake.go
Created July 3, 2020 05:59
[snowflake-go]
package main
import (
"errors"
"fmt"
"sync"
"time"
)
const (
@rafaeltuelho
rafaeltuelho / linux-shell-docker-cli.sh
Last active August 26, 2022 10:53
Some useful shell aliases and function for Docker command line
# Docker aliases
alias di='sudo docker images'
alias dps='sudo docker ps -a'
# useful Docker functions
dock-run() { sudo docker run -i -t --privileged $@ ;}
dock-exec() { sudo docker exec -i -t $@ /bin/bash ;}
dock-log() { sudo docker logs --tail=all -f $@ ;}
dock-port() { sudo docker port $@ ;}
dock-vol() { sudo docker inspect --format '{{ .Volumes }}' $@ ;}
@simonista
simonista / .vimrc
Last active May 1, 2024 19:47
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on