Skip to content

Instantly share code, notes, and snippets.

View gokhansengun's full-sized avatar

Gökhan Şengün gokhansengun

View GitHub Profile
@gokhansengun
gokhansengun / main.py
Last active April 5, 2020 13:19
Income-Tax Mapping for Turkey 2020
# build and run with Python >3.6
def build_income_samples():
sample_income_ranges = []
sample_incomes = []
sample_income_ranges.append({
"start": 3000,
"step" : 1000,
"stop" : 32000
@gokhansengun
gokhansengun / example_mapping
Created July 23, 2019 21:59
elasticsearch-dump issue
{
"mappings": {
"properties": {
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
@gokhansengun
gokhansengun / Basic Envoy Filter
Last active April 30, 2019 17:40
Istio - EnvoyFilter Lua Double Call Issue
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: filter-details-lua
namespace: default
spec:
workloadLabels:
app: details
filters:
- filterConfig:
@gokhansengun
gokhansengun / Envoy Conf
Last active April 30, 2019 05:10
Istio - EnvoyFilter Lua Issue
static_resources:
listeners:
- address:
socket_address:
address: 0.0.0.0
port_value: 80
filter_chains:
- filters:
- name: envoy.http_connection_manager
typed_config:
INFO global: Vagrant version: 2.2.0
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.0/gems/vagrant-2.2.0/bin/vagrant"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_LOG="debug"
WARN global: resolv replacement has not been enabled!
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.0/gems/vagrant-2.2.0/plugins/synced_folders/nfs/plugin.rb
@gokhansengun
gokhansengun / Vagrantfile
Created February 21, 2018 19:10
Vagrantfile used in Istanbul Coders - Kubernetes Introduction Meetup
# -*- mode: ruby -*-
# vi: set ft=ruby :
K8S_DEV_BOX_NAME = "gsengun/k8s-dev-box"
K8S_DEV_BOX_VERSION = "17.12.27"
MASTER_NODE_IP_START="172.27.44.20"
WORKER_NODE_IP_START="172.27.44.10"
JOIN_TOKEN="abcdef.1234567890123456"
{
"Ansi 6 Color" : {
"Green Component" : 0.9137254901960784,
"Blue Component" : 0.99215686274509807,
"Red Component" : 0.54509803921568623
},
"Tags" : [
],
"Ansi 12 Color" : {
@gokhansengun
gokhansengun / atölye hazırlık.md
Last active April 24, 2017 18:26
devnot - Docker Atölyesi - 4 Şubat

Atölyede Demo'larda Kullanılacak İşletim Sistemi ve Programlar

Aşağıdaki konfigürasyonun aynısına sahip olursanız adımları daha kolay takip edebilirsiniz.

Önemli Not: Docker kurulumu yapıldıktan sonra Docker'ın en güncel sürüme (an itibari ile 17.04.0-ce) yükseltilmesi iyi olacaktır.

  • İşletim sistemi Windows 10 ve minimum build number 10568 (1511 November update) kullanılacaktır.
  • Windows 10 işletim sisteminde güncellemeleri denetleyerek gerekli versiyona geçiş yapabilirsiniz.
  • Windows 10 üzerine Docker for Windows kurulumu (https://docs.docker.com/docker-for-windows/) yapılmıştır.