Skip to content

Instantly share code, notes, and snippets.

View vasche's full-sized avatar

Evgeny Voronin vasche

  • Moscow, Russia
View GitHub Profile
@return1
return1 / trim_enabler.txt
Last active June 6, 2025 21:05
TRIM Enabler for OS X Yosemite 10.10.3
#
# UPDATE for 10.10.4+: please consider this patch obsolete, as apple provides a tool called "trimforce" to enable trim support for 3rd party SSDs
# just run "sudo trimforce enable" to activate the trim support from now on!
#
# Original version by Grant Parnell is offline (http://digitaldj.net/2011/07/21/trim-enabler-for-lion/)
# Update July 2014: no longer offline, see https://digitaldj.net/blog/2011/11/17/trim-enabler-for-os-x-lion-mountain-lion-mavericks/
#
# Looks for "Apple" string in HD kext, changes it to a wildcard match for anything
#
# Alternative to http://www.groths.org/trim-enabler-3-0-released/
@torrick
torrick / companies.rb
Created May 23, 2011 13:55
Example Active Admin config using auto_link
ActiveAdmin.register Company do
filter :name
filter :customer_type, :as => :check_boxes
index do
column :name, :sortable => :name do |company|
auto_link(company)
end
column :active do |company|
company.active? ? icon(:check) : icon(:x)