Skip to content

Instantly share code, notes, and snippets.

pctao@pctao-home-desktop:~$ rvm install ree
/home/pctao/.rvm/rubies/ree-1.8.7-2010.02
ree-1.8.7-2010.02 - #fetching (ruby-enterprise-1.8.7-2010.02)
ree-1.8.7-2010.02 - #extracting ruby-enterprise-1.8.7-2010.02 to /home/pctao/.rvm/src/ree-1.8.7-2010.02
ree-1.8.7-2010.02 - #installing
Error running './installer -a /home/pctao/.rvm/rubies/ree-1.8.7-2010.02 --dont-install-useful-gems ', please check /home/pctao/.rvm/log/ree-1.8.7-2010.02/install.error.log
There has been an error while trying to run the ree installer. Halting the installation.
pctao@pctao-home-desktop:~$ cd /home/pctao/.rvm/src/ree-1.8.7-2010.02
pctao@pctao-home-desktop:~/.rvm/src/ree-1.8.7-2010.02$ ./installer -a /home/pctao/.rvm/rubies/ree-1.8.7-2010.02 --dont-install-useful-gems
Welcome to the Ruby Enterprise Edition installer
javascript:(function() {
function og_meta(val) {return $("head meta[property=og:"+val+"]").attr("content")};
var ab = ["http://chart.apis.google.com/chart?chs=300x300&cht=qr&chl=", "MECARD:N:", og_meta("title"), ";ADR:", og_meta("region"),og_meta("locality"),og_meta("street-address"), ";TEL:", og_meta("phone_number"), ";"].join("");
$("<img src='" + ab + "'></img>").appendTo($("body"));
})();
class ForumsController < ApplicationController
before_filter :find_forum, :except => [:index, :new, :create]
def index
@forums = Forum.all
end
def show
redirect_to forum_path(@forum)
end
class PostsController < ApplicationController
before_filter :find_forum
before_filter :find_post, :except => [:index, :new, :create]
def index
@posts = @forum.posts
end
def show
end
<html>
<head>
<title>Float</title>
<style type="text/css">
#bigbox {
background-color: #555;
min-width:120px;
}
#littlebox {
function ShakeIt(config) {
this.config = config;
this.scores_page = config["scores_page"];
this.game_page = config["game_page"];
this.goal = config["goal"];
this.db = config["db"];
this.score = 0;
this.old_axis = 0;
this.game_started = false;
# unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D
rails_env = ENV['RAILS_ENV'] || 'production'
# 16 workers and 1 master
worker_processes (rails_env == 'production' ? 16 : 4)
# Load rails+github.git into the master before forking workers
# for super-fast worker spawn times
preload_app true
@TaopaiC
TaopaiC / gist:3597010
Created September 2, 2012 11:12
Fix jasmine-headless-webkit-0.8.4
  • add #include "getopt.h" to ext/jasmine-webkit-specrunner/specrunner.cpp
  • fix coffee script compile error: replace all \033 to \x1B in vendor/assets/coffeescripts/intense.coffee
# Minimal Dockerfile to test docker build steps.
# issue: https://github.com/dotcloud/docker/issues/5135
#
# List base image build steps:
# docker history ubuntu:14.04
#
# Build:
# docker build .
FROM ubuntu:14.04
@TaopaiC
TaopaiC / insecure-logstash-forwarder.crt
Last active August 29, 2015 14:03
logstash.conf with lumberjack
-----BEGIN CERTIFICATE-----
MIICGTCCAYICCQD6Ndu9SZ+fwTANBgkqhkiG9w0BAQsFADBRMQswCQYDVQQGEwJU
VzETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0
cyBQdHkgTHRkMQowCAYDVQQDDAEqMB4XDTE0MDcwNzE3MTIzNFoXDTI0MDcwNDE3
MTIzNFowUTELMAkGA1UEBhMCVFcxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNV
BAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEKMAgGA1UEAwwBKjCBnzANBgkq
hkiG9w0BAQEFAAOBjQAwgYkCgYEA21OiWDg5YKkmUTFafYS23N+g0dl7GYz9p/zm
Zq2pDQIcCp9OQLTh91AkXwSJ5l2cWxJCF1fG+EC/P6SNCzwZ1+TaPbk4rEQVIKcS
aQd7kzGGlo0MgleDQjKKRS9ad9kkZRbSp4PWy6HMlZa0HIncdGnrsdpgsNBI/SYf
5DcmrzcCAwEAATANBgkqhkiG9w0BAQsFAAOBgQAlwYjzTGNUrNlJHpYfn2Me0bRK