Skip to content

Instantly share code, notes, and snippets.

View Gatsby-Lee's full-sized avatar
😆

Gatsby Lee Gatsby-Lee

😆
  • forethought.ai
  • SF Bay Area, United States
View GitHub Profile
@axdotl
axdotl / helm-values.yaml
Last active December 29, 2023 23:10
Helm example values for stable/jenkins v1.1.17
master:
useSecurity: true
adminUser: "admin"
fsGroup: 1000
runAsUser: 1000
serviceType: ClusterIP
installPlugins:
@timvw
timvw / App.scala
Last active September 28, 2022 23:36
Spark structured streaming: Commit source offsets to Kafka on QueryProgress
val groupId = "demo-consumer"
val bootstrapServers = "localhost:9092"
val spark = SparkSession
.builder()
.master("local[*]")
.appName("demo")
//.config("spark.sql.streaming.stateStore.maintenanceInterval", "10s")
//.config("spark.sql.streaming.metricsEnabled", true)
.config("spark.sql.streaming.minBatchesToRetain", 2)
CREATE EXTERNAL TABLE events (
name string,
user string,
variation string,
referrer string,
timestamp string,
metadata string
)
ROW FORMAT serde 'org.openx.data.jsonserde.JsonSerDe'
with serdeproperties ( 'paths'='name, user, variation, referrer, timestamp, metadata' )
@MarcDiethelm
MarcDiethelm / Contributing.md
Last active April 1, 2024 13:55
How to contribute to a project on Github

This text now lives at https://github.com/MarcDiethelm/contributing/blob/master/README.md. I turned it into a Github repo so you can, you know, contribute to it by making pull requests.


Contributing

If you want to contribute to a project and make it better, your help is very welcome. Contributing is also a great way to learn more about social coding on Github, new technologies and and their ecosystems and how to make constructive, helpful bug reports, feature requests and the noblest of all contributions: a good, clean pull request.

@dropwhile
dropwhile / results.txt
Last active March 10, 2020 21:01
python compression comparison
Data Size:
Input: 2074
LZ4: 758 (0.37)
Snappy: 676 (0.33)
LZF: 697 (0.34)
ZLIB: 510 (0.25)
LZ4 / Snappy: 1.121302
LZ4 / LZF: 1.087518
LZ4 / ZLIB: 1.486275
Benchmark: 50000 calls