Skip to content

Instantly share code, notes, and snippets.

Linux carglecloud0 2.6.32-21-server #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010 x86_64 GNU/Linux
Ubuntu 10.04.1 LTS
Welcome to the Ubuntu Server!
* Documentation: http://www.ubuntu.com/server/doc
System information as of Sun Apr 3 15:39:25 CST 2011
System load: 0.0 Swap usage: 0% Users logged in: 0
Usage of /: 0.3% of 905.57GB Temperature: 30 C
Linux carglecloud0 2.6.32-21-server #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010 x86_64 GNU/Linux
Ubuntu 10.04.1 LTS
Welcome to the Ubuntu Server!
* Documentation: http://www.ubuntu.com/server/doc
System information as of Sun Apr 3 15:39:25 CST 2011
System load: 0.0 Swap usage: 0% Users logged in: 0
Usage of /: 0.3% of 905.57GB Temperature: 30 C
open(LOG, ">$opt_database.ignore") ||
die "can't open log file\n";
print LOG "==== Skipped ===\n$skippedTags\n";
print LOG "==== Skipped ===\n$ignoredTxt\n";
close (LOG);
#print STDERR "=$idBegin=$idEnd\n";
close (DBFMT);
# $debug =1;
<!DOCTYPE html>
<html lang="en"> <head> <meta name="verify-v1" content="iBRwaQ/3d4NoF1uaa2SAfCJ962ORry1TE8/4XxtIbHk=" /> <script type="text/javascript">
if(window != top && window.location.toString().indexOf("/_comet/") == -1) {
//Inside an iframe
top.location.href = location.href;
}
</script> <title>
柳靳寒.mde 說 [電話號碼][9下收] **轉噗請手動謝謝…… ˊ_>ˋ**
http://images.plurk.com/ed510623db2c01c84880dfb3d8679410.jpg
@Domon
Domon / active_record_object_hash.rb
Created May 26, 2012 02:22
When we compare two Active Record objects, we are comparing their ids.
[1] pry(main)> p1 = Post.first
Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
=> #<Post id: 4, title: "Hello", content: "World.", created_at: "2012-05-20 08:38:46", updated_at: "2012-05-20 08:38:46">
[2] pry(main)> p2 = Post.first
Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT 1
=> #<Post id: 4, title: "Hello", content: "World.", created_at: "2012-05-20 08:38:46", updated_at: "2012-05-20 08:38:46">
[3] pry(main)> p1 == p2
=> true
[4] pry(main)> p1.title = "hi"
=> "hi"
@Domon
Domon / limelight-create-production.md
Created August 5, 2012 16:58
Errors when creating a new production (JRuby 1.6.5, limelight 0.6.14)
$ rvm install jruby-1.6.5
$ rvm use jruby-1.6.5
$ ruby --version
jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_33) [darwin-x86_64-java]

$ gem install limelight
$ limelight --version
limelight 0.6.14

Let's be fair here.

I have a gorgeous, adorable Taiwanese girlfriend that I am willing to spend the rest of my life with. Not because she is Hello Kitty, submissive, shallow, brain dead and a good fuck. Because she calls herself a freak (a surprisingly foxy one) , standing out from that essentially numbed crowd that I call most of Taiwan (excluding the "hen qi guay" lot), in ways that make most other girls look like total idiots.

My hat goes to her even more knowing that she only lived 3 months in the US, while being naturally open minded and full of dynamic debates about all kinds of issues. Yes, she has all those traits that many guys would want.

There are indeed some very interesting and charming ladies out here, but to the best of my knowledge, they are depressingly rare. Why? Because aside from being good at shallow chat followed by a deep fuck, one, two, here, there and everywhere, most girls here just about do a good job of sucking in all manner possible.

Sex aside, let's not even get into how much

@Domon
Domon / 01-type-rvm.txt
Created August 27, 2012 05:49
`rvm install ruby-head` installs ruby-1.8.7-p370 https://github.com/wayneeseguin/rvm/issues/1085
$ type rvm | head -n 1
rvm is a shell function
env | grep -iE 'rvm|ruby|path|home'
rvm info
rvm list
@Domon
Domon / build-fire-app.sh
Created November 12, 2012 11:09
How to build Fire.app on Mac OS X.
# Clone Fire.app
git clone git://github.com/handlino/FireApp.git
# (IMPORTANT) Update git submodules
cd FireApp
git submodule init
git submodule update
# Switch to JRuby (I'm using 1.6.7.2.)
rvm use jruby
@Domon
Domon / openssl_certificate_verify_failed.md
Created November 30, 2012 14:02
How to fix the error: "SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed"

When seeing the following error:

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

First, check your RubyGems version is higher than 1.8.24:

gem update --system