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
// Example of how to use boost::asio::async_result | |
#include <iostream> | |
#include <boost/asio.hpp> | |
#if BOOST_VERSION >= 106600 | |
template<typename CompletionToken> | |
typename boost::asio::async_result | |
<CompletionToken, void(boost::system::error_code, std::string)>::return_type |
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
iostat -d 3 1000 -x | awk '{if($12 > 1.00) printf "%s %3d %5d %5d\n",$1,$12,$6,$7}' | |
Sample output | |
sdi 100 59880 76938 | |
sdi 99 76296 77264 | |
sdi 99 70120 60621 | |
sdi 99 52450 58949 | |
sdb 1 31 2790 | |
sdi 99 40138 42854 | |
sdf 1 90 3485 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
; Summary: Proxy Switchy! Exported Rule List | |
; Date: 11/1/2014 | |
; Website: http://bit.ly/proxyswitchy | |
#BEGIN | |
[wildcard] | |
http://*.hulu.com | |
http://*.blogspot.* | |
http://*.appspot.com |