Skip to content

Instantly share code, notes, and snippets.

View baybatu's full-sized avatar
🏠
Working from home

Batuhan Bayrakci baybatu

🏠
Working from home
View GitHub Profile
@baybatu
baybatu / yaml-cift-tirnak.md
Last active May 3, 2021 11:59
Iyi pratik ornegi olarak Yaml dosyalarinda cift tirnak kullanimi

Yaml dosyalarda yes, on, true gibi degerlerin hepsi boolean true degerine eslestiriliyor. Bu da gozden kactiginda tespiti zor buglara neden oluyor.

Bu tarz sorunlardan bastan kacinmak icin string alanlari cift tirnak ile cevrelemek iyi bir pratik.

🚫 Kotu ornek:

watermark:
  - no
 - yes
@baybatu
baybatu / flink-classnotfoundexception-fix.md
Last active March 11, 2021 07:24
Flink fix of java.lang.ClassNotFoundException: org.apache.flink.api.scala.typeutils.CaseClassTypeInfo
@baybatu
baybatu / logback-graylog-spark-integration.md
Last active February 24, 2021 10:41
Logback - Graylog (GELF) integration on Apache Spark

Assuming SPARK_HOME=/spark246

  • Put logback.xml into $SPARK_HOME/conf
  • Create additionaljars directory under $SPARK_HOME
  • Download required logback and logback-gelf related jars into additionaljars directory
    • log4j-over-slf4j-1.7.30.jar
    • logback-core-1.2.3.jar
    • logback-classic-1.2.3.jar
    • logback-gelf-2.2.0.jar
  • Tell Spark to use custom jar folder additionaljars as primarily classpath folder using following spark-submit parameters:
@baybatu
baybatu / cocoapods-publish-commands.md
Last active January 29, 2021 20:45
cocoapods pod publish commands
git tag VERSION
git push origin tag VERSION
pod trunk push
@baybatu
baybatu / sound-restart.sh
Created January 14, 2021 08:40
restart sound nanesi on macos
#!/bin/bash
sudo kill -9 `ps ax|grep 'coreaudio[a-z]' | awk '{print $1}'
@baybatu
baybatu / mjml-responsive-mails.md
Created December 25, 2020 11:20
MJML : Markup language for responsive mails
@baybatu
baybatu / finagle-http2-frame-logger.md
Last active December 24, 2020 10:30
Log http2 frames on a finagle service
import com.twitter.finagle.http2.param.FrameLoggerNamePrefix
val service =
        Http
          .client
          .withLabel("service-label")
          .configured(FrameLoggerNamePrefix(this.getClass.getName))
          .withHttp2
          .newService("localhost:8080")
@baybatu
baybatu / docker-overwrite-entrypoint.md
Last active December 17, 2020 07:10
Run command in a docker container without running entrypoint
@baybatu
baybatu / log4j2-logstash-flink-configuration.md
Last active December 25, 2020 21:01
log4j2 example logstash configuration for flink 1.11