Skip to content

Instantly share code, notes, and snippets.

View selcukusta's full-sized avatar

Selçuk Usta selcukusta

View GitHub Profile
-p 6081:6081 # container'ın 6081 portu ile lokal bilgisayarımın 6081 portu eşleniyor.
--link python:tornado-app # şu anda aktif olarak çalışan ve "python" ismini verdiğimiz container ile bu container'ımızı eşleştiriyoruz. Böylece bu container üzerinden "python" isimli container'a "tornado-app" adıyla (hostname) erişebileceğiz.
-v C:/Varnish:/etc/varnish/ # container içerisindeki /etc/varnish klasörü lokal bilgisayarımdaki C:/Varnish klasörü ile eşlenecek. Böylece lokal bilgisayarımda bu klasörde yapılan bir değişiklik otomatik olarak container'a da yansıyacak.
-it ubuntu:latest /bin/bash # bu container "ubuntu:latest" olarak indirilen image'ı kullanacak ve container shell komutları çalıştırılabilir (interaktif) olarak aktif olacak.
#
# This is an example VCL file for Varnish.
#
# It does not do anything by default, delegating control to the
# builtin VCL. The builtin VCL is called when there is no explicit
# return statement.
#
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/
# and https://www.varnish-cache.org/trac/wiki/VCLExamples for more examples.
{
"ImageId": "59087501c03c0e11d876924f",
"Url": "http://i.hurimg.com/i/hurriyet/100/0x0//59087501c03c0e11d876924f.jpg",
"Labels": [
{
"Point": 0.9518749713897705,
"Slug": "player",
"Name": "player"
},
{
using NetCoreTestCI.Framework;
using Xunit;
namespace NetCoreTestCI.Test
{
public class TextTest
{
[Theory]
[InlineData("Hello .Net Core!", "hello-net-core")]
[InlineData("Türkçe karakterler çok şanssız!", "turkce-karakterler-cok-sanssiz")]
language: none
build:
pre_ci_boot:
image_name: microsoft/dotnet
image_tag: 1.1-sdk
pull: true
options: "-e HOME=/root"
ci:
- sudo apt-get install -y xsltproc
docker pull docker.elastic.co/elasticsearch/elasticsearch:5.4.3
docker run --name elastic -d -p 9200:9200 -p 9300:9300 -v C:/volume-mappings/elastic-config:/usr/share/elasticsearch/config/synonyms/ -e "http.host=0.0.0.0" -e "transport.host=127.0.0.1" -e "xpack.security.enabled=false" docker.elastic.co/elasticsearch/elasticsearch:5.4.3
curl -X PUT \
http://localhost:9200/medium_sample_index \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0,
"analysis": {
"filter": {
curl -X POST \
http://localhost:9200/medium_sample_index/_bulk \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{"index":{"_index":"medium_sample_index", "_type":"sample_type", "_id" : 1}}
{ "title":"Fransız Basın Ajansı prestij ödüllerini dağıttı"}
{"index":{"_index":"medium_sample_index", "_type":"sample_type", "_id" : 2}}
{ "title":"Doktorlara kamu görevi zorunluluğu kalkıyor"}
'
curl -X POST \
http://localhost:9200/medium_sample_index/_search \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"query": {
"match": {
"title": "tabip"
}
}