Archive for category 互联网
不要在当当买东西
在当当买书你要有心理承受能力,不然的话气死你!!!

我说需要在工作日送货,结果周末的时候送了两次,我日

更悲剧,我没地儿发火,我发帖

啥都不说了,客服的声音不好听不说,还挺横,财大气粗的典型表现-_-!,客服MM,哥不欠你的钱
华夏名网,垃圾中的垃圾
华夏名网真的那么垃圾吗?
这位仁兄道出了华夏名网的各种垃圾事迹,当然,我也摊上了一些
1.vps主机:80端口不能用,莫名的不能用,时好时坏,我很崩溃;
打电话给客服(小姑娘声音还不错)客服都把事情推给技术,这个我可以忍
2.无缘无故的重启,我艹,这个是致命的打击,尼玛mysql还在跑着,你重启,数据不坏都不正常
当然,它还是比较便宜,就图这个了
华夏名网:做不垃圾的服务商 ,看了这篇文章,我很感概,做服务不是这样做的,靠吹牛B不靠谱,你可以骗我一次,
但是下次我就不上当了
艹
获得twitter的dns(转)
twitter上的朋友推出来的,很好用,哈哈
#!/usr/bin/env ruby
require 'open-uri'
require 'ping'
Signal.trap('INT') { exit }
ServiceBaseUrl = 'http://just-dnslookup.com/'
ServiceUrl = "#{ServiceBaseUrl}index.php?vh=%s&c=&s=dns+lookup!"
domain = ARGV.first.to_s.strip
port_to_test = ARGV.last.to_i
port_to_test = 80 unless (1..65535).include? port_to_test
if domain == ''
puts <<-TEXT
Usage: #{File.basename $0} <host> [port]
Find out reachable IP addresses for given host by 2 steps:
* Query just-dnslookup.com to get an IP address list for the host.
* Use a TCP echo (not an ICMP echo) to determine if they are reachable.
Port are optional, default to 80.
TEXT
exit
end
puts 'Querying just-dnslookup.com...'
urls = []
begin
open(ServiceUrl % domain) do |f|
urls = f.read.scan(/xmlreqGET\s*\(\s*['"]\s*([^'"]+)['"]/).flatten.collect do |path|
"#{ServiceBaseUrl}#{path}"
end
end
rescue Timeout::Error
puts "\nMaybe just-dnslookup.com not reachable or this script need an update."
exit
rescue Errno::ECONNRESET
puts %(\nThe host string "#{domain}" seems be blocked as a keyword by GFW.)
exit
end
ip_list = []
urls.each do |url|
country_code = url.match(/&cp=(\w+)/)[1]
puts "Querying just-dnslookup.com with country code #{country_code}..."
begin
open(url) do |f|
data = f.read
if data['::']
data = data.split('::')
ip_list << data.first if data.last['good']
else
puts " Unexpected response for country code #{country_code}:"
puts " #{data.inspect}"
end
end
rescue Timeout::Error, Errno::ECONNRESET
end
end
ip_list.sort!.uniq!
if ip_list.empty?
puts <<-TEXT
No IP addresses collected, maybe just-dnslookup.com not reachable or this
script need an update.
TEXT
exit
end
ENV.delete 'http_proxy'
ip_table = {}
ip_list.each do |ip|
start_time = Time.now
if Ping.pingecho(ip, 2, port_to_test)
ip_table[Time.now - start_time] = ip
end
end
if ip_table.empty?
puts "\nAll IP addresses of #{domain} are not reachable."
else
puts "\nReachable IP addresses of #{domain}:"
puts 'IP | TCP echo time (ms)'
ip_table.sort.each do |item|
printf "%-16s| %.1f\n", item.last, item.first * 1000
end
end
require 'open-uri'
require 'ping'
Signal.trap('INT') { exit }
ServiceBaseUrl = 'http://just-dnslookup.com/'
ServiceUrl = "#{ServiceBaseUrl}index.php?vh=%s&c=&s=dns+lookup!"
domain = ARGV.first.to_s.strip
port_to_test = ARGV.last.to_i
port_to_test = 80 unless (1..65535).include? port_to_test
if domain == ''
puts <<-TEXT
Usage: #{File.basename $0} <host> [port]
Find out reachable IP addresses for given host by 2 steps:
* Query just-dnslookup.com to get an IP address list for the host.
* Use a TCP echo (not an ICMP echo) to determine if they are reachable.
Port are optional, default to 80.
TEXT
exit
end
puts 'Querying just-dnslookup.com...'
urls = []
begin
open(ServiceUrl % domain) do |f|
urls = f.read.scan(/xmlreqGET\s*\(\s*['"]\s*([^'"]+)['"]/).flatten.collect do |path|
"#{ServiceBaseUrl}#{path}"
end
end
rescue Timeout::Error
puts "\nMaybe just-dnslookup.com not reachable or this script need an update."
exit
rescue Errno::ECONNRESET
puts %(\nThe host string "#{domain}" seems be blocked as a keyword by GFW.)
exit
end
ip_list = []
urls.each do |url|
country_code = url.match(/&cp=(\w+)/)[1]
puts "Querying just-dnslookup.com with country code #{country_code}..."
begin
open(url) do |f|
data = f.read
if data['::']
data = data.split('::')
ip_list << data.first if data.last['good']
else
puts " Unexpected response for country code #{country_code}:"
puts " #{data.inspect}"
end
end
rescue Timeout::Error, Errno::ECONNRESET
end
end
ip_list.sort!.uniq!
if ip_list.empty?
puts <<-TEXT
No IP addresses collected, maybe just-dnslookup.com not reachable or this
script need an update.
TEXT
exit
end
ENV.delete 'http_proxy'
ip_table = {}
ip_list.each do |ip|
start_time = Time.now
if Ping.pingecho(ip, 2, port_to_test)
ip_table[Time.now - start_time] = ip
end
end
if ip_table.empty?
puts "\nAll IP addresses of #{domain} are not reachable."
else
puts "\nReachable IP addresses of #{domain}:"
puts 'IP | TCP echo time (ms)'
ip_table.sort.each do |item|
printf "%-16s| %.1f\n", item.last, item.first * 1000
end
end
检查域名是否被搜索引擎惩罚过
首先:
site:www.neocanable.com 查看搜索结果
然后:
到http://www.archive.org或者http://www.infomall.cn里面检查域名历史
哎,菜鸟就是菜鸟,买的时候想都没想过这样的事情
近期评论