Skip to content

Instantly share code, notes, and snippets.

/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
/.idea
/.vagrant
Homestead.json
Homestead.yaml
npm-debug.log
@kift
kift / dns-subdomain-gandi-mailgun.txt
Last active October 25, 2017 06:04 — forked from Dweez/dns-subdomain-gandi-mailgun.txt
Gandi subdomain DNS configuration for Mailgun validation
# Gandi subdomain DNS configuration for Mailgun validation
# - Add the SPF record as TXT and SPF
# - Suffix the DKIM record and `email` CNAME with the subdomain
# ex: `mail.domain.com`
@ 10800 IN A MAILGUN.IP
mail 10800 IN CNAME mailgun.org.
mail 1800 IN TXT "v=spf1 include:mailgun.org ~all"
mailo._domainkey.mail 10800 IN TXT "k=rsa; p=MIG...QAB"
email.mail 1800 IN CNAME mailgun.org.
mail 1800 IN MX 10 mxa.mailgun.org.
@kift
kift / os-x-enable-trim.txt
Created November 14, 2012 02:29 — forked from clarencesong/os-x-enable-trim.md
Enable TRIM in OS X 10.8.2
Enable TRIM on non-Apple SSDs in OS X 10.8.2 Mountain Lion.
WARNING: This is ONLY tested on 10.8.2, and NOT earlier or later versions. YMMV.
Technical note: The driver changed in 10.8.2 and similar perl commands that worked in earlier OS X versions did not work for me once I updated to 10.8.2.
Run the following commands in Terminal…
1. Backup the original driver
@kift
kift / launch_sublime_from_terminal.markdown
Created June 10, 2012 08:12 — forked from olivierlacan/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

@kift
kift / .watchr
Created September 11, 2011 02:53 — forked from ogredude/.watchr
My .watchr with red/green and Growl support
# Run me with:
#
# $ watchr .watchr
# --------------------------------------------------
# Convenience Methods
# --------------------------------------------------
def growl(result)
result_lines = result.split("\n")