Skip to content

Instantly share code, notes, and snippets.

View thure's full-sized avatar
🏳️‍🌈

Will Shown thure

🏳️‍🌈
View GitHub Profile
@thure
thure / dark-scrollbar.as.css
Last active January 28, 2020 04:08 — forked from Sporif/dark-scrollbar.as.css
Dark scrollbar for Firefox 57. Tested on Windows 10. Requires https://gist.github.com/Sporif/db6b3440fba0b1bcf5477afacf93f875
@media (prefers-color-scheme: dark) {
scrollbar, scrollbar *, scrollcorner {
-moz-appearance: none !important;
--scrollbar-width: 10px;
--scrollbar-height: var(--scrollbar-width);
}
scrollbar, scrollcorner {
background: #282828 !important;
}
@thure
thure / qxhr.amd.js
Last active August 29, 2015 14:00 — forked from matthewp/gist:3099268
AJAX wrapped in Q as an AMD module with `expect` option.
define(['q'], function(Q){
return function(options) {
var deferred = Q.defer()
, req = new XMLHttpRequest();
req.open(options.method || 'GET', options.url, true);
// Set request headers if provided.
Object.keys(options.headers || {}).forEach(function (key) {
@thure
thure / gist:4197998
Created December 3, 2012 21:02
Split .flac and convert to .m4a (ALAC) on MacOS X
brew install flac ffmpeg cuetools shntool
cuebreakpoints 1.cue | shnsplit -o flac 1.flac
for f in split-track*.flac
do
ffmpeg -i "$f" -acodec alac "${f%.flac}.m4a";
done