V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  sutra  ›  全部回复第 22 页 / 共 52 页
回复总数  1028
1 ... 18  19  20  21  22  23  24  25  26  27 ... 52  
2021 年 6 月 21 日
回复了 ca1123 创建的主题 宽带症候群 ER-X 分流问题,如何维护国内 IP 列表。
```
#!/bin/sh
cache="/var/cache"

rirs="${cache}/delegated-apnic-latest"
expanded_rirs="${cache}/expanded-delegated-apnic-latest"
asn_cache="${cache}/asn"

geoip_database="http://geolite.maxmind.com/download/geoip/database"
geoip_country_cache="${cache}/GeoIP/country"
geoip_country_csv="${geoip_country_cache}/GeoLite2-Country-CSV"
geoip_country_csv_zip="${geoip_country_csv}.zip"

ip2location_lite_db1="https://download.ip2location.com/lite"
ip2location_lite_db1_cache="${cache}/ip2location_lite_db1"
ip2location_lite_db1_csv="${ip2location_lite_db1_cache}/IP2LOCATION-LITE-DB1.CSV"
ip2location_lite_db1_csv_zip="${ip2location_lite_db1_csv}.ZIP"

mkdir -p "${asn_cache}"
mkdir -p "${geoip_country_csv}"
mkdir -p "${ip2location_lite_db1_cache}"

get.sh \
-o "${rirs}" \
-r 10 \
"http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest" \
&& expand-rir-asn.sh \
-i "${rirs}" \
-o "${expanded_rirs}" \
-C "${asn_cache}" \
|| exit 1

get.sh \
-o "${geoip_country_csv_zip}" \
-r 10 \
-m 200 \
-n 204 \
"${geoip_database}/GeoLite2-Country-CSV.zip"
exit_status=$?
if [ ${exit_status} -eq 200 ]; then
unzip \
-oqd "${geoip_country_cache}" \
"${geoip_country_csv_zip}" \
&& rsync \
"${geoip_country_cache}"/*/* \
"${geoip_country_csv}/" \
&& rm \
-r "${geoip_country_csv}"_*
#elif [ ${exit_status} -ne 204 ]; then
# exit $?
fi

get.sh \
-o "${ip2location_lite_db1_csv_zip}" \
-r 10 \
-m 200 \
-n 204 \
"${ip2location_lite_db1}/IP2LOCATION-LITE-DB1.CSV.ZIP"
exit_status=$?
if [ ${exit_status} -eq 200 ]; then
unzip \
-oqd "${ip2location_lite_db1_cache}" \
"${ip2location_lite_db1_csv_zip}"
fi

update-ipset.sh \
-n "chnroute" \
-i "${expanded_rirs}" \
-g "${geoip_country_csv}" \
-l "${ip2location_lite_db1_csv}" \
-c "CN" \
```
2021 年 6 月 16 日
回复了 kblacksheep 创建的主题 Windows windows11 释出 大量圆角设计 控制面板还在
最后一版 Windows

2015 年 5 月,在微软 Ignite 开发者大会上,该公司高层主管杰瑞·尼克逊透露,Windows 10 将是这个 Windows 操作系统品牌的最后一版产品[42]。Windows 将不再有新版本问世,取而代之的将是不断和定期的改进和更新。得以采用这种方式的部分原因是,把开始菜单和内置应用程序等操作系统部件分解为独立部分,各个部件可以独立更新,组成完整的 Windows 核心操作系统。[43][44][45]在 2019 年年末,微软发布了 Windows 10X 计划,将于 2021 年春季正式发布,[46]但 2021 年 5 月 18 日,微软宣布停止研发 Windows 10X,证实不会有 Windows 10X,并会将 Windows 10X 的新功能移到新的 Windows 10 版本中。[47]


https://zh.wikipedia.org/wiki/Windows_10#最後一版 Windows
ping 114.114.114.114
telnet 114.114.114.114 53
dig baidu.com @114.114.114.114
2021 年 6 月 15 日
回复了 polyang 创建的主题 程序员 自己手写 session redis 还是用 spring-session-data-redis 好?
没有什么灵活是不能通过扩展它来实现的。
2021 年 6 月 14 日
回复了 rockyliang 创建的主题 程序员 后端接口如何做版本控制?
2021 年 6 月 5 日
回复了 v2defy 创建的主题 程序员 TypeScript 可不可以被叫做小 Java ?
2021 年 6 月 4 日
回复了 admonition 创建的主题 职场话题 如何拒绝同事使用你的充电器
坏了再买咯,毕竟过几年,还是得换新电脑的,换了新电脑也许功率也会变大。
2021 年 6 月 4 日
回复了 Not404 创建的主题 Java 关于 Java 类的向上转型和向下转型的疑问
package java.lang;

/**
* Thrown to indicate that an attempt has been made to store the
* wrong type of object into an array of objects. For example, the
* following code generates an {@code ArrayStoreException}:
* <blockquote><pre>
* Object x[] = new String[3];
* x[0] = new Integer(0);
* </pre></blockquote>
*
* @since 1.0
*/
public class ArrayStoreException extends RuntimeException {
2021 年 6 月 2 日
回复了 balabalaguguji 创建的主题 程序员 腾讯这个网页刷新技术怎么实现的?
2021 年 6 月 2 日
回复了 balabalaguguji 创建的主题 程序员 腾讯这个网页刷新技术怎么实现的?
jQuery
2021 年 6 月 2 日
回复了 qiguai2017 创建的主题 问与答 w3.org 这个网站的 ssl 证书过期了
2021 年 6 月 2 日
回复了 Alliot 创建的主题 全球工单系统 cn.ntp.org.cn 炸了?
whois 查询:
Registrant: 深圳市儒科电子有限公司
2021 年 6 月 2 日
回复了 Alliot 创建的主题 全球工单系统 cn.ntp.org.cn 炸了?
http://ntp.org.cn 页面底下还有广告……
我这边是这样 Receiving objects: 100% (24174/24174), 5.50 MiB | 1.39 MiB/s, done.
2021 年 5 月 26 日
回复了 HDMItoDP 创建的主题 问与答 服务器不支持 http 的 put 和 delete 吗?
有些代理服务器不支持 PATCH 我倒是知道。
2021 年 5 月 25 日
回复了 AllenHua 创建的主题 随想 今天,我取关了所有的公众号。
所有关注的都设置了 Receive Articles = false & Mute Notifications.

Unfollow All 不太现实,因为有时候需要用到他们,特别是线下,又得 Follow 回来。
2021 年 5 月 25 日
回复了 longway 创建的主题 git 真有人觉得 Git 会提高生产力?
用的什么分支模型(比如 git-flow 之类的)?
2021 年 5 月 20 日
回复了 noogler67 创建的主题 职场话题 基层工作选择, b 站和特斯拉
应该考虑学习环境,我认为。
1 ... 18  19  20  21  22  23  24  25  26  27 ... 52  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1041 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms · UTC 22:54 · PVG 06:54 · LAX 15:54 · JFK 18:54
♥ Do have faith in what you're doing.