This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * To use it, run the script in your browser console on a YouTube playlist web page. | |
| * As items are added to the page, it will locate the video length and add it to a | |
| * running total, which is displayed in the output. | |
| * My approach is to let the page load completely, run the script, than scroll to | |
| * the bottom of the page (scroll speed does not matter). This works for the | |
| * current version of Youtube, as of writing. | |
| * | |
| * I was unhappy with the existing "Youtube Playlist Length" applications online | |
| * and in addon stores. So I made my own. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -eux | |
| sudo apt-get update | |
| packages="postgresql-$PGVERSION postgresql-server-dev-$PGVERSION postgresql-common" | |
| # bug: http://www.postgresql.org/message-id/20130508192711.GA9243@msgid.df7cb.de | |
| sudo update-alternatives --remove-all postmaster.1.gz |