See the README at the original gist: https://gist.github.com/mjpitz/0df6fd7982129ed620100423ced921ef
Download this gist's ZIP file and extract it to a directory called dgraph-nginx
.
mkdir dgraph-nginx
cd dgraph-nginx
wget -O dgraph-nginx.zip https://gist.github.com/danielmai/0cf7647b27c7626ad8944c4245a9981e/archive/5a2f1a49ca2f77bc39981749e4783e3443eb3ad9.zip
unzip -j dgraph-nginx.zip
This creates two files: docker-compose.yml
and nginx.conf
.
This file contains 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
version: "3.2" | |
services: | |
zero: | |
image: dgraph/dgraph:latest | |
volumes: | |
- type: bind | |
source: $HOME/dgraph | |
target: /dgraph | |
ports: | |
- 5080:5080 |
I hereby claim:
* I am danielmai on github. * I am dmai (https://keybase.io/dmai) on keybase. * I have a public key ASD5esbHAu4zoG-4hsJ5CQxsPbju-9ToEvCWAfqgfv8S0Ao
To claim this, I am signing this object:
This file contains 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 com.example.android.sunshine.app.ui; | |
import android.support.test.rule.ActivityTestRule; | |
import android.support.test.runner.AndroidJUnit4; | |
import android.test.suitebuilder.annotation.LargeTest; | |
import com.example.android.sunshine.app.MainActivity; | |
import com.example.android.sunshine.app.R; | |
import org.junit.Rule; |
This file contains 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
Program NoNulChar; | |
TYPE | |
Buffer = PACKED ARRAY[0..200] of char; | |
VAR | |
B : Buffer; | |
BEGIN | |
readln(B); |
This file contains 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
read = %x(defaults read com.apple.universalaccess | grep stickyKey) | |
if /stickyKey = 0;$/ =~ read | |
%x(defaults write com.apple.universalaccess stickyKey 1) | |
else | |
%x(defaults write com.apple.universalaccess stickyKey 0) | |
end | |
%x(killall universalaccessd) |
This file contains 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
// ==UserScript== | |
// @name No Ctrl-K for Udacity Discussions! | |
// @namespace http://your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @author You | |
// @match https://discussions.udacity.com/* | |
// @grant none | |
// ==/UserScript== |
NewerOlder