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
<div class="gifts"> | |
<h1><img alt="Gifts" src="http://67.228.233.12/images/gifts.gif?1222884742" /> My Gifts</h1> | |
<div style="padding_top: 10px;"> | |
<div style="float:left; text_align: center; padding:10px 10px 0 0; width: 64px; height: 130px;"> | |
<img alt="Spider_guy" src="http://67.228.233.12/images/gifts/spider_guy.png?1222884742" /><br /> | |
Spyder_Guy <br />from <a href="http://apps.facebook.com/friendsforsale/users/show/9896631"><fb:name uid='795990340' firstnameonly="true" linked="false" useyou="false" ifcantsee="private" /></a> | |
</div> | |
<div style="float:left; text_align: center; padding:10px 10px 0 0; width: 64px; height: 130px;"> | |
<img alt="Cactus" src="http://67.228.233.12/images/gifts/cactus.png?1222884742" /><br /> | |
Happy Cactus <br />from <a href="http://apps.facebook.com/friendsforsale/users/show/9896631"><fb:name uid='795990340' firstnameonly="true" linked="false" useyou="false" ifcantsee="private" /></a> |
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
#!/usr/bin/env ruby | |
class Munin | |
class LogReader | |
attr_accessor :log_file, :me, :pluginstatedir, :statefile | |
def initialize(file_name) | |
@file_name = file_name | |
@me = File.basename($0) | |
@pluginstatedir = ENV['MUNIN_PLUGSTATE'] || '/var/lib/munin/plugin-state' |
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
#restart if memory or cpu is too high | |
w.transition(:up, :restart) do |on| | |
if type == :mongrel then | |
on.condition(:memory_usage) do |c| | |
c.above = 250.megabytes | |
c.times = [9,10] | |
end | |
on.condition(:memory_usage) do |c| | |
c.above = 300.megabytes |
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
function cdgem { | |
bundle="$(bundle show $1)" | |
gem="$(gem which $1 2>/dev/null | grep '^/')" | |
for gem_dir in "${bundle}" "${gem:h}"; do | |
if [[ -d "${gem_dir}" ]]; then | |
cd "${gem_dir}" | |
return | |
fi | |
done | |
print 'not found' |
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
Steven: Katsu Curry with White Rice |
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
SELECT /*ffs_production.users:2754/7344*/ | |
2753 AS chunk_num, | |
COUNT(*) AS cnt, | |
LOWER(CONV(BIT_XOR(CAST(CRC32(CONCAT_WS('#', `id`, | |
`facebook_session_key`, `facebook_uid`, `created_at`, `updated_at`, | |
`active_at`, `last_refreshed_at`, `sex`, `birthday`, `cash`, `value`, | |
`ownerships_count`, `description`, `last_logged_in_at`, `show_help`, | |
`installed_at`, `uninstalled_at`, `installed`, `nickname`, `admin`, | |
`owner_facebook_uid`, `owner_user_id`, `network_id_0`, `network_id_1`, | |
`network_id_2`, `network_id_3`, `network_id_4`, |
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
Processing BattlesController#index (for 10.20.234.110 at 2009-08-04 01:00:45) [GET] | |
Parameters: {"fb_sig_time"=>"1249372845.9094", "fb_sig"=>"58824d435f5e900fa27e507c354d7cdb", "fb_sig_app_id"=>"3610507 | |
8640", "fb_sig_in_new_facebook"=>"1", "fb_sig_locale"=>"en_US", "action"=>"index", "fb_sig_session_key"=>"2.N7pOGSEZoTZo | |
coKvcGMs5g__.3600.1249380000-1034123945", "fb_sig_in_canvas"=>"1", "fb_sig_request_method"=>"GET", "controller"=>"battle | |
s", "fb_sig_expires"=>"1249380000", "fb_sig_added"=>"1", "fb_sig_friends"=>"540973003,618473457", "page"=>"my_page", "fb | |
_sig_api_key"=>"a4ef9cd0cf7de62d137c1fb91b4c6ce9", "fb_sig_ext_perms"=>"auto_publish_recent_activity", "fb_sig_user"=>"1 | |
034123945", "fb_sig_profile_update_time"=>"1249232082", "tab"=>"worldwide"} | |
RFacebook::FacebookSession::ExpiredSessionStandardError (RFacebook::FacebookSession::ExpiredSessionStandardError): |
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
#! /usr/bin/env ruby | |
$: << '/ops/lib/ruby' | |
require 'pcaplet' | |
require 'rubygems' | |
require 'mysql' | |
MYSQL_USER = 'ffs_readonly' | |
MYSQL_PASS = 'dar~quil6' |
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
1) Failure: | |
test_set_errors(OpenSSL::TestX509Store) [/sb/src/lang/ruby/ruby-1.9.1-p243/test/openssl/test_x509store.rb:212]: | |
OpenSSL::X509::StoreError expected but nothing was raised. | |
2) Failure: | |
test_core_03_notify(Rinda::TupleSpaceProxyTest) [/sb/src/lang/ruby/ruby-1.9.1-p243/test/rinda/test_rinda.rb:387]: | |
<10> expected but was | |
<0>. | |
3) Failure: |
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
#!/bin/sh | |
export BUILD_ROOT=`pwd`/build | |
mkdir -p $BUILD_ROOT | |
export RUBY_VERSION=ruby-1.9.1-p243 | |
export NGINX_VERSION=nginx-0.7.62 | |
export PREFIX=/opt/ruby19 |
OlderNewer