Skip to content

Instantly share code, notes, and snippets.

View crysttn's full-sized avatar
🎯
Focusing

Crys Nguyen crysttn

🎯
Focusing
View GitHub Profile
@crysttn
crysttn / subl.sh
Created May 6, 2015 13:55
Setup "subl" CLI command
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
@crysttn
crysttn / Mysql
Created April 23, 2015 09:46
Set MySQL connection timeout
mysql -u username -p
SHOW VARIABLES LIKE 'connect_timeout';
SET GLOBAL connect_timeout=60;
@crysttn
crysttn / .gitignore
Last active August 29, 2015 14:13
.gitignore for WordPress projects in htdocs/
# This is a .gitignore file for git-managed WordPress projects using Yeopress.
# Ignore everything in the root except the "htdocs" directory.
/*
!.gitignore
!htdocs/
# Ignore everything in the "wordpress" directory except the "wp-content" directory
htdocs/*
!htdocs/wp-content/
@crysttn
crysttn / .gitignore
Last active August 29, 2015 14:13
.gitignore for Magento projects in htdocs/
# Magento
htdocs/app/etc/local.xml
htdocs/media/*
!htdocs/media/.htaccess
htdocs/var/*
!htdocs/var/.htaccess
htdocs/sitemap
htdocs/staging