Getting started:
Related tutorials:
| package main | |
| import ( | |
| "bufio" | |
| "log" | |
| "net/rpc" | |
| "os" | |
| ) | |
| func main() { |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| // init mysql | |
| _ "github.com/go-sql-driver/mysql" | |
| "github.com/jinzhu/gorm" |
Getting started:
Related tutorials:
(Inspired by https://medium.com/@icanhazedit/clean-up-unused-github-rpositories-c2549294ee45#.3hwv4nxv5)
Open in a new tab all to-be-deleted github repositores (Use the mouse’s middle click or Ctrl + Click) https://github.com/username?tab=repositories
Use one tab https://chrome.google.com/webstore/detail/onetab/chphlpgkkbolifaimnlloiipkdnihall to shorten them to a list.
Save that list to some path
The list should be in the form of “ur_username\repo_name” per line. Use regex search (Sublime text could help). Search for ' |.*' and replace by empty.
| package main | |
| ## Install | |
| # sudo apt install golang-go | |
| # echo GOPATH=`pwd` | |
| # export GOPATH=`pwd` | |
| # go get -u -v github.com/appleboy/gin-jwt | |
| # go get -u -v github.com/gin-contrib/cors | |
| # go get -u -v github.com/gin-gonic/gin | |
| # go get -u -v github.com/derekparker/delve/cmd/dlv |
| app: | |
| image: node:latest | |
| command: "npm run dev" | |
| environment: | |
| HOST: 0.0.0.0 | |
| PORT: 3000 | |
| volumes: | |
| - .:/app | |
| - ./_logs/:/root/.npm/_logs/ | |
| working_dir: /app |
| package helper | |
| import ( | |
| "fmt" | |
| "unicode" | |
| ) | |
| func CapitalizeFirstChar(s string) string { | |
| a := []rune(s) | |
| a[0] = unicode.ToUpper(a[0]) |
| package main | |
| import "fmt" | |
| //Listener is a | |
| type Listener struct { | |
| ID int | |
| } | |
| //ListenerInterface is an |
| # This config will host your main [Laravel] GUI application at /, and any additional [Lumen] webservices at /api/v1 and /api/v2... | |
| # This also works perfectly for all static file content in all projects | |
| # This is full of debug comments so you can see how to print debug output to browser! Took me hours to nail this perfect config. | |
| # Example: | |
| # http://example.com - Main Laravel site as usual | |
| # http://example.com/about - Main Laravel site about page as usual | |
| # http://example.com/robots.txt - Main Laravel site static content as usual | |
| # http://example.com/api/v1 - Lumen v1 api default / route | |
| # http://example.com/api/v1/ - Lumen v1 api default / route |
| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |