Skip to content

Instantly share code, notes, and snippets.

View Neutrollized's full-sized avatar
🎯
Focusing

Glen Yu Neutrollized

🎯
Focusing
View GitHub Profile
@Neutrollized
Neutrollized / kaniko-executor-wi.yaml
Last active March 4, 2023 19:35
Medium: Workload Identity explained using kaniko
apiVersion: v1
kind: Pod
metadata:
name: kaniko-wi
spec:
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:v1.9.1
args: ["--dockerfile=Dockerfile",
"--context=gs://${GCS_BUCKET}/path/to/context.tar.gz",
@Neutrollized
Neutrollized / json_to_ndjson.py
Created March 25, 2025 20:30
Convert input JSON to NDJSON (newline delimited JSON)
#! /usr/bin/env python3
import json
import sys
def json_to_ndjson(input_file: str, output_file=None):
"""Converts a JSON input file of JSON objects to NDJSON format.
Args: