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
version: '2.2' | |
services: | |
create_certs: | |
container_name: create_certs | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.0 | |
command: > | |
bash -c ' | |
if [[ ! -f /certs/bundle.zip ]]; then | |
bin/elasticsearch-certutil cert --silent --pem --in config/certificates/instances.yml -out /certs/bundle.zip; |
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
instances: | |
- name: elasticsearch | |
dns: | |
- elasticsearch | |
- localhost | |
ip: | |
- 127.0.0.1 | |
- name: es02 | |
dns: |
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
version: '3' | |
services: | |
elasticsearch: | |
image: 'docker.elastic.co/elasticsearch/elasticsearch:7.13.0' | |
container_name: elasticsearch | |
environment: | |
- node.name=elasticsearch | |
- cluster.name=es-docker-cluster | |
- 'discovery.seed_hosts=es02,es03' | |
- 'cluster.initial_master_nodes=elasticsearch,es02,es03' |
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
version: '3' | |
services: | |
elasticsearch: | |
image: 'docker.elastic.co/elasticsearch/elasticsearch:7.13.0' | |
container_name: elasticsearch | |
environment: | |
- node.name=elasticsearch | |
- cluster.name=es-docker-cluster | |
- 'discovery.seed_hosts=es02,es03' | |
- 'cluster.initial_master_nodes=elasticsearch,es02,es03' |
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
version: '3' | |
services: | |
# Elasticsearch Docker Images: https://www.docker.elastic.co/ | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:latest | |
build: . | |
container_name: elasticsearch | |
environment: |
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 settings = new PrinterSettings(); | |
var startInfo = new ProcessStartInfo(); | |
startInfo.FileName = @"C:\Program Files\Microsoft Office\Office\WINWORD.EXE"; | |
startInfo.Arguments = @"test.rtf /q /n /mFilePrintDefault /mFileExit"; | |
var p = Process.Start(startInfo); |
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 settings = new PrinterSettings(); | |
var startInfo = new ProcessStartInfo(); | |
startInfo.FileName = @"C:\Program Files\Microsoft Office\Office\WINWORD.EXE"; | |
startInfo.Arguments = @"test.rtf /q /n /mFilePrintDefault /mFileExit"; | |
var p = Process.Start(startInfo); |
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
188.23.224.79 - - [17/Jul/2018:21:10:14 +0200] "GET /apple-touch-icon-120x120-precomposed.png HTTP/1.1" 404 246 "-" "MobileSafari/604.1 CFNetwork/901.1 Darwin/17.6.0" "-" | |
188.23.224.79 - - [17/Jul/2018:21:10:14 +0200] "GET /apple-touch-icon-120x120.png HTTP/1.1" 404 234 "-" "MobileSafari/604.1 CFNetwork/901.1 Darwin/17.6.0" "-" | |
188.23.224.79 - - [17/Jul/2018:21:10:14 +0200] "GET /apple-touch-icon-precomposed.png HTTP/1.1" 404 238 "-" "MobileSafari/604.1 CFNetwork/901.1 Darwin/17.6.0" "-" | |
188.23.224.79 - - [17/Jul/2018:21:10:14 +0200] "GET /apple-touch-icon.png HTTP/1.1" 404 226 "-" "MobileSafari/604.1 CFNetwork/901.1 Darwin/17.6.0" "-" | |
188.23.224.79 - - [17/Jul/2018:21:10:15 +0200] "GET /favicon.ico HTTP/1.1" 404 217 "-" "MobileSafari/604.1 CFNetwork/901.1 Darwin/17.6.0" "-" | |
188.23.224.79 - - [17/Jul/2018:21:10:15 +0200] "GET /apple-touch-icon-120x120-precomposed.png HTTP/1.1" 404 246 "-" "MobileSafari/604.1 CFNetwork/901.1 Darwin/17.6.0" "-" | |
188.23.224.79 - - [17/Jul/2018:21:10:15 +0200] "GET /apple-touch-ic |
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
def vars(n): | |
for i in range(n): | |
globals()['v'+str(i)] = i*i | |
vars(8) | |
print v6 |
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
def factory(i): | |
def do(): | |
print range(i) | |
return do | |
z = factory(10) | |
z() | |
NewerOlder