This file contains hidden or 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
db = new Mongo().getDB("XXX"); | |
db.getCollection('YYY').createIndex({ pid: 1 }, { name: 'AAA' }) | |
db.getCollection('YYY').createIndex({ v: 1 }, { name: 'BBB' }) | |
db.getCollection('ZZZ').createIndex({ as: 1 }, { name: 'CCC' }) |
This file contains hidden or 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
{ | |
"swagger" : "2.0", | |
"info" : { | |
"description" : "The REST API provides an interface to a registry with operations for saving, versioning, reading NiFi flows and components.", | |
"version" : "0.2.0", | |
"title" : "NiFi Registry REST API", | |
"contact" : { | |
"name" : "Apache NiFi Registry", | |
"url" : "https://nifi.apache.org", | |
"email" : "[email protected]" |
This file contains hidden or 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
{ | |
"swagger" : "2.0", | |
"info" : { | |
"description" : "The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and \n stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description,\n definitions of the expected input and output, potential response codes, and the authorizations required\n to invoke each service.", | |
"version" : "1.6.0", | |
"title" : "NiFi Rest Api", | |
"contact" : { | |
"url" : "https://nifi.apache.org", | |
"email" : "[email protected]" | |
}, |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration scan="true" scanPeriod="30 seconds"> | |
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"> | |
<resetJUL>true</resetJUL> | |
</contextListener> | |
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | |
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> | |
<pattern>%date %level [%thread] %logger{40} %msg%n</pattern> | |
</encoder> |
This file contains hidden or 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
{ | |
"swagger": "2.0", | |
"info": { | |
"description": "This is a sample server Petstore server. You can find out more about Swagger at <a href='http://swagger.wordnik.com'>http://swagger.wordnik.com</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key 'special-key' to test the authorization filters", | |
"version": "1.0.0", | |
"title": "Petstore API", | |
"contact": {}, | |
"license": { | |
"name": "Apache 2.0", | |
"url": "http://www.apache.org/licenses/LICENSE-2.0.html" |
This file contains hidden or 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
AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXX AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXXXX rio -vvv info s3://utwrap-lambdastats/foa_UT.tif | |
DEBUG:rasterio.env:Environment <rasterio._drivers.GDALEnv object at 0x7f2cc9fe9360> exists | |
DEBUG:rasterio.env:Got a copy of environment <rasterio._drivers.GDALEnv object at 0x7f2cc9fe9360> options | |
DEBUG:rasterio._drivers:Set option CPL_DEBUG=True in env <rasterio._drivers.GDALEnv object at 0x7f2cc9fe9360> | |
DEBUG:rasterio.env:Updated existing <rasterio._drivers.GDALEnv object at 0x7f2cc9fe9360> with options {'CPL_DEBUG': True} | |
DEBUG:rasterio.env:Entering env <rasterio.env.Env object at 0x7f2cc426ec90> context | |
DEBUG:rasterio.env:Environment <rasterio._drivers.GDALEnv object at 0x7f2cc9fe9360> exists | |
DEBUG:botocore.credentials:Looking for credentials via: env | |
INFO:botocore.credentials:Found credentials in environment variables. | |
DEBUG:rasterio.env:Environment <rasterio._drivers.GDALEnv object at 0x7f2cc9fe9360> exists |
This file contains hidden or 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
namespace Zoo | |
open System | |
open System.Web | |
open System.Web.Http | |
open System.Web.Http.Tracing | |
open System.Net.Http | |
open System.Net | |
open System.Data.SQLite | |
open System.Configuration |
This file contains hidden or 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
#r "./FAKE/tools/FakeLib.dll" | |
#r "System.Xml" | |
#load "initializeProperties.fsx" | |
open InitializeProperties | |
open Fake | |
open System | |
open System.IO | |
open System.Configuration | |
open System.Xml |
This file contains hidden or 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
OpenLayers.Control.NewDrawFeatureEx = OpenLayers.Class(OpenLayers.Control.DrawFeature, { | |
initialize: function (layer, handler, options) { | |
OpenLayers.Control.DrawFeature.prototype.initialize.apply(this, [layer, handler, options]); | |
// configure the keyboard handler | |
this.keyboardCallbacks = { | |
keydown: this.handleKeyDown | |
}; | |
this.keyboardHandler = new OpenLayers.Handler.Keyboard(this, this.keyboardCallbacks, {}); | |
}, |
NewerOlder