Skip to content

Instantly share code, notes, and snippets.

View nullne's full-sized avatar
🚎
go bootstrap

Le Yu nullne

🚎
go bootstrap
View GitHub Profile
@nullne
nullne / tmux.conf
Last active December 13, 2020 09:49 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@iamralch
iamralch / ssh_client.go
Last active April 16, 2023 03:09
SSH client in GO
package main
import (
"fmt"
"io"
"io/ioutil"
"net"
"os"
"strings"
@kkdai
kkdai / mgo-go-query-sample.go
Created August 6, 2014 16:15
go- mongoDB mgo insert and query greater than sample
package main
import (
"fmt"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
)
type msg struct {
// Msg string `bson:"msg"`