自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 ruby on rails connection two database

reference:[url]http://geekhmer.github.io/blog/2015/02/07/ruby-on-rails-connect-to-multiple-databases-and-migrations/[/url]config/mongoid.yml[code="xml"]db1: development: sessions...

2015-07-29 16:14:50 139

原创 linux commandline parser json

curl www.xxx.com.json | python -m json.tool | vim -

2015-07-29 11:52:16 210

原创 create ruby hash using block

[code="ruby"]irb(main):016:0> @command = beginirb(main):017:1* Hash.new{|h, k| h[k] = Array.new}irb(main):018:1> end=> {}irb(main):019:0> @command[:a]=> []irb(main):020:0> @command=> {...

2015-07-28 15:27:28 104

原创 Ruby on Rails concern

[color=red][quote]The Rails Concern are used to DRYING the code for both models and controllers.So just by including the module,either in model/controller you get the methods and you can call them jus...

2015-07-27 17:02:41 173

原创 [转]Tunneling Data and Commands Over DNS to Bypass Firewalls

[url]https://zeltser.com/c2-dns-tunneling/[/url][url]https://news.ycombinator.com/item?id=9874295[/url]

2015-07-13 20:44:09 92

原创 ruby on rails rake task

for mongoid, since it doesn't support rake db:migrate and rake db:drop will drop all tables, so if we need to drop some of tables in database, I will the following code.1. [color=blue]rails g task...

2015-07-13 15:46:49 234

原创 create rake task

1. rails g task my_namespace my_task1 my_task22. under lib/tasks/ folder, there will be file with the name of my_namespace.rake3. coding in the rake file:[code="ruby"]namespace :my_namespace d...

2015-07-08 11:55:35 99

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除