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
worker_processes 1; | |
events { | |
worker_connections 1024; ## Default: 1024 | |
} | |
http { | |
gzip on; | |
gzip_disable "msie6"; |
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
➜ dev docker run --rm -it -p 8080:8080 monolith4 | |
Using CATALINA_BASE: /usr/local/tomcat | |
Using CATALINA_HOME: /usr/local/tomcat | |
Using CATALINA_TMPDIR: /usr/local/tomcat/temp | |
Using JRE_HOME: /usr/lib/jvm/java-8-openjdk-amd64/jre | |
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar | |
20-Jan-2017 15:18:31.126 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.11 | |
20-Jan-2017 15:18:31.131 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jan 10 2017 21:02:52 UTC | |
20-Jan-2017 15:18:31.133 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.11.0 | |
20-Jan-2017 15:18:31.134 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux |
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 logs shopstage-production-2487752139-1x1an | |
get api prods 0.238secs | |
http://a09c62eec848911e6b21312be7e43409-1504263141.us-east-1.elb.amazonaws.com/api/v1/entrees/categories?secret=df7df7jh4j3jkdfjd7 | |
aggregateApiProducts 0.011secs | |
get api prods 0.167secs | |
http://a09c62eec848911e6b21312be7e43409-1504263141.us-east-1.elb.amazonaws.com/api/v1/entrees/categories?secret=df7df7jh4j3jkdfjd7 | |
aggregateApiProducts 0.011secs | |
get api prods 0.169secs | |
http://a09c62eec848911e6b21312be7e43409-1504263141.us-east-1.elb.amazonaws.com/api/v1/entrees/categories?secret=df7df7jh4j3jkdfjd7 | |
aggregateApiProducts 0.012secs |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Application xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="fabric:/ContosoEventsApp" xmlns="http://schemas.microsoft.com/2011/01/fabric"> | |
<Parameters> | |
<Parameter Name="TicketOrderService_PartitionCount" Value="1" /> | |
<Parameter Name="TicketOrderService_MinReplicaSetSize" Value="3" /> | |
<Parameter Name="TicketOrderService_TargetReplicaSetSize" Value="3" /> | |
<Parameter Name="WebApi_InstanceCount" Value="1" /> | |
<Parameter Name="TicketOrderActorService_PartitionCount" Value="1" /> | |
<Parameter Name="EventActorService_PartitionCount" Value="1" /> | |
<Parameter Name="DataStorageEndpointUri" Value="https://db32.documents.azure.com:443/" /> |
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
module.exports = (grunt) -> | |
grunt.initConfig | |
coffee: | |
src: | |
options: | |
bare: true | |
sourceMap: true | |
expand: true |
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
var racerAccess = require('racer-access'); | |
derby.use(racerAccess); | |
var store = derby.createStore(); | |
// This is current racer-access api | |
store.allow('change', 'users', function(docName, changeTo, snapshotData, connectSession) { | |
return; | |
}); | |
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
derby = require 'derby' | |
auth = require '../../app/auth' | |
creation = require '../../app/crud/creation' | |
schemas = require '../../app/schemas' | |
settings = require '../../app/settings' | |
validation = require './validation' | |
util = require '../../app/util' | |
module.exports = |
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
ALLOWED_COLLECTIONS = [ | |
'auths' # Private user data | |
] | |
store.allow 'create', 'auths', (docId, newDoc, session) -> | |
console.log '[Auths] CREATE' | |
undefined | |
store.allow 'all', 'auths.*', (docId, relPath, opData, docBeingUpdated, session) -> | |
console.log '[Auths] CHANGE' |
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/sh | |
# ppa | |
# node.js | |
add-apt-repository -y ppa:chris-lea/node.js | |
# mongodb | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list | |
# redis | |
add-apt-repository -y ppa:chris-lea/redis-server |
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
scala> hc.sql("select * from price_equities_technicals where marketdate = 1443052800000 and sid = 21438 limit 1").show() | |
15/09/25 21:35:09 INFO parse.ParseDriver: Parsing command: select * from price_equities_technicals where marketdate = 1443052800000 and sid = 21438 limit 1 | |
15/09/25 21:35:09 INFO parse.ParseDriver: Parse Completed | |
15/09/25 21:35:09 INFO columnar.InMemoryColumnarTableScan: Predicate (marketdate#0L = 1443052800000) generates partition filter: ((marketdate.lowerBound#3073L <= 1443052800000) && (1443052800000 <= marketdate.upperBound#3072L)) | |
15/09/25 21:35:09 INFO columnar.InMemoryColumnarTableScan: Predicate (sid#1 = 21438) generates partition filter: ((sid.lowerBound#3078 <= 21438) && (21438 <= sid.upperBound#3077)) | |
15/09/25 21:35:09 INFO spark.SparkContext: Starting job: runJob at SparkPlan.scala:122 | |
15/09/25 21:35:09 INFO scheduler.DAGScheduler: Got job 10 (runJob at SparkPlan.scala:122) with 1 output partitions (allowLocal=false) | |
15/09/25 21:35:09 INFO scheduler.DAGScheduler: Final stage: |
NewerOlder