Skip to content

Instantly share code, notes, and snippets.

View lakshmi-kannan's full-sized avatar

Lakshmi Kannan lakshmi-kannan

  • San Francisco, CA
View GitHub Profile
@lakshmi-kannan
lakshmi-kannan / 0_reuse_code.js
Created August 14, 2014 23:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
Input: "one two three"
Output: "eno owt eerht"
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" \"%{X-Response-Id}o\" %D" raxvhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
root@dfw1-maas-prod-api0:/etc/sv/check_http_status_code# grep "17:50:12" /var/log/apache2/access/log/current
monitoring.api.rackspacecloud.com:80 10.14.238.3 - - [19/Jan/2013:17:50:12 +0000] "GET /" 301 349 "-" "-" "-" 401
monitoring.api.rackspacecloud.com:80 10.14.238.2 - - [19/Jan/2013:17:50:12 +0000] "GET /" 301 349 "-" "-" "-" 503