Pre-requisites
- Crashplan account
- FreeNAS-9.1.1-RELEASE-x64 (a752d35)
| <?php | |
| declare(strict_types=1); | |
| use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector; | |
| use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector; | |
| use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector; | |
| use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector; | |
| use Rector\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector; | |
| use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector; |
Pre-requisites
| #!/bin/bash | |
| # php switch for homebrew | |
| # $ brew tap josegonzalez/php && brew install php53 --with-mysql && brew install php54 --with-mysql | |
| # Might as well ask for password up-front, right? | |
| sudo -v | |
| VERSION_FILE="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/php-switch.version" |
| <?php | |
| $apnsHost = 'gateway.sandbox.push.apple.com'; | |
| $apnsCert = 'apns-dev.pem'; | |
| $apnsPort = 2195; | |
| $streamContext = stream_context_create(); | |
| stream_context_set_option($streamContext, 'ssl', 'local_cert', $apnsCert); | |
| $apns = stream_socket_client('ssl://' . $apnsHost . ':' . $apnsPort, $error, $errorString, 2, STREAM_CLIENT_CONNECT, $streamContext); |
| #!/bin/bash | |
| # | |
| # Install Postgres 9.2 on a clean Ubuntu 12.04 | |
| """ | |
| LC_ALL issue | |
| comment out the AcceptEnv LANG LC_* line in the remote /etc/ssh/sshd_config file. | |
| sudo apt-get install language-pack-en-base | |
| sudo dpkg-reconfigure locales | |
| comment out the SendEnv LANG LC_* line in the local /etc/ssh/ssh_config file. |
| require 'formula' | |
| def mysql_installed? | |
| `which mysql_config`.length > 0 | |
| end | |
| def postgres_installed? | |
| `which pg_config`.length > 0 | |
| end |
| @Brett's searches | |
| @Brett's custom searches | |
| go https://duckduckgo.com/?q=%21%20%s Open first result (DuckDuckGo) | |
| b https://duckduckgo.com/?q=%21%s Bang search (DuckDuckGo) | |
| grep https://www.cueup.com/?q=%s&fq=1 Greplin | |
| ss https://duckduckgo.com/site:%d%20%s Current site (DuckDuckGo) | |
| bt https://duckduckgo.com/site:brettterpstra.com%20%s BrettTerpstra.com (DuckDuckGo) | |
| gh http://github.com/search?q=%s&type=Everything&repo=&langOverride=&start_value=1 Search GitHub (everything) | |
| hints http://hints.macworld.com/search.php?query=%s&keyType=all&datestart=&dateend=&topic=0&type=stories&results=50&mode=search Search Mac OS X Hints | |
| mu http://www.macupdate.com/find/mac/%s Search MacUpdate (Software) |
| * |