####lsauer.com
###Overview of all chrome://
pages.
- List by calling
chrome://about/
- Following is a direct dump from the 'about' page for reference
###List of Pages as per v20.xxx
#!/usr/bin/env ruby | |
# == Synopsis | |
# This is a sample description of the application. | |
# Blah blah blah. | |
# | |
# == Examples | |
# This command does blah blah blah. | |
# ruby_cl_skeleton foo.txt | |
# |
require 'mechanize' | |
@username = 'user@domain.com' | |
@password = 'hi2u' | |
@download_path = File.expand_path 'downloads' | |
@wget_cookie = File.expand_path(File.dirname(__FILE__)) + '/wget-cookies.txt' | |
unless File.directory? @download_path | |
puts "@{download_path} doesn't exist!" | |
exit |
diff -U 0 -r rails-3.1.0.beta1/.gitignore rails-3.1.1/.gitignore | |
--- rails-3.1.0.beta1/.gitignore 2011-10-07 11:56:15.000000000 -0400 | |
+++ rails-3.1.1/.gitignore 2011-10-07 12:59:12.000000000 -0400 | |
@@ -4,0 +5 @@ | |
+.sass-cache/ |
first: brew install highlight | |
second: add to your .zshrc (or .bashrc) | |
function hlr { | |
filename=`echo $1 | cut -d . -f 1` | |
highlight --syntax ruby -k Menlo -K 20 -O rtf -s edit-xcode $1 > $filename.rtf | |
} | |
third: it will generate a .rtf file. just open and copy the highlighted code and add to your Keynote talk. |
<source> | |
type tail | |
path path_to_file1 | |
pos_file path_to_pos_file1 | |
tag app.file1 | |
format /^(?<ip>[^ ]+) [^ ]+ [^ ]+ \[(?<time>[^\]]+)\] "(?<method>\S+) /(?<country>[A-Z0-9]{0,3})_(?<domain>[^/]+)/(?<module>[^/]+)/(?<controller>[^/]+)/(?<action>[^/]+)/(?<record>\S*)" (?<code>\d+) (?<res_time>\d+) "(?<referer>[^\"]*)" "(?<old_device>[^_\" ]*)_(?<device>[^_\" ]*)_(?<browser>[^_\" ]*) ?(?<guid>[^\"]*)" "(?<vuid>\d*) ?(?<option>[^\"]*)"$/ | |
time_format %d/%b/%Y:%H:%M:%S %z | |
rotate_wait = 5s | |
</source> |
Rails Date Formats – strftime | |
StrFTime Format Codes for Ruby on Rails | |
Year | |
%Y year with century 2007 | |
%y year without century 07 | |
%C century number (year divided by 100) 20 | |
Month | |
%B full month name January |
bash -c ' | |
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%> | |
if [ ! -f /usr/bin/chef-client ]; then | |
yum groupinstall -y 'Development tools' | |
yum install -y libxml2-devel libxslt-devel | |
yum install -y ruby19 ruby19-devel rubygems19 rubygem19-rdoc rubygem19-rake rubygem19-bigdecimal | |
ln -sf /usr/bin/ruby1.9 /usr/bin/ruby | |
ln -sf /usr/bin/gem1.9 /usr/bin/gem | |
ln -sf /usr/bin/irb1.9 /usr/bin/irb |
#!/usr/bin/env ruby | |
# This is an alternative to using EM::Iterator. It allows us to use | |
# MultiRequest but still limit the number of concurrent requests that | |
# are created. | |
require 'rubygems' | |
require 'eventmachine' | |
require 'em-http-request' |
/** | |
* Notes: This code uses AsyncValue[T], a custom class that uses actors | |
* to allow concurrent operations on the provided type. It can be replaced | |
* by an Atomic object from the java.util.concurrent package or something | |
* that provides similar functionality. | |
*/ | |
/** | |
* Resets the offsets for the given group / topic pair. |
####lsauer.com
###Overview of all chrome://
pages.
chrome://about/
###List of Pages as per v20.xxx