YouTube-dl and livestreamer are probably my personal favourite examples of open source code. Almost invaluable in getting around the flash-based monopoly of online video, they are both still highly useful in simply watching video in a preferred/favourite media player rather than some browser player UI.