Skip to content

Instantly share code, notes, and snippets.

clarencesong

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
clarencesong / todayonline-depaginator.user.js
Created Feb 6, 2016
Automatically go to the non-paginated version of a todayonline.com 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 http://todayonline.com/
// @include http://www.todayonline.com/*
// ==/UserScript==
(function() {
@clarencesong
clarencesong / os-x-enable-trim.md
Last active Aug 2, 2019
Enable TRIM in OS X 10.7.5 to 10.9.5
View os-x-enable-trim.md

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.