···11+###Hello World!
22+33+My name is Kenyon aka Intrahype. This repository will serve as my personal portfolio for software engineering. I will be loading this space with examples of my work in Python, Assembly, and Scripting (multiple languages).
+12
scripting/atproto-getCar.sh
···11+#!/bin/bash
22+33+# <pds.domain> --replace with pds url, if you are using Bluesky PDS, enter bsky.social
44+# <user account did> --replace with account did (decentralized identity document), can be found using tools like pdsls.dev
55+66+# This is a simple retrival script using the XRPC endpoint for getRepo
77+# which will download the CAR file for a specified account
88+99+# This targets only Linux based systems with Bash installed
1010+# while the same command can be used on MacOS, it requires extra configuration for wget and the zsh shell
1111+1212+wget https://<pds.domain>/xrpc/com.atproto.sync.getRepo?did=did:plc:<user account did>
+18
scripting/oneWayDiff.py
···11+# This script will find differences between two csv files text strings
22+# and write any missing lines to a new file
33+44+#import csv module
55+import csv
66+77+# use open method to instantiate both files
88+# replace filenames with local files, files must be in same folder as script file
99+with open('<filename>', 'r') as f1, open('<filename2>', 'r') as f2:
1010+ f1_lines = f1.readlines()
1111+ f2_lines = f2.readlines()
1212+1313+# use open method to iterate through both files looking for matches
1414+# write non-matches to new file
1515+with open('<outputfilename>', 'w') as difference_file:
1616+ for line in f1_lines:
1717+ if line not in f2_lines:
1818+ difference_file.write(line)
+21
scripting/twoWayDiff.py
···11+# This script will look for difference in two files by scanning both files against each other
22+# and then outputting any missing lines to a new file.
33+44+# import csv module
55+import csv
66+77+# instantiate both files using the open module
88+# replace filenames with local files, files must be in same folder as script is run
99+with open('<filename>', 'r') as f1, open('<filename2>', 'r') as f2:
1010+ f1_lines = f1.readlines()
1111+ f2_lines = f2.readlines()
1212+1313+# use open module to iterate through lists and create output file
1414+# input desired filename in outputfilename area
1515+with open('<outputfilename>', 'w') as difference_file:
1616+ for line in f1_lines:
1717+ if line not in f2_lines:
1818+ difference_file.write(line)
1919+ for line in f2_lines:
2020+ if line not in f1_lines:
2121+ difference_file.write(line)