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
-- Telegram Native Swift 汉化脚本 | |
-- 制作:Eana Hufwe | |
set zh_cn to "简体中文语言文件,来自 @zh_CN 的 GitHub Repo" | |
set zh_tw to "正體中文化文件(台灣),尚未收录" | |
set zh_hk to "繁體中文化文件(香港),尚未收录" | |
set tlocal to "本地语言文件" | |
set iinput to (choose file with prompt "选择您的 Telegram Native Swift 程序。" of type {"app"} default location "Applications") as string | |
set tgpath to POSIX path of iinput |
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
# coding: utf-8 | |
# | |
# OS X 11 (macOS ) 之后不再支持 PPTP VPN. 但 Cisco IPSec VPN 不支持像 PPTP 的 | |
# /etc/ppp/ip-up 和 /etc/ppp/ip-down 一样方便j的机制来更新 chnroute 路由表。 | |
# 这个脚本尝试在 Cisco IPSec VPN 下自动处理 chnroute, 做的主要工作是监听 syslog, | |
# 发现 IPSec VPN 连接建立或断开后去修改路由表。 | |
# | |
# NOTE: 使用前可能需要修改 CUSTOMED_ROUTE_DATA, 建议将其设为 | |
# 排除VPN子网后的 rfc1918 定义的内网IP段 | |
# |
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
# Basic configuration | |
music_directory "~/Music" | |
playlist_directory "~/.mpd/playlists" | |
db_file "~/.mpd/mpd.db" | |
log_file "~/.mpd/mpd.log" | |
pid_file "~/.mpd.pid" | |
state_file "~/.mpd/mpdstate" | |
# Audio configuration |
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/bash | |
## Main reference https://raymii.org/s/tutorials/IPSEC_vpn_with_CentOS_7.html | |
yum -y install epel-release | |
yum -y install haveged strongswan | |
/etc/init.d/haveged start | |
chkconfig haveged on | |
cd /etc/strongswan || exit | |
cat > strongswan.conf <<'EOF' |
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 /etc/rc.common | |
# | |
# AUTHOR: Takumi Sueda <[email protected]> | |
# | |
# Start/stop/restart supervisor in OpenWrt. | |
START=91 | |
USE_PROCD=0 | |
PROG=/usr/bin/supervisord |
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 | |
# Update latest epel | |
sudo yum -y instlal epel-release | |
# perl-IO-Socket-IP isn't in the repos | |
wget http://rpm.mag-sol.com/Centos/6/x86_64/perl-IO-Socket-IP-0.31-1.el6.noarch.rpm | |
sudo rpm -Uvh perl-IO-Socket-IP-0.31-1.el6.noarch.rpm | |
rm perl-IO-Socket-IP-0.31-1.el6.noarch.rpm |
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
[Proxy] | |
WIFI = direct, interface=en2 | |
VPN = direct, interface=utun0 | |
[Rule] | |
DOMAIN-SUFFIX,yach.me,WIFI | |
FINAL,VPN |
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
# This config file was created for myself (@shanskc). You may want to add or remove some rules to make efficient use of the Internet. | |
# NOTE: this config requires Surge.app build 243 or newer version. | |
# 从243开始Surge 加入了proxy和rule分离的配置Override,此文件为rules main.conf,在你的proxy中你可以引入此conf | |
# eg: 下面为你的proxy.conf,只需引入此main.conf 即可. | |
# -----START----- | |
# #!PROXY-OVERRIDE:main.conf | |
# | |
# [Proxy] | |
# Proxy = custom, ip, port, Methor, password | |
# -----END----- |
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
reg add "HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config" /v "AnnounceFlags" /t REG_DWORD /d 5 /f | |
reg add "HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer" /v "Enabled" /t REG_DWORD /d 1 /f | |
net stop w32time && net start w32time |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.shadowsocks.chinadns</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/chinadns</string> | |
<string>-l</string> |