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
/** | |
* Main function to run to update our forms. | |
*/ | |
function main(formID) { | |
var dropdown = findDropdown_(formID || '1l3Txklywu6AF6jfkzMRPccdzpsOkhHLoOhNol9OwVV4', 'Agreement Group') | |
dropdown.setChoiceValues(getAgreementGroups_()); | |
} | |
/** | |
* Get the latest agreement groups available to select from. |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
annotations: | |
name: lua-libs | |
namespace: gateways | |
data: | |
JSON.lua: "-- -*- coding: utf-8 -*-\n--\n-- Simple JSON encoding and decoding in | |
pure Lua.\n--\n-- Copyright 2010-2017 Jeffrey Friedl\n-- http://regex.info/blog/\n-- | |
Latest version: http://regex.info/blog/lua/json\n--\n-- This code is released |
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
kubectl apply -n gateways -f - <<EOF | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: EnvoyFilter | |
metadata: | |
name: lua-filter-example | |
spec: | |
configPatches: | |
- applyTo: HTTP_FILTER | |
match: | |
context: ANY # Adjust if needed for your use case |
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
function onEdit(e) { | |
// Get the range that was edited | |
var range = e.range; | |
var sheet = range.getSheet(); | |
// Specify the column that triggers the email (e.g., column 3 is column C) | |
var triggerColumn = 3; | |
// Check if the edited column is the one we are interested in | |
if (range.getColumn() == triggerColumn) { | |
// Get the row of the edited cell | |
var row = range.getRow(); |
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
{ | |
"id": "Protect a People API with Consent Check", | |
"match": { | |
"url": "http://api.woven-city.io/api/people/contacts", | |
"methods": [ "GET" ] | |
}, | |
"upstream": { | |
"url": "https://my_container_or_dns:8080/api/people/contacts" | |
}, | |
"authenticators": [{ |
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
#!/bin/bash | |
TABLE=$1 | |
MAX=$2 | |
echo "Examining Table $TABLE...." | |
echo "scan 'hbase:meta',{ COLUMNS => 'info:server', FILTER=>\"PrefixFilter('$TABLE')\"}" | hbase shell > "$TABLE.out" 2>&1 | |
echo "Making splits $TABLE.splits" | |
echo "" > "$TABLE.splits" |
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
hadoop fsck / | egrep -v '^\.+$' | grep -v corrup | grep / | grep -oh '^\S*:' | rev | cut -c 2- | rev | sort | uniq > corrupted.flst |
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
[#ftl] | |
[#-- @ftlvariable name="resourceApis" type="java.util.List<com.webcohesion.enunciate.api.resources.ResourceApi>" --] | |
[#-- @ftlvariable name="serviceApis" type="java.util.List<com.webcohesion.enunciate.api.services.ServiceApi>" --] | |
[#-- @ftlvariable name="data" type="java.util.List<com.webcohesion.enunciate.api.datatype.Syntax>" --] | |
[#-- @ftlvariable name="title" type="java.lang.String" --] | |
[#-- @ftlvariable name="disableMountpoint" type="java.lang.Boolean" --] | |
[#-- @ftlvariable name="disableResourceLinks" type="java.lang.Boolean" --] | |
[#-- @ftlvariable name="apiRelativePath" type="java.lang.String" --] | |
[#-- @ftlvariable name="includeApplicationPath" type="java.lang.Boolean" --] |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Catalina News</title> | |
</head> | |
<link href="https://fonts.googleapis.com/css?family=Noto+Sans|Roboto:100,300,400,500" rel="stylesheet"> | |
<style> | |
body { | |
margin: 0px 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
Exception in thread "iothread-2" java.lang.NullPointerException | |
at zmq.Utils.tuneTcpSocket(Utils.java:48) | |
at zmq.TcpListener.acceptEvent(TcpListener.java:91) | |
at zmq.IOObject.acceptEvent(IOObject.java:123) | |
at zmq.Poller.run(Poller.java:250) | |
at java.lang.Thread.run(Thread.java:748) | |
Exception in thread "iothread-2" java.lang.NullPointerException | |
at zmq.Utils.tuneTcpSocket(Utils.java:48) | |
at zmq.TcpListener.acceptEvent(TcpListener.java:91) | |
at zmq.IOObject.acceptEvent(IOObject.java:123) |
NewerOlder