# Code Snippets /dev/dk4 netbsd: ``` cvs update -dP; ./build.sh -j 48 -c clang -O /usr/obj/ -T /usr/tools/ -U -u distribution kernel=GENERIC ; ./build.sh -j 48 -c clang -O /usr/obj/ -T /usr/tools/ -U -u install=/ ; ``` --- macos: - `sudo pmset` lets you disable / set sleep delays --- IRC - Populate the last twenty messages for a channel ``` /quote CHATHISTORY LATEST #sr.ht.watercooler * 20 ``` --- JS - ``` // Get Youtube RSS feed javascript:(function() { var url = (document.querySelector('link[type="application/rss+xml"]') || '').href; if (url !== undefined) { return location.href = url; } try { var channelId = ytplayer.config.args.ucid; location.href = 'https://www.youtube.com/feeds/videos.xml?channel_id=' + channelId; } catch (TypeError) { console.error('YouTube RSS feed bookmarklet: Could not find a channel RSS feed'); } })(); ``` --- Explanation of build version: > BUILD_VERSION=`git log --oneline | wc -l|tr -d ' '`-`git rev-parse HEAD|head -c 10` > > This produces a version of the format `-` satisfying the approximate magnitude of change and providing an easy way of determining newness (barring any incidents of force-push rebase operations). Version 4123-2f1df15079 is going to be newer than 4007-fc036c4ee0, sorts properly when using most sorts, and (due to the hash value) guarantees that if versions are produced independently (say by two different developers) they will not have the same version.