This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Stable-diffusion Service | |
| [Service] | |
| Type=simple | |
| WorkingDirectory=/home/user/systemd/ | |
| ExecStart=/home/user/systemd/sdforge.sh | |
| [Install] | |
| WantedBy=default.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| yum install -y boost boost-devel | |
| yum install -y make gcc gcc-c++ kernel-devel python-devel | |
| wget https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_0_10/libtorrent-rasterbar-1.0.10.tar.gz | |
| tar zxvf libtorrent-rasterbar-1.0.10.tar.gz | |
| cd libtorrent-rasterbar-1.0.10.tar.gz | |
| ./configure --disable-debug --with-boost-libdir=/usr/lib64 --disable-encryption --enable-python-binding | |
| make && make install | |
| export LD_LIBRARY_PATH=/usr/local/lib/ | |
| cd bindings/python | |
| python setup.py build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| MY_PROXY_1 = 1.2.3.4 | |
| iptables -t nat -N CLASH | |
| iptables -t nat -A CLASH -d 10.0.0.0/8 -j RETURN | |
| iptables -t nat -A CLASH -d 127.0.0.0/8 -j RETURN | |
| iptables -t nat -A CLASH -d 169.254.0.0/16 -j RETURN | |
| iptables -t nat -A CLASH -d 172.16.0.0/12 -j RETURN | |
| iptables -t nat -A CLASH -d 192.168.0.0/16 -j RETURN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "net/url" | |
| "os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?PHP | |
| /* vim: set expandtab tabstop=4 shiftwidth=4: */ | |
| /** | |
| * CsvReader | |
| * | |
| * 按Iterator接口读取CSV格式的数据 | |
| * | |
| * @package Lib | |
| * @author liut |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $arr = array( | |
| 'language'=>'en' , | |
| 'script' =>'Hans' , | |
| 'region' =>'CN', | |
| 'variant2'=>'rozaj' , | |
| 'variant1'=>'nedis' , | |
| 'private1'=>'prv1' , | |
| 'private2'=>'prv2' |