This file contains hidden or 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 | |
| /** | |
| * Parses a template argument to the specified value | |
| * Template variables are defined using double curly brackets: {{ [a-zA-Z] }} | |
| * Returns the query back once the instances has been replaced | |
| * @param string $string | |
| * @param string $find | |
| * @param string $replace | |
| * @return string |
This file contains hidden or 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 | |
| ## in .bash_profile | |
| SSHAGENT=`which ssh-agent` | |
| SSHAGENTARGS="-s" | |
| if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then | |
| eval `$SSHAGENT $SSHAGENTARGS` | |
| trap "kill $SSH_AGENT_PID" 0 | |
| fi |