Skip to content

Instantly share code, notes, and snippets.

View GiaoGiaoCat's full-sized avatar
👀
正在複製你的代碼

Victor Wang GiaoGiaoCat

👀
正在複製你的代碼
  • China
View GitHub Profile
@GiaoGiaoCat
GiaoGiaoCat / gist:5669857fdfa5ed7d25ca
Last active August 29, 2015 14:06
阅读笔趣阁的小说
#!/usr/bin/env ruby
require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'pry'
class Reader
BASE_URL = 'http://www.biquge.la/book/546/'
LINE_SHOULD_BREAK = 10
@@count = 0
@GiaoGiaoCat
GiaoGiaoCat / deploy.rb
Created February 20, 2014 06:02 — forked from stas/deploy.rb
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rbenv' # for rbenv support. (http://rbenv.org)
# require 'mina/rvm' # for rvm support. (http://rvm.io)
# Basic settings:
# domain - The hostname to SSH to.
# deploy_to - Path to deploy into.
# repository - Git repo to clone from. (needed by mina/git)
@GiaoGiaoCat
GiaoGiaoCat / gist:1393770
Created November 25, 2011 15:24
Steps to install RVM + Ruby 1.9.2 + Rails + nginx + Passenger on CentOS (tested on v5.5)
# Steps to install RVM + Ruby 1.9.2 + Rails + nginx + Passenger on CentOS (tested on v5.5)
# Install git and curl, if not already installed
sudo yum install git
sudo yum install curl
# Create the rvm group and add any users who will be using rvm to the group
sudo su -
groupadd rvm