Skip to content

Instantly share code, notes, and snippets.

View adrian-lin-1-0-0's full-sized avatar
🦄

Adrian adrian-lin-1-0-0

🦄
  • Taipei
  • 21:09 (UTC +08:00)
View GitHub Profile
@adrian-lin-1-0-0
adrian-lin-1-0-0 / mac_os_kb_ubuntu_like.md
Created April 18, 2024 07:50 — forked from girip11/mac_os_kb_ubuntu_like.md
Configuring Mac OS keyboard shortcuts to resemble Ubuntu

Setup MacOS shortcuts to be same as Ubuntu

I have been using Ubuntu for last few years. Now I have to work on Mac OS for work. But I still use personal laptop which has Ubuntu. So I decided to setup the Mac OS shortcuts to be exactly same as in Ubuntu.

Prerequisites

@adrian-lin-1-0-0
adrian-lin-1-0-0 / local_spark_minio.py
Last active March 24, 2024 18:52
Restart Spark session to work with MinIO in local development
from pyspark.sql import SparkSession
spark = SparkSession.builder.getOrCreate()
spark.stop()
spark = SparkSession.builder \
.config("spark.hadoop.fs.s3a.access.key", "${access_key}") \
.config("spark.hadoop.fs.s3a.secret.key", "${secret_key}") \
.config("spark.hadoop.fs.s3a.endpoint", "http://localhost:9000") \
.config("spark.hadoop.fs.s3a.path.style.access", "true") \