Skip to content

Instantly share code, notes, and snippets.

Daniel Capeletti cpBurn

View GitHub Profile
rollcat / check-online
Created May 6, 2016
Script to diagnose network connectivity
View check-online
#!/usr/bin/env bash
set -eu
case `uname` in
gateway=`ip route | awk '$1~/default/ && $2~/via/ {print $3}'`
ping_opts="-c1 -W2"
gateway=`route -n show | awk '$1~/default/ {print $2}'`
ping_opts="-c1 -w2"
return1 / trim_enabler.txt
Last active May 24, 2020
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
You can’t perform that action at this time.