Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Batuhan Bayrakci baybatu

🏠
Working from home
View GitHub Profile
@baybatu
baybatu / zalenium-vs-selenium-grid-archs.md
Last active Apr 19, 2021
simple zalenium vs selenium grid (w/o docker) architecture comparison
View zalenium-vs-selenium-grid-archs.md

Following diagram depicts Jenkins as the test runner. Zalenium Hub spawns docker containers that each one include target browsers that we want to run our test on.

zalenium_arch

@baybatu
baybatu / uniq-tekillestirme-yontemi.md
Last active Apr 3, 2021
uniq aracinin sadece komsu satirlari tekillestirmesi / uniq tool makes only adjacent rows unique
View uniq-tekillestirme-yontemi.md

uniq araci sadece komsu satirlari kullanarak tekillestirme yapar.

$ cat test.txt
a
a
a
b
b
c
@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
Created Mar 20, 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