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
server { | |
expires 1M; | |
listen 80; | |
root /var/www/vhosts/sociallynotable.com/socially-notable/web; | |
index index.php; | |
if ($host ~* ^www.(.*)) { | |
set $remove_www $1; | |
rewrite ^(.*)$ http://$remove_www$1 permanent; | |
} |
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
ruby-1.9.2-p0 adella:benchmarks$ ruby -v | |
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.5.0] | |
ruby-1.9.2-p0 adella:benchmarks$ php -v | |
PHP 5.3.3 (cli) (built: Aug 22 2010 19:41:55) | |
Copyright (c) 1997-2010 The PHP Group | |
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies | |
ruby-1.9.2-p0 adella:benchmarks$ cat foo.rb | |
msg = "Hello world" |
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
for VERSION in $(ls $HOME/.phpenv/versions/); do php-build $VERSION $HOME/.phpenv/versions/$VERSION; done; |
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
cut -f1 -d" " ~/.bash_history | sort | uniq -c | sort -nr | head -n 10 | |
142 bin/behat | |
61 php | |
27 cd | |
25 sudo | |
22 ls | |
15 ps | |
14 export | |
12 Xvfb | |
9 pear |
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
brew install gource | |
brew install ffmpeg |
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
$ gtime php substrstrlen.php | |
0.43 user | |
0.01 system | |
0:00.56 elapsed | |
0.43 user | |
0.01 system | |
0:00.50 elapsed | |
0.42 user |
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 | |
protected function execute(InputInterface $input, OutputInterface $output) | |
{ | |
$progress = $this->getHelperSet()->get('progress'); | |
$ctx = stream_context_create(array(), array('notification' => function ($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max) use ($output, $progress) { | |
switch ($notification_code) { | |
case STREAM_NOTIFY_FILE_SIZE_IS: | |
$progress->start($output, $bytes_max); | |
break; |
Go to Google bigquery and execute the following query replacing XXX with your GitHub login
This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one