Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Batuhan Bayrakci baybatu

🏠
Working from home
View GitHub Profile
@baybatu
baybatu / couchbase-partial-document-update.md
Last active Apr 1, 2021
Couchbase kismi guncelleme / Partial document update in Couchbase
View couchbase-partial-document-update.md
@baybatu
baybatu / generate-random-data-sequence-presto.sql
Last active Mar 25, 2021
Generate random data using Presto
View generate-random-data-sequence-presto.sql
select 5 from unnest(sequence(1, 6))
-- generates 6 row containing '5' as an example data
-- column
-- 5
-- 5
-- 5
-- 5
-- 5
-- 5
@baybatu
baybatu / yaml-cift-tirnak.md
Last active May 3, 2021
Iyi pratik ornegi olarak Yaml dosyalarinda cift tirnak kullanimi
View yaml-cift-tirnak.md

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 Mar 11, 2021
Flink fix of java.lang.ClassNotFoundException: org.apache.flink.api.scala.typeutils.CaseClassTypeInfo
View flink-classnotfoundexception-fix.md
@baybatu
baybatu / logback-graylog-spark-integration.md
Last active Feb 24, 2021
Logback - Graylog (GELF) integration on Apache Spark
View logback-graylog-spark-integration.md

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 Jan 29, 2021
cocoapods pod publish commands
View cocoapods-publish-commands.md
git tag VERSION
git push origin tag VERSION
pod trunk push
@baybatu
baybatu / sound-restart.sh
Created Jan 14, 2021
restart sound nanesi on macos
View sound-restart.sh
#!/bin/bash
sudo kill -9 `ps ax|grep 'coreaudio[a-z]' | awk '{print $1}'
@baybatu
baybatu / mjml-responsive-mails.md
Created Dec 25, 2020
MJML : Markup language for responsive mails
View mjml-responsive-mails.md