How to install youtube-dl on a chromebook

  • Install Termux
  • Enable storage access termux-setup-storage
  • Install Python
    • pkg install python ffmpeg
  • (optional upgrade pip)
    • pip --install upgrade pip
  • Install youtube-dl
    • pip --install youtube-dl
  • Navigate to your downloads directory
    • cd storage/downloads
  • Download your youtube video (Make sure you are in downloads directory so you can write the file!)
    • youtube-dl https://youtu.be/kJQP7kiw5Fk
    • You can paste with ctrl+alt+v into termux
    • You can pass the command –restrict-filenames to have clean file names without spaces for example: youtube-dl --restrict-filenames https://youtu.be/kJQP7kiw5Fk
  • Upgrade everything after it has been a while or when you encounter problems
    • pip install --upgrade pip youtube-dl
  • Updated 2020-04-07 to get ffmpeg from the archive and not pip.

WordPress alert when you are on the staging site.

Recently I accidentally overwrote my Production site when I thought I was on the staging site so after a bit of googling I came up with this solution. If you are on WordPress you can just paste this at the end of your functions.php for your theme. This could also probably be turned into a very simple plugin.

Override WebPagetest.org dns settings

Super useful for testing a non-live site to see if the new server or settings is fast enough.

Source: https://www.webpagetest.org/forums/showthread.php?tid=14066&pid=27237#pid27237

Script:

setDns	mytestedhost.com	123.234.123.234
navigate	mytestedhost.com

Notes:

  • Use Tab stops not spaces
    • I copied the above code into VSCODE and changed it to tab stops to get it to work.
  • Paste into https://www.webpagetest.org/#script