This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install tmux 3.0a on Centos | |
| # install deps | |
| sudo yum install -y gcc kernel-devel make ncurses-devel | |
| # DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
| curl -LOk https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz | |
| tar -xf libevent-2.1.11-stable.tar.gz | |
| cd libevent-2.1.11-stable | |
| ./configure --prefix=/usr/local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create a local .env file with the following 4 properties: | |
| # | |
| # MYSQL_DATABASE=<something> | |
| # MYSQL_USER=<something> | |
| # MYSQL_PASSWORD=<something> | |
| # MYSQL_ROOT_PASSWORD=<something> | |
| # | |
| version: "3.8" | |
| services: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM golang:1.11.10-alpine3.9 | |
| RUN apk add git gcc g++ libc-dev | |
| WORKDIR /go/src/project-example/ | |
| COPY file-example.go . | |
| COPY file-example.yml . | |
| COPY go.mod . | |
| COPY go.sum . | |
| ENV GO111MODULE=on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "editor.lineNumbers": "relative", | |
| "editor.minimap.enabled" : false, | |
| // "go.buildOnSave": true, | |
| // "go.lintOnSave": true, | |
| // "go.vetOnSave": true, | |
| "go.buildTags": "", | |
| "go.buildFlags": [], | |
| "go.lintTool": "golint", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: root | |
| # Required-Start: $local_fs $remote_fs $network | |
| # Required-Stop: $local_fs $remote_fs $network | |
| # Should-Start: $named | |
| # Should-Stop: $named | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bufio" | |
| "encoding/csv" | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "os" | |
| "path/filepath" |