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
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' | |
' Versions | |
' | |
' Version: 1.5 | |
' source: inzi.com | |
' | |
' Change Log | |
' | |
' v1.0 | |
' Original |
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 | |
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; |
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
brew install gource | |
brew install ffmpeg |
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
sub vcl_recv { | |
if (req.http.X-Blackfire-Query && client.ip ~ profile) { | |
//set req.backend_hint = backend1; // if you want to disable loadbalancer to profile (aka only 1 backend needs blackfire extension | |
return (pass); | |
} else { | |
// Add a Surrogate-Capability header to announce ESI support. | |
set req.http.Surrogate-Capability = "abc=ESI/1.0"; | |
} | |
} |
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
image: newsdev/varnish:4.1.0 | |
test: | |
script: | |
- /usr/local/sbin/varnishd -C -f default1.vcl |
This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one
Go to Google bigquery and execute the following query replacing XXX with your GitHub login
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
$ 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 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 |
NewerOlder