go get
uses git internally. The following one liners will make git
and consequently go get
clone your package via SSH.
Github:
git config --global url."[email protected]:".insteadOf "https://github.com/"
BitBucket:
version: '3' | |
services: | |
neo4j: | |
image: neo4j:latest | |
network_mode: "bridge" | |
ports: | |
- "7474:7474" | |
- "7687:7687" | |
environment: |
version: "3.2" | |
services: | |
zero: | |
image: dgraph/dgraph:latest | |
volumes: | |
- type: volume | |
source: dgraph | |
target: /dgraph | |
volume: | |
nocopy: true |
# <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
# |<---- Using a Maximum Of 50 Characters ---->| | |
# Explain why this change is being made | |
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
# Provide links or keys to any relevant tickets, articles or other resources | |
# Example: Github issue #23 |
git filter-branch --env-filter ' | |
oldname="OLD_NAME" | |
oldemail="OLD_EMAIL" | |
newname="NEW_NAME" | |
newemail="NEW_EMAIL" | |
[ "$GIT_AUTHOR_EMAIL"="$oldemail" ] && GIT_AUTHOR_EMAIL="$newemail" | |
[ "$GIT_COMMITTER_EMAIL"="$oldemail" ] && GIT_COMMITTER_EMAIL="$newemail" | |
[ "$GIT_AUTHOR_NAME"="$oldname" ] && GIT_AUTHOR_NAME="$newname" | |
[ "$GIT_COMMITTER_NAME"="$oldname" ] && GIT_COMMITTER_NAME="$newname" | |
' HEAD |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"os" | |
"time" | |
"github.com/rs/xid" | |
) |
# Welcome to Serverless! | |
# | |
# This file is the main config file for your service. | |
# It's very minimal at this point and uses default values. | |
# You can always add more config options for more control. | |
# We've included some commented out config examples here. | |
# Just uncomment any of them to get that config option. | |
# | |
# For full config options, check the docs: | |
# docs.serverless.com |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"acm:*", | |
"cloudformation:Create*", | |
"cloudformation:Delete*", | |
"cloudformation:Describe*", |
go get
uses git internally. The following one liners will make git
and consequently go get
clone your package via SSH.
Github:
git config --global url."[email protected]:".insteadOf "https://github.com/"
BitBucket:
# pull the latest Dgraph version with | |
docker pull dgraph/dgraph | |
# Run dgraphzero - set <VOLUMEPATH> and <CONTAINERNAME> | |
# <VOLUMEPATH> can be current working direcotory pwd | |
# docker run -it -p 5080:5080 -p 6080:6080 -p 8080:8080 -p 9080:9080 -p 8000:8000 -v pwd:/dgraph --name <CONTAINERNAME> dgraph/dgraph dgraph zero | |
docker run -it -p 5080:5080 -p 6080:6080 -p 8080:8080 -p 9080:9080 -p 8000:8000 -v <VOLUMEPATH>:/dgraph --name <CONTAINERNAME> dgraph/dgraph dgraph zero | |
# In another terminal, now run dgraph | |
docker exec -it <CONTAINERNAME> dgraph server --lru_mb 2048 --zero localhost:5080 |