A very minimal selection of bash scripts I use here and there.
Quick 'n' easy reading of the header of .NSx files of neural data from Blackrock recordings (NPMK is slooow)
Especially useful for finding data when sync'd NSPs were used - the output includes:
-
True recording start and finish times (in local time, not UTC)
-
Number of data segments (syncing NSPs causes "paused" files, file-turnover errors cause many segments)
-
Duration of each segment
-
Total duration of data in the file
-
Sampling frequency and number of data samples
-
Number of channels
Run in any directory to list the actual (local) start times of all NSx files in that directory
Pass in an optional parameter to set which type of NSx file (defaults to NS3)
A (colorful) CLI for browsing the most recent headlines from the New York Times.
Requires jq to be installed, and you need to get/set your own API key on line 14 for this to function.
Flags:
-
-s: set a specific section to read headlines from (defaults to all)
-
-l: limit the number of headlines returned (defaults to 15)
-
-h: show the help, and returns a list of allowable "sections"
Once running, enter the ID number of an article to read its abstract, or enter one of the following "commands":
-
h: show the help
-
l: re-show the loaded headlines (list)
-
r: open the most recently selected article in the default browser (read)
-
q: quit