Home

Blog

Long-form notes on systems, infrastructure, AI tooling, and engineering practice.

持续整理值得长期保存的技术笔记、问题分析和工程思考。

内容以 Linux、基础设施、调试、网络、可观测性、数据库、AI 工具和工程实践为主,首页只呈现读者真正关心的内容,不再展示模板历史或站点维护细节。

398 Articles
36 Topics
2013-2025 Writing span
2025-05-28 Latest update
Featured

最新发布

python

IP地址倒置

February 9, 2017

IP 地址倒置 2017 年 2 月 9 日 11:55 def ip_reverse(src_ip): '''ip 地址倒置,如 203.205.142.202 转换为 202.142.205.203''' ip_list=src_ip.split('.') ip_list.reverse() dst_ip='.'.

Read article
Latest

近期文章

python

IP与字符串转换

2017-02-09

IP 与字符串转换 2017 年 2 月 9 日 11:48 IP 转换为字符串: import struct,socket; struct.unpack("=I", socket.inet_aton("203.205.179.171"))[0] 字符串转换为 ip : import struct,socket; so

MySQL [2]

sql语句含特殊符号的处理

2017-02-05

sql 语句含特殊符号的处理 2017 年 2 月 5 日 11:44 sql 语句中含有逗号时只需写成两个 , 即可 , ’ 同理 。如下( py ) country=content.get('data').get('country','unknow').replace("'","''").replace(",","

python

python通过get,post方式发送http请求和接收http响应的方法

2016-09-01

2016 年 9 月 1 日 10:25 作者:无影 这篇文章主要介绍了python通过get,post方式发送http请求和接收http响应的方法,涉及Python使用urllib模块与urllib2模块实现get与post发送数据的相关技巧,需要的朋友可以参考下 本文实例讲述了python通过get,post方式发

python

Python主机监控数据收集

2016-08-23

Tuesday, August 23, 2016 9:21 AM 原创 2016-08-23 智文 OpenSkill 收集服务器主机信息目的,方便一目了然的去查看,执行dmidecode 感觉比较乱。下面程序可以通过split函数等切片方式进行编写。 目前我想了解的信息是: 1、IP地址(vender) 2、服务器厂

python

MySQLdb中sql执行_sql和_args的注意点

2016-08-07

Sunday, August 7, 2016 1:16 PM _args只能占位条件变量,如where中的值,而表名这种不能占位。可使用普通format变量替换法。 已使用 Microsoft OneNote 2016 创建。

RedHat

使用zsh替换bash

2016-07-22

3:19 PM yum install zsh Changing your default shell After installing one the above shells, you can execute that shell inside of your current shell, by just runn

Explore

按主题浏览