Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block clarencesong

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
clarencesong / todayonline-depaginator.user.js
Created Feb 6, 2016
Automatically go to the non-paginated version of a article, if a "single page" link is found on the page.
View todayonline-depaginator.user.js
// ==UserScript==
// @name TODAYonline De-Paginator
// @description Paginating articles for more page views is great for ad impressions, but not cool for readers.
// @version 1.0
// @date 2016-02-07
// @namespace
// @include*
// ==/UserScript==
(function() {
clarencesong /
Last active Apr 26, 2020
Enable TRIM in OS X 10.7.5 to 10.9.5

Enable TRIM on non-Apple SSDs in OS X

NOTE: This is tested on the versions mentioned in the title, and NOT earlier or later versions. YMMV.

Run the following commands in Terminal…

Backup the original driver:

sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage-backup
You can’t perform that action at this time.