Skip to content

Instantly share code, notes, and snippets.

View SuperMohit's full-sized avatar
💭
Rusting with MongoDB

Mohit Talniya SuperMohit

💭
Rusting with MongoDB
View GitHub Profile
# ORY Hydra Configuration
#
#
# !!WARNING!!
# This configuration file is for documentation purposes only. Do not use it in production. As all configuration items
# are enabled, it will not work out of the box either.
#
#
# ORY Hydra can be configured using a configuration file and passing the file location using `--config path/to/config.yaml`.
# Per default, ORY Hydra will look up and load file ~/.hydra.yaml. All configuration keys can be set using environment
$ docker history goserver
IMAGE CREATED BY SIZE COMMENT
35b88a65d3e3 /bin/sh -c #(nop) CMD ["./goserver"] 0B
c28dbf880770 /bin/sh -c #(nop) COPY dir:163614f37970642bf… 6.55MB
03d74b9fd137 /bin/sh -c #(nop) WORKDIR /app 0B
196d12cf6ab1 /bin/sh -c #(nop) CMD ["/bin/sh"] 0B
<missing> /bin/sh -c #(nop) ADD file:25c10b1d1b41d46a1… 4.41MB
FROM golang:alpnie
WORKDIR /go/src/app
COPY main.go .
RUN go build -o goserver .
CMD ["./goserver"]
FROM golang:alpine AS builder
WORKDIR /go/src/app
COPY main.go .
RUN go build -o goserver .
FROM alpine
WORKDIR /app
COPY --from=builder /go/src/app/ /app/
CMD ["./goserver"]
FROM golang:1.11.2
WORKDIR /go/src/app
COPY main.go .
RUN go build -o goserver .
CMD ["./goserver"]
@SuperMohit
SuperMohit / main.go
Last active November 17, 2018 19:01
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
http.Handle("/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
// Basic Syntax match, reply
+ when I see this
- reply with this
// Multiple replies, one choosen at random
+ when I see this
- reply with this
- or reply with this
// Alternates words in match
<!--
_ _ _ _
| |__ __ _ ___| | _____ _ __ ___ __ _ _ __| |_| |__
| '_ \ / _` |/ __| |/ / _ \ '__/ _ \/ _` | '__| __| '_ \
| | | | (_| | (__| < __/ | | __/ (_| | | | |_| | | |
|_| |_|\__,_|\___|_|\_\___|_| \___|\__,_|_| \__|_| |_|
PS: Your task is to implement additional feature in this game named escapa.
@SuperMohit
SuperMohit / designer.html
Last active August 29, 2015 14:11
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-radio-group/paper-radio-group.html">
<link rel="import" href="../paper-radio-button/paper-radio-button.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-button/paper-button.html">