This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# show/hide .files | |
function show { | |
showfiles=`defaults read com.apple.Finder AppleShowAllFiles` | |
if [ "$showfiles" = "TRUE" ]; then | |
echo "Files Hidden"; | |
defaults write com.apple.finder AppleShowAllFiles FALSE | |
else | |
echo "Showing Hidden Files"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
, | |
"sass": [ | |
{ | |
"snippet": "$$: %{0};", | |
"confident": "yes", | |
"items": [ | |
"alignment-adjust", | |
"alignment-baseline", | |
"animation", | |
"animation-delay", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable GZIP | |
<ifmodule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
</ifmodule> | |
# Expires Headers - 2678400s = 31 days | |
<ifmodule mod_expires.c> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mysqldump -u username -p****** DBNAME | ssh remoteUser@remote.domain.url "mysql -u username -p****** DBNAME" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('WP_CONTENT_DIR','/Users/matthewsimo/projects/lift/.../wp-content'); | |
define('WP_CONTENT_URL','http://local.project.com/wp-content'); | |
define('WP_SITEURL','http://local.project.com/'); | |
define('WP_HOME','http://local.project.com/'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('init', 'fpm_start_output'); | |
add_action('shutdown', 'fpm_end_output'); | |
function fpm_start_output() { | |
ob_start('fpm_mod_buffer'); | |
} | |
function fpm_mod_buffer($buffer) { | |
// Modification ... regexp, etc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE tableX | |
SET tableX.`colX` = REPLACE(colX,'search-term-find','search-term-replace') | |
WHERE tableX.`colY` = 'colYvalue'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tabname { | |
printf "\e]1;$1\a" | |
} | |
if [ x`type -t cd` == "xfunction" ]; then | |
# previously wrapped cd | |
eval $(type cd | grep -v 'cd is a function' | sed 's/^cd/original_cd/' | sed 's/^}/;}/' ) | |
else | |
# builtin | |
eval "original_cd() { builtin cd \$*; }" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Allow Hubot to give a burn Shakespeare would approve of. | |
# | |
# Commands: | |
# insult <name> - Don't have a good comeback, ask for some backup.(name parameter optional) | |
data = [["artless","bawdy","beslubbering","bootless","churlish","cockered","clouted","craven","currish","dankish","dissembling","droning","errant","fawning","fobbing","froward","frothy","gleeking","goatish","gorbellied","impertinent","infectious","jarring","loggerheaded","lumpish","mammering","mangled","mewling","paunchy","pribbling","puking","puny","qualling","rank","reeky","roguish","ruttish","saucy","spleeny","spongy","surly","tottering","unmuzzled","vain","venomed","villainous","warped","wayward","weedy","yeasty","cullionly","fusty","caluminous","wimpled","burly-boned","misbegotten","odiferous","poisonous","fishified"],["tardy-gaited","rampallian","beef-witted","dizzy-eyed","fool-born","scurvy-valiant","brazen-faced","muddy-mettled","beetle-headed","boil-brained","clapper-clawed","folly-fallen","base-court","full-gorged","flap-mouthed","mot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Fix Such and Such Problem | |
Description: This plugin fixes such and such because such and such is broken | |
Version: 0.1 | |
Author: Awesome Plugin Meister | |
*/ | |
if(!class_exists('Such_Such_Fixer')){ | |
class Such_Such_Fixer{ |
OlderNewer