Skip to content

Instantly share code, notes, and snippets.

apiVersion: v1
kind: ConfigMap
metadata:
name: pulse-audio-config
namespace: gow
data:
default.pa: |-
.fail
load-module module-null-sink sink_name=sunshine
set-default-sink sunshine
@brunnels
brunnels / diff.py
Created September 7, 2023 13:25
unified diff
import difflib
import io
def generate_unified_diff(file1_path, file2_path, output_path):
with open(file1_path, 'r') as file1, open(file2_path, 'r') as file2:
lines1 = file1.readlines()
lines2 = file2.readlines()
diff = difflib.unified_diff(lines1, lines2, fromfile='config_old.txt', tofile='config_new.txt')
string_buffer = io.StringIO()