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
| var repos = LogManager.GetRepository(Assembly.GetEntryAssembly()); | |
| XmlConfigurator.Configure(repos, new FileInfo(configFile)); | |
| log = LogManager.GetLogger(typeof(SomeType)) |
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
| ... | |
| services: | |
| - docker | |
| ... |
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
| ... | |
| after_script: | |
| - docker image build -f Dockerfile_Travis . --tag $DOCKER_REPO | |
| - docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD | |
| - docker push $DOCKER_REPO | |
| ... |
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
| upstream app-a { | |
| server tomcat1:8080; | |
| } | |
| upstream app-b { | |
| server tomcat2:8080; | |
| } | |
| server { | |
| listen 80; |
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
| version: '3' | |
| services: | |
| nginx: | |
| build: ./nginx | |
| ports: | |
| - "8080:80" | |
| volumes: | |
| - "/home/ant/projects/nginxreverseproxy/nginx/conf/default.conf:/etc/nginx/conf.d/default.conf" | |
| tomcat1: |
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
| var response = _client.Search<ElasticFileInfo>(s => s | |
| .Index(_indexName) | |
| .From(0) | |
| .Size(10000) | |
| .Query(qry => qry.QueryString(q => q.Query(queryString))) | |
| .StoredFields(f => f.Fields(p => p.CreatedBy)) | |
| .Aggregations(a => a | |
| .Terms("types", st => st | |
| .Field(f => f.Type)) | |
| .Terms("addedby", st => st |
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
| GET fileinfoindex/elasticfileinfo/_search | |
| { | |
| "aggs": { | |
| "types" : { "terms" : { "field" : "type" } }, | |
| "addedby" : { "terms" : { "field" : "createdBy.keyword"} } | |
| } | |
| } |
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
| GET fileinfoindex/elasticfileinfo/_search | |
| { | |
| "aggs": { | |
| "types" : { "terms" : { "field" : "type" } }, | |
| "addedby" : { "terms" : { "field" : "createdBy"} } | |
| } | |
| } |
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
| puts "Hello World" | |
| puts "Hello World" | |
| puts "Hello World" | |
| puts "Hello World" | |
| puts "Hello World" | |
| puts "Hello World" | |
| puts "Hello World" | |
| puts "Hello World" | |
| puts "Hello World" | |
| puts "Hello World" |
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
| class Antony | |
| def initialize name | |
| @name = name | |
| end | |
| end |