Skip to content

Instantly share code, notes, and snippets.

View venkyvb's full-sized avatar

Venki Balakrishnan venkyvb

  • @linkedin.com
  • 14:45 (UTC -12:00)
View GitHub Profile
@venkyvb
venkyvb / main.go
Created December 14, 2020 23:30 — forked from julz/main.go
containersched minicontainer
package main
import (
"fmt"
"os"
"os/exec"
"syscall"
)
func main() {
@venkyvb
venkyvb / README.md
Created January 19, 2022 06:51 — forked from felixhammerl/README.md
Write TLS keys system-wide in macOS via SSLKEYLOGFILE and launchd
  1. Put tlskeylogger.plist at ~/Library/LaunchAgents/tlskeylogger.plist
  2. launchctl load ~/Library/LaunchAgents/tlskeylogger.plist, so it will load on the next restart
  3. launchctl start ~/Library/LaunchAgents/tlskeylogger.plist, so it will load the environment variable immediately
  4. Restart your browser(s)
  5. See how TLS keys are being written to ~/.tlskeyfile via tail -f ~/.tlskeyfile
@venkyvb
venkyvb / README.md
Created January 13, 2023 16:24 — forked from PawaritL/README.md
Parse nested JSON into your ideal, customizable Spark schema (StructType)

Is Spark's JSON schema inference too inflexible for your liking?

Common Scenarios:

  • Automatic schema inference from Spark is not applying your desired type casting
  • You want to completely drop irrelevant fields when parsing
  • You want to avoid some highly nested fields simply by casting some outer fields as strings

Step 1: Provide your (ideal) JSON data example

REFERENCE_EXAMPLE = {
  "firstName": "Will",