This file contains hidden or 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
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
This file contains hidden or 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
What's new in Ruby on Rails 4 | |
A RoR 4 press review | |
Silvio Relli @ Florence On Ruby | |
Bibliography and related resources | |
1) Rails queue | |
http://reefpoints.dockyard.com/ruby/2012/06/25/rails-4-sneak-peek-queueing.html | |
http://blog.remarkablelabs.com/2012/12/rails-queue-rails-4-countdown-to-2013 | |
https://github.com/rails/rails/commit/adff4a706a5d7ad18ef05303461e1a0d848bd662 |
This file contains hidden or 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
~~(Math.random() * N ) + 1 |
This file contains hidden or 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
development: &base | |
username: root | |
password: secret | |
log_level: debugger | |
database: my_app_development | |
test: | |
<<: *base | |
database: my_app_test |
This file contains hidden or 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
[class*=“button-“] { | |
/* base button properties */ | |
} | |
.button-primary { ... } | |
.button-plain { ... } |
This file contains hidden or 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
VERSION=3.0.7 | |
rm -rf redis-$VERSION | |
wget http://redis.googlecode.com/files/redis-2.2.5.tar.gz -O redis-$VERSION.tar.gz | |
tar -xzvf redis-$VERSION.tar.gz | |
cd redis-$VERSION | |
./configure --prefix=/usr | |
make | |
rm -rf /tmp/redis-$VERSION.$$ | |
mkdir /tmp/redis-$VERSION.$$ | |
mkdir -p /tmp/redis-$VERSION.$$/usr/bin |
This file contains hidden or 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 | |
require 'thor' | |
require 'rest_client' | |
require 'base64' | |
require 'qiniu-rs' | |
class QiniuUploader < Thor | |
desc "upload", "Upload a file to qiniu cloud storage" | |
def upload | |
bucket = 'mybucket' |
This file contains hidden or 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
require 'net/http' | |
AWS::S3::Base.establish_connection!({ | |
access_key_id: 'your-access-key-id', | |
secret_access_key: 'your-secret-access-key' | |
}) | |
# Use the Google Logo as an example | |
# | |
url = URI("https://www.google.com/images/srpr/logo3w.png") |
This file contains hidden or 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
sudo npm update npm -g | |
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable |
This file contains hidden or 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
参考https://gorails.com/deploy/ubuntu/14.04和https://coderwall.com/p/yz8cha | |
把ip放入/etc/hosts 文件中, 比如demo: 123.23.3.4 | |
===================================== | |
adduser jizilong | |
groupmod --new-name deploy jizilong # change group name | |
================== | |
visudo # edit previllege | |
#在Root下面添加新创建的user及其权限 | |
Root ALL (ALL:ALL) ALL |
OlderNewer