Skip to content

Instantly share code, notes, and snippets.

View silenceshell's full-sized avatar
🐈
Coding

silenceshell silenceshell

🐈
Coding
View GitHub Profile
@ggzeng
ggzeng / golang_prometheus_metric_counter.go
Last active April 15, 2025 12:02
prometheus golang 客户端中的各类metric写法
//step1:初始一个counter, with help string
pushCounter = prometheus.NewCounter(prometheus.CounterOpts{
Name: "repository_pushes",
Help: "Number of pushes to external repository.",
})
//setp2: 注册容器
err = prometheus.Register(pushCounter)
if err != nil {
fmt.Println("Push counter couldn't be registered AGAIN, no counting will happen:", err)
@Lh4cKg
Lh4cKg / teamviewer
Last active May 10, 2021 13:41
Howto Fix TeamViewer Daemon is not running | start teamviewerd on Fedora 24
[innotec@innotec ~]$ locate teamviewerd
/etc/init/teamviewerd.conf
/opt/teamviewer8/logfiles/install_teamviewerd.log
/opt/teamviewer8/tv_bin/teamviewerd
/opt/teamviewer8/tv_bin/script/teamviewerd.conf
/opt/teamviewer8/tv_bin/script/teamviewerd.service
/opt/teamviewer8/tv_bin/script/teamviewerd.sysv
/opt/teamviewer8/tv_bin/script/teamviewerdMint.conf
[innotec@innotec ~]$ sudo /opt/teamviewer/tv_bin/teamviewerd start
[innotec@innotec ~]$ teamviewer