I hereby claim:
- I am undeadops on github.
- I am undeadops (https://keybase.io/undeadops) on keybase.
- I have a public key ASBKNn51w9FkqxiL8yzDNnF9bT2E_fChEpn1737dh6VLgQo
To claim this, I am signing this object:
| FROM debian:jessie | |
| MAINTAINER Mitch Anderson "[email protected]" | |
| RUN apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 | |
| RUN echo "deb http://nginx.org/packages/mainline/debian/ jessie nginx" >> /etc/apt/sources.list | |
| ENV NGINX_VERSION 1.9.9-1~jessie | |
| RUN apt-get update && \ | |
| apt-get install -y ca-certificates nginx=${NGINX_VERSION} && \ |
| # Calculate Highest Class Average from student Average (exclude quizes) | |
| ### Data ### | |
| > db.grades.findOne() | |
| { | |
| "_id" : ObjectId("50b59cd75bed76f46522c351"), | |
| "student_id" : 0, | |
| "class_id" : 16, | |
| "scores" : [ | |
| { | |
| "type" : "exam", |
| dependencies: | |
| cache_directories: | |
| - terraform_0.6.16 | |
| pre: | |
| - mkdir -p terraform_0.6.16 | |
| - wget -O terraform_0.6.16/terraform_0.6.16_linux_amd64.zip https://releases.hashicorp.com/terraform/0.6.16/terraform_0.6.16_linux_amd64.zip | |
| - unzip terraform_0.6.16/terraform_0.6.16_linux_amd64.zip | |
| test: | |
| override: |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| // Custom Middleware for validating token | |
| func TokenAuthMiddleware() gin.HandlerFunc { | |
| return func(c *gin.Context) { | |
| token := c.Request.Header.Get("X-Auth") | |
| fmt.Println("X-Auth: ") | |
| fmt.Println(token) | |
| if token == "" { |
| package main | |
| func main() { | |
| log.Println("Starting app...") | |
| app := gin.Default() | |
| app.Use(DummyMiddleware) | |
| app.Use(TokenAuthMiddleware()) | |
| v1 := app.Group("/v1") | |
| { | |
| v1.POST("/alerts", v1Alerts) |
| version: 2.0 | |
| jobs: | |
| build: | |
| working_directory: ~/knex | |
| docker: | |
| - image: hashicorp/terraform:0.10.0 | |
| steps: | |
| - checkout | |
| - run: |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/aws/aws-sdk-go-v2/aws" | |
| "github.com/aws/aws-sdk-go-v2/aws/awserr" | |
| "github.com/aws/aws-sdk-go-v2/aws/external" | |
| "github.com/aws/aws-sdk-go-v2/service/route53" | |
| ) |
| package main | |
| import ( | |
| "fmt" | |
| "strings" | |
| ) | |
| func contains(slice []string, item string) bool { | |
| set := make(map[string]struct{}, len(slice)) | |
| for _, s := range slice { |
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "$$hashKey": "object:84", | |
| "builtIn": 1, | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", |