$ convert -verbose -density 150 -trim document.pdf -quality 100 -sharpen 0x1.0 PDF-IMAGES/image.png
$ gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook \ -dNOPAUSE -dBATCH -dColorImageResolution=150 \ -sOutputFile=output.pdf someBigFile.pdf
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf source1.pdf source2.pdf source3.pdf
git rm --cached [filenames]
Here’s how I removed all the files I wanted to delete from one of my bin subdirectories:
git rm --cached bin/com/devdaily/sarah/\*
I use the unusual * syntax at the end of that command instead of * because you need to escape the * from the git command. In a simpler example, if there was just one file in the bin directory named Foo.class that I wanted to remove from the Git repository, I would use this command:
Tried creating and installing needed packages into a virtual python environment, but Jupyter notebook would still throw Module not found errors, even after pip
, pip3
on base installation, as well as pip
, pip3
install method into the virtual environment.
conda create -n my-conda-env # creates new virtual env
source activate my-conda-env # activate environment in terminal
conda install jupyter # install jupyter + notebook
jupyter notebook # start server + kernel
To solve, in jupyter notebook, run:
find ~ -type f -name "activate" -exec egrep -l nondestructive /dev/null {} \; 2>/dev/null
alternative (more broad):
find ~ -d -name "site-packages" 2>/dev/null
exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.
Disk Utility is unable to repair this at first, but the fix is this:
- Use
diskutil list
to find the right drive id. - You want the id under the IDENTIFIER column, it should look like
disk1s1
- Run
sudo fsck_exfat -d <id from above>
. egsudo fsck_exfat -d disk1s3
-d
is debug so you'll see all your files output as they're processed.- Answer
YES
if it gives you the promptMain boot region needs to be updated. Yes/No?
yt-dlp --list-subs [video url]
yt-dlp --skip-download --write-sub --write-auto-sub --sub-lang "en.*" [video url]
`videogrep -i path/to/file --ngrams 1
4 April 2021
Gavin Gamboa
@gavcloud
We will be diving into the Tiddlywiki framework (TW), which is an open-source tool great for compiling notes, research, bookmarking, and making non-linear and personalized knowledge maps. In my case I used it to build a virtual portfolio and bookcase for logging my reading notes and keeping track of my projects.