- 进入你的
home目录
cd ~
- 编辑
.bashrc文件
| version: "2" | |
| services: | |
| grafana: | |
| image: grafana/grafana:5.1.0 | |
| ports: | |
| - 3000:3000 | |
| user: 'root' | |
| volumes: | |
| - ./grafana.ini:/etc/grafana/grafana.ini |
| # First you update your system | |
| sudo apt-get update && sudo apt-get dist-upgrade | |
| # Clean-up System | |
| sudo apt-get purge epiphany-browser epiphany-browser-data #browser | |
| sudo apt-get purge midori-granite #browser | |
| sudo apt-get purge noise | |
| sudo apt-get purge scratch-text-editor #text-editor | |
| sudo apt-get purge modemmanager | |
| sudo apt-get purge geary #email |
ElementaryOS - Loki is an amazing ubuntu based distribution, I've just felt in love on it BUT they've removed what's required to install easily the nVidia Proprietary drivers. So here is the reason of this gist, to store the install instructions in one place inside a crystal clear documentation.
| [uwsgi] | |
| # telling user to execute file | |
| uid = bunny | |
| # telling group to execute file | |
| gid = webapps | |
| # name of project you during "django-admin startproject <name>" | |
| project_name = updateMe |
| package main | |
| import ( | |
| "errors" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "os" | |
| "github.com/gogo/protobuf/jsonpb" |
| package main | |
| import ( | |
| "github.com/prometheus/client_golang/prometheus" | |
| "github.com/prometheus/client_golang/prometheus/promhttp" | |
| "log" | |
| "math/rand" | |
| "net/http" | |
| "time" |
| /* | |
| This function will help you to convert your object from struct to map[string]interface{} based on your JSON tag in your structs. | |
| Example how to use posted in sample_test.go file. | |
| */ | |
| func structToMap(item interface{}) map[string]interface{} { | |
| res := map[string]interface{}{} | |
| if item == nil { | |
| return res | |
| } |
| Docker 6 hrs 16 mins █████████▏░░░░░░░░░░░ 43.8% | |
| Makefile 3 hrs 39 mins █████▎░░░░░░░░░░░░░░░ 25.5% | |
| Go 55 mins █▎░░░░░░░░░░░░░░░░░░░ 6.5% | |
| HTML 45 mins █░░░░░░░░░░░░░░░░░░░░ 5.3% | |
| Python 37 mins ▉░░░░░░░░░░░░░░░░░░░░ 4.4% |