####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
package com.crowdriff.engine.spouts; | |
import java.util.Map; | |
import java.util.concurrent.ConcurrentLinkedQueue; | |
import backtype.storm.spout.SpoutOutputCollector; | |
import backtype.storm.task.TopologyContext; | |
import backtype.storm.topology.OutputFieldsDeclarer; | |
import backtype.storm.topology.base.BaseRichSpout; | |
import backtype.storm.tuple.Fields; |
#!/usr/bin/env macruby -wKU | |
framework 'Foundation' | |
module Dispatch | |
module Futuristic | |
def proxy | |
Class.new(BasicObject) do | |
def initialize(obj) | |
@obj = obj | |
end |
#!/usr/bin/env ruby | |
require 'mechanize' | |
@username = USERNAME | |
@password = PASSWORD | |
@download_path = DOWNLOAD_PATH | |
unless File.directory? @download_path | |
puts "@{download_path} doesn't exist!" |
- (UIImage*) takePicture { | |
int s = 1; | |
UIScreen* screen = [UIScreen mainScreen]; | |
if ([screen respondsToSelector:@selector(scale)]) { | |
s = (int) [screen scale]; | |
} | |
GLint viewport[4]; | |
glGetIntegerv(GL_VIEWPORT, viewport); |
# gem install dnsimple-ruby | |
# $ <SPACE>PASSWORD="your password" EMAIL="your e-mail" ruby dnsimple_backup.rb > dnsimple_backup.yml | |
# when you put a space before running a command you prevent it from being added to the history. | |
require "dnsimple" | |
require "yaml" | |
DNSimple::Client.username = ENV.fetch("EMAIL") | |
DNSimple::Client.password = ENV.fetch("PASSWORD") |
# -*- coding: utf-8 -*- | |
$:.unshift("/Library/RubyMotion/lib") | |
require 'motion/project' | |
# custom rake tasks | |
require '../raketasks/gemerator.rb' | |
desc "Open latest crash log" | |
task :log do | |
app = Motion::Project::App.config |
####lsauer.com
###Overview of all chrome://
pages.
chrome://about/
###List of Pages as per v20.xxx
/** | |
* 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. |
#!/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' |
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 |