<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>运维之家 - 脚本程序</title>
    <link>http://www.dirtysea.com/forum.php?mod=forumdisplay&amp;fid=9</link>
    <description>Latest 20 threads of 脚本程序</description>
    <copyright>Copyright(C) 运维之家</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sun, 30 Aug 2026 22:31:17 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://www.dirtysea.com/static/image/common/logo_88_31.gif</url>
      <title>运维之家</title>
      <link>http://www.dirtysea.com/</link>
    </image>
    <item>
      <title>CentOS6.8下安装Shadowsocks脚本教程</title>
      <link>http://www.dirtysea.com/forum.php?mod=viewthread&amp;tid=1544</link>
      <description><![CDATA[一键安装命令：

wget –no-check-certificate -O shadowsocks-libev.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev.sh
chmod +x shadowsocks-libev.sh
./shadowsocks-libev.sh 2&gt;&amp;1 | tee shadowsocks-libev.log
 ...]]></description>
      <category>脚本程序</category>
      <author>dirtysea</author>
      <pubDate>Mon, 24 Apr 2023 04:02:41 +0000</pubDate>
    </item>
    <item>
      <title>修改JumpServer网页信息</title>
      <link>http://www.dirtysea.com/forum.php?mod=viewthread&amp;tid=1531</link>
      <description><![CDATA[1.7、修改JumpServer网页信息注意：在修改相关配置文件之前要先进行备份，防止文件修改错误无法恢复。1、Luna图标：/opt/luna/static/imgs/logo.png2、jumpserver配置：（1）jumpserver相关配置文件：/opt/jumpserver/apps/jumpserver/context_processor.py#将版权信息 ...]]></description>
      <category>脚本程序</category>
      <author>dirtysea</author>
      <pubDate>Fri, 10 Sep 2021 01:01:51 +0000</pubDate>
    </item>
    <item>
      <title>Python中调用PowerShell、远程执行bat文件实例</title>
      <link>http://www.dirtysea.com/forum.php?mod=viewthread&amp;tid=1477</link>
      <description><![CDATA[python调用本地powershell方法
1、现在准备一个简陋的powershell脚本，功能是测试一个IP列表哪些可以ping通：

复制代码 代码如下:

function test_ping($iplist)
{
    foreach ($myip in $iplist)
    {
        $strQuery = \&quot;select * from win32_pingstatu ...]]></description>
      <category>脚本程序</category>
      <author>dirtysea</author>
      <pubDate>Wed, 06 Sep 2017 05:46:09 +0000</pubDate>
    </item>
    <item>
      <title>python 文件操作</title>
      <link>http://www.dirtysea.com/forum.php?mod=viewthread&amp;tid=1473</link>
      <description><![CDATA[记录常用的文件写入、读取、文件、目录的操作。

1、文件写入

import time
import random
 
#打开模式列表：
#w      以写方式打开，
#a      以追加模式打开 (从 EOF 开始, 必要时创建新文件)
#r+     以读写模式打开
#w+     以读写模式打开 (参见 w )
# ...]]></description>
      <category>脚本程序</category>
      <author>dirtysea</author>
      <pubDate>Thu, 17 Dec 2015 08:06:06 +0000</pubDate>
    </item>
    <item>
      <title>Python 字符串操作（string替换、删除、截取、复制、连接、比较、查找、包含、大小...</title>
      <link>http://www.dirtysea.com/forum.php?mod=viewthread&amp;tid=1472</link>
      <description><![CDATA[Python 字符串操作（string替换、删除、截取、复制、连接、比较、查找、包含、大小写转换、分割等）去空格及特殊符号s.strip().lstrip().rstrip(\',\')复制字符串#strcpy(sStr1,sStr2)
sStr1 = \'strcpy\'
sStr2 = sStr1
sStr1 = \'strcpy2\'
print sStr2连接字符串#strca ...]]></description>
      <category>脚本程序</category>
      <author>dirtysea</author>
      <pubDate>Thu, 17 Dec 2015 06:27:50 +0000</pubDate>
    </item>
    <item>
      <title>很有趣的IE脚本</title>
      <link>http://www.dirtysea.com/forum.php?mod=viewthread&amp;tid=1397</link>
      <description><![CDATA[随便打开一个网站，就用你现在看的这个页面也行
然后复制下面代码到 你的IE地址栏里]]></description>
      <category>脚本程序</category>
      <author>dirtysea</author>
      <pubDate>Thu, 10 May 2012 05:39:09 +0000</pubDate>
    </item>
    <item>
      <title>IE中打开UTF-8编码title为中文的网页会显示空白页的问题</title>
      <link>http://www.dirtysea.com/forum.php?mod=viewthread&amp;tid=1345</link>
      <description><![CDATA[当页面使用 utf-8 编码时，
标签被放在标签前面。当title为中文的时(比如Blog名为中文或者文章标题为中文)，在IE下会出现显示空白页的问题。

由于 utf-8 使用3个字节表示一个汉字，而GB2312或BIG5使用两个字节。页面输出时，由于上述原因，使浏览器解析、输出 的内 ...]]></description>
      <category>脚本程序</category>
      <author>dirtysea</author>
      <pubDate>Sat, 05 Nov 2011 05:12:06 +0000</pubDate>
    </item>
    <item>
      <title>10 个救命的 PHP 代码片段</title>
      <link>http://www.dirtysea.com/forum.php?mod=viewthread&amp;tid=1335</link>
      <description><![CDATA[　　关键词高亮

function highlight($sString, $aWords) { [*]    if (!is_array ($aWords) || emptyempty ($aWords) || !is_string ($sString)) { 
        return false; [*]    } 
 [*]    $sWords = implode (\'|\', $aWords); 
    return preg_replace ...]]></description>
      <category>脚本程序</category>
      <author>dirtysea</author>
      <pubDate>Wed, 19 Oct 2011 03:28:53 +0000</pubDate>
    </item>
    <item>
      <title>开源软件：快速创建部署CDN</title>
      <link>http://www.dirtysea.com/forum.php?mod=viewthread&amp;tid=1309</link>
      <description><![CDATA[CDN的全称是Content Delivery Network，即内容分发网络。其目的是通过在现有的Internet中增加一层新的网络架构，将网站的内容发布到最接近用户的网络\&quot;边缘\&quot;，使用户可以就近取得所需的内容，解决Internet网络拥挤的状况，提高用户访问网站的响应速度。从技术上全面解决 ...]]></description>
      <category>脚本程序</category>
      <author>dirtysea</author>
      <pubDate>Mon, 19 Sep 2011 01:24:54 +0000</pubDate>
    </item>
    <item>
      <title>开源或免费虚拟主机管理系统</title>
      <link>http://www.dirtysea.com/forum.php?mod=viewthread&amp;tid=1097</link>
      <description><![CDATA[1. ZPanel - 在Windows下的免费Hosting Panel
　　网址：
　　http://sourceforge.net/projects/zpanel/
　　http://www.thezpanel.com/
　　中文讨论：
　　http://www.twftp.org/phpbb/viewtopic.php?t=3104
　　2. web-cp - *nix的虚拟主机管理
　　网址：
 ...]]></description>
      <category>脚本程序</category>
      <author>dirtysea</author>
      <pubDate>Thu, 24 Dec 2009 09:47:40 +0000</pubDate>
    </item>
  </channel>
</rss>