本文介绍3中检测远程端口方式,telnet、nmap和nc。 如果Mac提示找不到命令,请用brew安装。 如果Linux提示找不到命令,请用apt-get或者yum安装。 1 telnet方式 命令: 检测已打开的端口80(HTTP) $ telnet google.com 80 Trying 216.58.197.174… Connected to google.com. Escape character is ‘^]’. ^C Connection closed by foreign host. 如果提示Connected to google.com,说明80端口可以访问。 检测未打开的端口88 $ telnet google.com 88 Trying 216.58.197.174… ^C 如果超时,说明端口未开放。 2 nmap方式 命令: 检测已打开的端口80(HTTP) $ nmap google.com -p 80 Starting Nmap 6.40… Continue Reading Linux检测远程端口是否打开

feedparser library – Read Web Feeds in XML, HTML, JSON, TXT and More; Build Your Own News Reader from Scratch in Twenty Lines feedparser/feedparser: feedparser gem – (universal) web feed parser and normalizer (XML w/ Atom or RSS, JSON Feed, HTML w/ Microformats e.g. h-entry/h-feed or Feed.HTML, Feed.TXT w/ YAML,… Continue Reading Ruby Gem – feedparser/feedparser

Packing your Ruby application into a single executable. http://enclose.io 1. Ruby Packer Packing your Ruby application into a single executable. 1.1 Features Works on Linux, Mac and Windows Creates a binary distribution of your application Supports natively any form of require and load, including dynamic ones (e.g. load(my_path + ‘x.rb’) Features… Continue Reading Ruby Gem – pmq20/ruby-packer

Mountable Rails Engine for viewing paginated logs from a browser 1. Installation Add this line to your application’s Gemfile: gem ‘logs’ And then execute: $ bundle 2. Mount Engine: config/routes.rb Rails.application.routes.draw do mount Logs::Engine => ‘/logs’ end 3. Screenshot References kirillshevch/logs: Mountable Rails Engine for viewing paginated logs from a… Continue Reading Ruby Gem – kirillshevch/logs

ActiveRecord::MTI ActiveRecord support for PostgreSQL’s native inherited tables (multi-table inheritance) Compatible with ActiveRecord 4.0, 4.1, 4.2, 5.0, 5.1 Confirmed production use in 4.2 1. Usage Add this line to your application’s Gemfile: gem ‘active_record-mti’ And then execute: $ bundle Or install it yourself as: $ gem install active_record-mti 2. Application… Continue Reading Ruby Gem – TwilightCoders/active_record-mti

RabbitMQ ruby clients: bunny, amqp, march_hare, rabbitmq_http_api_client, amq-protocol 1. bunny Bunny is a popular, easy to use, mature Ruby client for RabbitMQ (3.3+) http://rubybunny.info 1.1 Bunny, a Ruby RabbitMQ Client Bunny is a RabbitMQ client that focuses on ease of use. It is feature complete, supports all recent RabbitMQ features and… Continue Reading Ruby Gems – RabbitMQ ruby clients: bunny, amqp, march_hare, rabbitmq_http_api_client, amq-protocol

Daemons provides an easy way to wrap existing ruby scripts (for example a self-written server) to be run as a daemon and to be controlled by simple start/stop/restart commands. If you want, you can also use daemons to run blocks of ruby code in a daemon process and to control… Continue Reading Ruby Gem – thuehlinger/daemons

In this tutorial we will show you how to integrate Disqus comments with your Ghost blog. By default, Ghost does support post comments and you can easily integrate the third party service Disqus comments. Configure Disqus Create a free Disqus account and follow the steps to install Disqus on a website.… Continue Reading Use Disqus for commenting in Ghost