Skip to content

Instantly share code, notes, and snippets.

View gut5's full-sized avatar
💭
who cares

guts gut5

💭
who cares
  • !the boat
View GitHub Profile
@gut5
gut5 / csv-oneliner.md
Last active July 29, 2023 17:27
CSV one-liners

To print the first column of a CSV file:

awk -F, '{print $1}' file.csv

To print the first and third columns of a CSV file:

awk -F, '{print $1 "," $3}' file.csv

To print only the lines of a CSV file that contain a specific string:

@gut5
gut5 / gist:870940a93b33118771726a4a94dcd3e5
Created September 8, 2024 08:51
Easy ps4 fpkg backup
You only need this if you want to redo/replace your PS4's HDD for some reason but you don't want to go to the trouble of downloading everything again.
You need to jailbreak the PS4 and then connect with FTP (Filezilla is perfect for this).
Then you just go to the /user/app/CUSAxxxxx folder for the game you want to back up and copy out the app.pkg to your PC. Also check the /user/patch/CUSAxxxxx folder if you want to keep the update pkgs.