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
alias lls='ls -lha' | |
alias ~='cd ~' | |
alias reload="source ~/.bash_profile" | |
alias pyserver="python -m SimpleHTTPServer" | |
# Projects | |
alias cdb1="cd ~/Sites/blah1" | |
alias cdb2="cd ~/Sites/blah2" |
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/sh -e | |
# | |
# Usage: ssh-copy-rsub [--bash] [user@]machine | |
# | |
# Shell script to install rsub on the remove server so we can open shell scripts locally. | |
# Author: Leon Radley (http://github.com/leon) | |
URL="https://raw.github.com/avian/rmate/master/rmate" | |
if [ "$#" -gt 1 ] || [ "$1" = "-b" ] || [ "$1" = "--bash" ]; then |
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
<snippet> | |
<content><![CDATA[ | |
<!-- For details, see http://hicksdesign.co.uk/journal/pinned-sites-in-windows-8 --> | |
<meta name="msapplication-TileImage" content=“${1:filename.png}”> | |
<meta name="msapplication-TileColor" content="#${2:hex-value}”> | |
<meta name="application-name" content=${3:Win8-specific application title}”> | |
]]></content> | |
<description>Windows 8 tile specification for pinning to start screen</description> | |
<tabTrigger>win8tile</tabTrigger> | |
<scope>text.html</scope> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<inspections version="1.0" is_locked="false"> | |
<option name="myName" value="Expert Level PHP" /> | |
<option name="myLocal" value="false" /> | |
<inspection_tool class="BadExpressionStatementJS" enabled="false" level="WARNING" enabled_by_default="false" /> | |
<inspection_tool class="CallerJS" enabled="false" level="WARNING" enabled_by_default="false" /> | |
<inspection_tool class="CommaExpressionJS" enabled="false" level="WARNING" enabled_by_default="false" /> | |
<inspection_tool class="ConstantConditionalExpressionJS" enabled="false" level="WARNING" enabled_by_default="false" /> | |
<inspection_tool class="ConstantIfStatementJS" enabled="false" level="WARNING" enabled_by_default="false" /> | |
<inspection_tool class="ContinueOrBreakFromFinallyBlockJS" enabled="false" level="WARNING" enabled_by_default="false" /> |
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 | |
# args | |
MSG=${1-'deploy from git'} | |
BRANCH=${2-'trunk'} | |
# paths | |
SRC_DIR=$(git rev-parse --show-toplevel) | |
DIR_NAME=$(basename $SRC_DIR) | |
DEST_DIR=~/svn/wp-plugins/$DIR_NAME/$BRANCH |
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 | |
if ( defined( 'WP_CLI' ) && WP_CLI ) { | |
\WP_CLI::add_command( 'galaxy', function () { | |
$count = count( $_SERVER['argv'] ); | |
for ( $i = 0; $i < $count; $i++ ) { | |
// strip any preceeding arguments so galaxy isn't confused. | |
$arg = array_shift( $_SERVER['argv'] ); | |
if ( 'galaxy' == $arg ) { | |
array_unshift( $_SERVER['argv'], 'galaxy' ); | |
break; |
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
username: vagrant | |
password: vagrant | |
sudo apt-get update | |
sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev | |
sudo aptitude install mysql-server mysql-client | |
sudo nano /etc/mysql/my.cnf |
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
# Compile PCRE - Perl Compatible Regular Expressions | |
cd /usr/local/src | |
curl -O ftp://ftp.csx.cam.ac.uk//pub/software/programming/pcre/pcre-8.31.tar.gz | |
tar -xvzf pcre-8.31.tar.gz | |
cd pcre-8.31 | |
./configure | |
make | |
sudo make install | |
# Compile Autoconf |
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
// Replace letters | |
@function str-replace($string, $search, $replace: '') { | |
$index: str-index($string, $search); | |
@if $index { | |
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace); | |
} | |
@return $string; | |
} |
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 | |
use Illuminate\Console\Command; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Input\InputArgument; | |
class ClearBeanstalkdQueueCommand extends Command { | |
/** |
OlderNewer