<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://dokuwiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://dokuwiki/feed.php">
        <title>某喵的鱼塘 tech:op</title>
        <description></description>
        <link>http://dokuwiki/</link>
        <image rdf:resource="http://dokuwiki/_media/favicon.ico" />
       <dc:date>2026-05-06T21:39:33+0800</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://dokuwiki/tech/op/docker?rev=1525939494&amp;do=diff"/>
                <rdf:li rdf:resource="http://dokuwiki/tech/op/elk?rev=1525939494&amp;do=diff"/>
                <rdf:li rdf:resource="http://dokuwiki/tech/op/gitolite?rev=1525939494&amp;do=diff"/>
                <rdf:li rdf:resource="http://dokuwiki/tech/op/mac?rev=1717347859&amp;do=diff"/>
                <rdf:li rdf:resource="http://dokuwiki/tech/op/mongo?rev=1525939494&amp;do=diff"/>
                <rdf:li rdf:resource="http://dokuwiki/tech/op/nginx?rev=1525939494&amp;do=diff"/>
                <rdf:li rdf:resource="http://dokuwiki/tech/op/openvpn?rev=1533312680&amp;do=diff"/>
                <rdf:li rdf:resource="http://dokuwiki/tech/op/shadowsocks?rev=1531649671&amp;do=diff"/>
                <rdf:li rdf:resource="http://dokuwiki/tech/op/supervisor?rev=1525939494&amp;do=diff"/>
                <rdf:li rdf:resource="http://dokuwiki/tech/op/vi?rev=1525939494&amp;do=diff"/>
                <rdf:li rdf:resource="http://dokuwiki/tech/op/wireguard?rev=1570000635&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://dokuwiki/_media/favicon.ico">
        <title>某喵的鱼塘</title>
        <link>http://dokuwiki/</link>
        <url>http://dokuwiki/_media/favicon.ico</url>
    </image>
    <item rdf:about="http://dokuwiki/tech/op/docker?rev=1525939494&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-05-10T16:04:54+0800</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Docker</title>
        <link>http://dokuwiki/tech/op/docker?rev=1525939494&amp;do=diff</link>
        <description>Docker

Docker 用非常简单的思想，实现了一个非常复杂的系统。并让我们的服务器变得异常的 clean。</description>
    </item>
    <item rdf:about="http://dokuwiki/tech/op/elk?rev=1525939494&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-05-10T16:04:54+0800</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>logstash -&gt; elasticsearch 处理 bunyan(json format) log</title>
        <link>http://dokuwiki/tech/op/elk?rev=1525939494&amp;do=diff</link>
        <description>logstash -&gt; elasticsearch 处理 bunyan(json format) log



filter {
    json {
        source =&gt; &quot;message&quot;
    }
    
    date {
        match =&gt; [&quot;time&quot;, &quot;ISO8601&quot;]
        target =&gt; &quot;@timestamp&quot;
    }
}

output {
    elasticsearch {
        hosts =&gt; [&quot;localhost&quot;]
        index =&gt; &quot;%{type}-%{dateStr}&quot;
        codec =&gt; json
    }
}</description>
    </item>
    <item rdf:about="http://dokuwiki/tech/op/gitolite?rev=1525939494&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-05-10T16:04:54+0800</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>gitolite</title>
        <link>http://dokuwiki/tech/op/gitolite?rev=1525939494&amp;do=diff</link>
        <description>gitolite

使用 gitolite 来建立远程 git 仓库。

	* gitosis-vs-gitolite
	* gitosis
	* gitolite

步骤

1、添加 git 用户



$ sudo adduser \
    --system \
    --shell /bin/sh \
    --gecos 'git version control' \
    --group \
    --disabled-password \
    --home /home/git \
    git</description>
    </item>
    <item rdf:about="http://dokuwiki/tech/op/mac?rev=1717347859&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-06-03T01:04:19+0800</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Mac 技巧</title>
        <link>http://dokuwiki/tech/op/mac?rev=1717347859&amp;do=diff</link>
        <description>Mac 技巧

常用命令

- 查看端口占用 lsof -i:62570

快捷键

光标移动和删除

- Ctrl + A 光标移动到行首（Ahead of line）
- Ctrl + E 光标移动到行尾（End of line）
- Ctrl + U 删除光标之前到行首的字符
- Ctrl + K 删除光标之前到</description>
    </item>
    <item rdf:about="http://dokuwiki/tech/op/mongo?rev=1525939494&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-05-10T16:04:54+0800</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Hello Mongo</title>
        <link>http://dokuwiki/tech/op/mongo?rev=1525939494&amp;do=diff</link>
        <description>Hello Mongo

[安装](https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/)



brew install mongo
brew services start mongodb


About brew services

	&quot;Integrates Homebrew formulae with macOS' launchctl manager. &quot;

	&quot;&quot;

&gt; Services can be added to either /Library/LaunchDaemons or ~/Library/LaunchAgents.</description>
    </item>
    <item rdf:about="http://dokuwiki/tech/op/nginx?rev=1525939494&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-05-10T16:04:54+0800</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Nginx 一些值得一读的文章</title>
        <link>http://dokuwiki/tech/op/nginx?rev=1525939494&amp;do=diff</link>
        <description>Nginx 一些值得一读的文章

	* How nginx processes a request
	* Admin Guide (New)
	* Location</description>
    </item>
    <item rdf:about="http://dokuwiki/tech/op/openvpn?rev=1533312680&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-08-04T00:11:20+0800</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Bandwagon Open VPN 服务器搭建</title>
        <link>http://dokuwiki/tech/op/openvpn?rev=1533312680&amp;do=diff</link>
        <description>Bandwagon Open VPN 服务器搭建

CentOS 6

	* 使用搬瓦工 KVM 自动安装（如果提示无法写入 task，需要手动 chmod 755 /
	* 下载 Open VPN 配置文件，双击 .ovpn 文件可以直接导入 TunnelBlick
	* 将 .ovpn 中对应的 ca、cert、key 替换成标签，即可导入手机 Open VPN</description>
    </item>
    <item rdf:about="http://dokuwiki/tech/op/shadowsocks?rev=1531649671&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-07-15T18:14:31+0800</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Shadowsocks Tips</title>
        <link>http://dokuwiki/tech/op/shadowsocks?rev=1531649671&amp;do=diff</link>
        <description>Shadowsocks Tips

[Centos 6] 安装 pip@9.0.3



curl https://bootstrap.pypa.io/2.6/get-pip.py -o get-pip.py
python get-pip.py


[Centos 7 + OpenVZ] 安装 pip@10.0.1 + BBR



curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py

# wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh
wget --no-check-certificate https://raw.githubusercontent.com/kuoruan/shell-scripts/master/ovz-bbr/ovz-bbr-installer.sh
chmod +x ovz-bbr-installer.sh 
./ovz-bbr-installer.sh
…</description>
    </item>
    <item rdf:about="http://dokuwiki/tech/op/supervisor?rev=1525939494&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-05-10T16:04:54+0800</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>supervisord 遇到 spawn error 时的调试步骤</title>
        <link>http://dokuwiki/tech/op/supervisor?rev=1525939494&amp;do=diff</link>
        <description>supervisord 遇到 spawn error 时的调试步骤

	* 首先确认启动用户拥有 log 文件夹的权限
	* 确认正确的设置了用户 directory （参数或者配置文件中）
	* 确认端口是否被占用</description>
    </item>
    <item rdf:about="http://dokuwiki/tech/op/vi?rev=1525939494&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-05-10T16:04:54+0800</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>vim 黑魔法</title>
        <link>http://dokuwiki/tech/op/vi?rev=1525939494&amp;do=diff</link>
        <description>vim 黑魔法

	* 在 readonly 模式下写入文件：:w !sudo tee % &gt; /dev/null</description>
    </item>
    <item rdf:about="http://dokuwiki/tech/op/wireguard?rev=1570000635&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-02T15:17:15+0800</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>WireGuard</title>
        <link>http://dokuwiki/tech/op/wireguard?rev=1570000635&amp;do=diff</link>
        <description>WireGuard

安装

	* &lt;https://ssr.tools/1071&gt;
	* &lt;https://www.atrandys.com/2018/886.html&gt;



yum install -y wget
wget https://raw.githubusercontent.com/atrandys/wireguard/master/wireguard_install.sh
# v2ray https://git.io/v2ray.sh
chmod +x wireguard_install.sh
./wireguard_install.sh


客户端

	* &lt;https://www.wireguard.com/install/&gt;

Mac 分流</description>
    </item>
</rdf:RDF>
