Skip to content

Instantly share code, notes, and snippets.

View michaelpass's full-sized avatar

Michael Pass michaelpass

  • (Former) Iowa Formula Racing
  • Iowa City, IA
  • X @mik3pass
View GitHub Profile
@michaelpass
michaelpass / binaryStringtoHex.java
Created July 30, 2019 18:59
Convert Binary Output File to Hex Equivalent
import java.io.*;
private static void convertFileOutputToHex(String fileName) throws IOException {
ArrayList<String> programLines = new ArrayList<>();
try {
FileReader fr = new FileReader(fileName);
BufferedReader br = new BufferedReader(fr);
while (br.ready()) {
programLines.add(br.readLine());
@michaelpass
michaelpass / LovelyScript.sh
Last active April 6, 2019 06:49
Deduplicae $PATH in .rc file
# _
# _______| |__ _ __ ___
# |_ / __| '_ \| '__/ __|
# _ / /\__ \ | | | | | (__
# (_)___|___/_| |_|_| \___|
# Deduplicate path variables
get_var () {
eval 'printf "%s\n" "${'"$1"'}"'