This contains a few handy scripts for organizing files (particularly video files). First, use ./remove-non-video-files.sh
to clear out any non-video files (and optionally non-subtitle files), then use ./org-files.sh
to move all files matching a specified pattern into separate folders.
This is a simple step-by-step guide for flashing a minor update (e.g., monthly security update) and re-rooting for Nexus devices.
This is meant to be more of a reminder checklist for those who do this semi-regularly; if you haven't done this before or don't know much about adb
and fastboot
, you should probably find a more detailed guide (see here for the Nexus 5X or here for the Nexus 6P).
The easiest way to update your nexus device manually is through the OTA downloads provided by Google.
if [[ ! $(which adb) ]]; then | |
echo "adb not found." | |
exit 1 | |
fi | |
if [[ ! $(adb devices | grep "\tdevice") ]]; then | |
echo "No devices found." | |
exit 1 | |
fi |
I hereby claim:
- I am davidofwatkins on github.
- I am davidofwatkins (https://keybase.io/davidofwatkins) on keybase.
- I have a public key whose fingerprint is 3820 4026 6E2C 8262 2834 E177 81C4 662D 9B48 6316
To claim this, I am signing this object:
This is a JS codemod written in jscodeshift to transform custom String.fmt()
calls to template literals. For example:
const firstAnimalType = 'fox';
const secondAnimalType = 'dog';
'The big red %s jumps over the lazy brown %s'.fmt(firstAnamalType, secondAnimalType);
...is converetd to:
Google Fonts suggests syncing fonts to your computer with a tool called SkyFonts. However, if you're running MacOS and want to keep your machine updated with all Google Fonts without any extra software, you can do this with Git, thanks to the Google Fonts Repo.
To do this, run the following in your terminal:
cd ~/Library/Fonts/
git clone --depth 1 https://github.com/google/fonts.git google-fonts
Done! In the future, you can download new fonts by running: