Skip to content

Instantly share code, notes, and snippets.

codehearts /
Created Nov 18, 2018
Function to draw a rectangle using Pyglet
import pyglet
def draw_rect(x, y, width, height):,,
('v2f', [x, y, x + width, y, x + width, y + height, x, y + height]))
return1 / trim_enabler.txt
Last active Feb 12, 2021
TRIM Enabler for OS X Yosemite 10.10.3
View trim_enabler.txt
# 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 (
# Update July 2014: no longer offline, see
# Looks for "Apple" string in HD kext, changes it to a wildcard match for anything
# Alternative to