aliquote.org

Latest micro-posts

You can also also view the full archives of micro-posts. Longer blog posts are available in the Articles section.

2022-03-02 21:07 #

I’ve long been ignorant of i3 scratchpad. Now that I use it, my music dispatcher looks much more comfortable.

img

See also I3 Scratchpad to access often used applications.

2022-03-02 16:21 #
2022-03-02 10:01 #
2022-03-02 09:51 #

Every few years a new company says you should use their special format. You have to pay them a monthly fee to use it — or keep all of your documents in their care. They offer some convenience or features, but at the cost of flexibility, portability, and independence. — Write plain text files

2022-02-25 20:47 #

jless — a command-line JSON viewer.

2022-02-24 21:49 #

I thought I would write a short post to explain how to fetch genome data from NCBI the old way, but here’s the gist, assuming you want to fetch all bacterial genomes:

% wget ftp://ftp.ncbi.nih.gov/genomes/refseq/bacteria/assembly_summary.txt
% mkdir bacteria_refseq
% awk -F '\t' '{if($12=="Complete Genome") print $20}' assembly_summary.txt > assembly_summary_complete_genomes.txt
% for record in $(cat assembly_summary_complete_genomes.txt); \
    do wget -P bacteria_refseq -e robots=off -r --no-parent -A "*genomic.fna.gz" "$record"/; done

Then wait, like me.