This file contains 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
#!/usr/bin/env python3 | |
# file: dpkg-since.py | |
# description: lists installed packages since the specified date | |
# changelog: | |
# * Feb 10 2015 - init release | |
# * Mar 24 2015 - new: packages sorted by installation time/date | |
# fix: ignored TIME argument | |
# * Apr 9 2015 - fix: exclude duplicates |
This file contains 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 | |
# Version: Sun Sep 8 2013 | |
OLD_VALUE= | |
LSB_RELEASE=$(lsb_release -sr) | |
if [ $LSB_RELEASE \< '12.04' ]; then | |
OLD_VALUE=$(gconftool --get /apps/nautilus/preferences/sort_directories_first) | |
else |
This file contains 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
diff -rupN linux-3.16.7-ckt11.old/drivers/gpu/drm/i915/i915_dma.c linux-3.16.7-ckt11/drivers/gpu/drm/i915/i915_dma.c | |
--- linux-3.16.7-ckt11.old/drivers/gpu/drm/i915/i915_dma.c 2014-10-05 17:23:04.000000000 -0200 | |
+++ linux-3.16.7-ckt11/drivers/gpu/drm/i915/i915_dma.c 2014-10-08 13:25:35.261920170 -0200 | |
@@ -1316,10 +1316,20 @@ static int i915_load_modeset_init(struct | |
* If we are a secondary display controller (!PCI_DISPLAY_CLASS_VGA), | |
* then we do not take part in VGA arbitration and the | |
* vga_client_register() fails with -ENODEV. | |
+ * | |
+ * NB. The set_decode callback here actually only works on GMCH | |
+ * devices, on newer HD devices we can only disable VGA MMIO space. |
This file contains 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
// ==UserScript== | |
// @name Office365 Outlook unread count in favicon and tab title | |
// @namespace http://userscripts.org/scripts/ | |
// @description Update the favicon and tab title to indicate the number of unread messages in the Inbox, so you can pin your tab and still see when you have new mail. Adapted from http://userscripts.org/scripts/show/155379 | |
// @version 2.2 | |
// @include https://outlook.office365.com/owa/* | |
// @include https://outlook.office.com/owa/* | |
// @grant none | |
// ==/UserScript== |
This file contains 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
// ==UserScript== | |
// @name Hacker News: New Comment Marker | |
// @description Make "new" comments since your last visit especially visible | |
// @downloadURL https://gist.github.com/noscript/b0420686256ab961e4e3f668bf9f1f5b/raw/hacker-news-new-comment-marker.user.js | |
// @namespace https://gist.github.com/noscript | |
// @grant GM_addStyle | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// @version 3 | |
// @include https://news.ycombinator.com/item?id=* |
This file contains 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
// ==UserScript== | |
// @name Soundcloud hide reposts | |
// @namespace https://gist.github.com/noscript | |
// @downloadURL https://gist.github.com/noscript/c4c78aa505b89f2618e43272054a6737/raw/SoundCloudHideReposts.user.js | |
// @version 1.1 | |
// @description hides reposts in stream | |
// @match http://soundcloud.com/stream | |
// @match https://soundcloud.com/stream | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// @copyright 2013, Upated 2015, Forked 2016 |
This file contains 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 | |
SEC=10 | |
[ $# -eq 1 ] && SEC=$1 | |
FRAMES=100 | |
SLEEP=`echo $SEC / $FRAMES | bc -l` | |
trap "xcalib -clear" EXIT | |
sleep 0.1 |
This file contains 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
(function(){ | |
var gists = document.getElementsByTagName('gist'); | |
function embed(id, file, i, tag) { | |
window['embed_gist_' + i] = function(gist) { | |
var div = document.createElement('div'); | |
div.innerHTML = gist.div; | |
tag.parentNode.replaceChild(div.firstChild, tag); | |
var css = document.createElement('link'); | |
css.rel = 'stylesheet'; |