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
const {GetTodoRequest} = require(‘./todos_pb.js’); | |
const {TodoServiceClient} = require(‘./todos_grpc_web_pb.js’); | |
const todoService = new proto.todos.TodoServiceClient(‘http://localhost:8080’); | |
const todoId = 1234; | |
var getTodoRequest = new proto.todos.GetTodoRequest(); |
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
protoc echo.proto \ | |
--js_out=import_style=commonjs:./output \ | |
--grpc-web_out=import_style=commonjs:./output |
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
Homebrew build logs for coredns on macOS 10.14.2 | |
Build date: 2019-01-31 09:32:03 |
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 ci | |
# The package.json is presumed faulty | |
default allow = false | |
# Packages that aren't allowed | |
blacklist = { | |
"event-stream", | |
"left-pad" | |
} |
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
{ | |
"private": true, | |
"dependencies": { | |
"event-stream": "^4.0.1", | |
"express": "^4.17.1", | |
"left-pad": "^1.3.0" | |
} | |
} |
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
workflow "OPA evaluation" { | |
on = "push" | |
resolves = ["install"] | |
} | |
# Determines whether the policy has been violated | |
action "evaluate" { | |
uses = "docker://openpolicyagent/opa:0.11.0" | |
args = [ | |
"eval", |
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
# Install doctl (DigitalOcean CLI tool) | |
brew install doctl | |
# Install kubectl | |
brew install kubernetes-cli | |
# Log into DigitalOcean | |
export DO_ACCESS_TOKEN=... | |
doctl auth login init --access-token ${DO_ACCESS_TOKEN} |
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
defmodule TasksAppWeb.TodoController do | |
use TasksAppWeb, :controller | |
use Plug.ErrorHandler | |
alias TasksApp.Todos | |
alias TasksApp.Todos.Todo | |
def index(conn, _params) do | |
todos = Todos.list_todos() | |
conn |
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
static_resources: | |
listeners: | |
- name: listener_0 | |
address: | |
socket_address: { address: 0.0.0.0, port_value: 8080 } | |
filter_chains: | |
- filters: | |
- name: envoy.http_connection_manager | |
config: | |
codec_type: auto |
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
warning: Target and debugger are in different PID namespaces; | |
thread lists and other data are likely unreliable. | |
Connect to gdbserver inside the container. |