I hereby claim:
- I am majest on github.
- I am majes (https://keybase.io/majes) on keybase.
- I have a public key ASC9-Px7TYYw4PJ-zW5etzBX0wL1qzXOKrDJt1vk7Lws5Ao
To claim this, I am signing this object:
test 2 |
package sqlite | |
import ( | |
"database/sql" | |
sqliteGo "github.com/mattn/go-sqlite3" | |
uuid "github.com/satori/go.uuid" | |
log "github.com/sirupsen/logrus" | |
"gorm.io/driver/sqlite" | |
"gorm.io/gorm" |
IFS= | |
for command in go unzip git curl node npm | |
do | |
which $command &>/dev/null && echo "$command in path" || echo "$command NOT FOUND" | |
done | |
GEN_VERSION=1.25.0 | |
GRPC_VERSION=1.26.0 | |
GENGRPC_VERSION=1.0.1 |
package main | |
import ( | |
"database/sql" | |
sqliteGo "github.com/mattn/go-sqlite3" | |
uuid "github.com/satori/go.uuid" | |
log "github.com/sirupsen/logrus" | |
"gorm.io/driver/sqlite" | |
"gorm.io/gorm" | |
"gorm.io/gorm/logger" |
# Makefile | |
This loads the env file and evaluates the export from it | |
so that those envs are available in environment and makefile itself. | |
It will try to load a file $path/.local.env | |
Good for the Makefile IF you DON'T use multiline vars | |
If you have multilines, use a different solution than loading env vars | |
via Makefile or `source .env` manually | |
``` |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"io" | |
"net/http" | |
"os" | |
"time" | |
"google.golang.org/grpc" |
ami-50f4b927 - AMI for EU Ireland | |
Master : https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/coreos/cloud-configs/master.yaml | |
Node: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/coreos/cloud-configs/node.yaml | |
ssh core@ip | |
kubectl run nginx --image=nginx | |
kubectl expose pod nginx-m7qjn --port=80 --public-ip="10.0.1.183" |
exports.saveLog = function (userId, title, request, response, errors, type) { | |
var log = { userId: userId, title: title, status: 'ok', type: type }; | |
log.details = { request: request, response: response }; | |
if (errors != null && errors.length !== 0) { | |
log.details.response = errors; | |
log.type = type + '_error'; | |
log.status = 'error'; | |
} |
package main | |
import ( | |
"net/http" | |
) | |
func main() { | |
http.Handle("/", http.FileServer(http.Dir("./"))) | |
http.ListenAndServe(":10000", nil) | |
} |