This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
OlderNewer