Skip to content

Instantly share code, notes, and snippets.

View CNSumi's full-sized avatar
🤖

CNSumi CNSumi

🤖
View GitHub Profile
@CNSumi
CNSumi / SHELL-COMMON
Last active February 15, 2023 10:04
shell-shortcut
We couldn’t find that file to show.
@CNSumi
CNSumi / gist:04c81305b141416dd034b8831b180704
Last active March 22, 2020 15:21
Golang使用map保存锁
type Unlocker func()
type MapLocker interface {
Lock(ctx context.Context, key string) (Unlocker, error)
}
type LMap struct {
lock sync.Map
}
@CNSumi
CNSumi / n2n穿透内网
Created March 20, 2019 12:54
n2n穿透内网
0
@CNSumi
CNSumi / xshell
Created February 21, 2019 13:39
xshell
xshell
@CNSumi
CNSumi / nginx
Created February 11, 2019 12:21
nginx
ubuntu
@CNSumi
CNSumi / http headers
Created February 11, 2019 11:51
http headers
We couldn’t find that file to show.
if has("syntax")
syntax on
endif
set paste
set number
set cursorline
set ruler
@CNSumi
CNSumi / sublime
Last active April 24, 2019 05:21
sublime
`hosts`
```
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
```
// no available now