楼主香港 腾讯 CentOS 主机 1G 单核 主机,先尝试的gitlab,虽然gitlab 功能强大,无奈配置不够,点一下卡10s。只能 使用轻量化的Gogs。使用起来也算不错。
---gitlab-ctl unisntall 再userdel git -r -rf -f
#!/bin/sh | |
echo Install all AppStore Apps at first! | |
# try brew cask install mas | |
read -p "Press any key to continue... " -n1 -s | |
echo '\n' | |
echo Install and Set San Francisco as System Font | |
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)" | |
echo Install Homebrew, Postgres, wget and cask | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |
set question to display dialog "Delete iTtunes?" buttons {"Yes", "No"} default button 1 | |
set answer to button returned of question | |
if answer is equal to "Yes" then | |
do shell script "rm -rf /Applications/iTunes.app" with administrator privileges | |
display dialog "iTunes was deleted" buttons {"Ok"} | |
set theDMG to choose file with prompt "Please select iTunes 12.6 dmg file:" of type {"dmg"} | |
do shell script "hdiutil mount " & quoted form of POSIX path of theDMG | |
do shell script "pkgutil --expand /Volumes/iTunes/Install\\ iTunes.pkg ~/tmp" | |
do shell script "sed -i '' 's/18A1/14F2511/g' ~/tmp/Distribution" | |
do shell script "sed -i '' 's/gt/lt/g' ~/tmp/Distribution" |
[Unit] | |
Description=speeder service | |
After=syslog.target network.target auditd.service | |
[Service] | |
Type=notify | |
NotifyAccess=all | |
User=root | |
ExecStart=/usr/local/bin/speederv2_amd64 -c -l0.0.0.0:34000 -r47.74.239.218:34002 -f2:18 --timeout 0 | |
ExecReload=/bin/kill -HUP | |
ExecStop=/bin/kill -s QUIT PrivateTmp=true |
DD重装 https://moeclub.org/2018/04/03/603/
apt-get update apt-get upgrade
系统设置类 1.1 设置caplock 为 ctl 键 1.1 设置三指脱移 辅助功能-触摸板
登陆 iCloud
ssh-keygen
生成ssh 公私钥
ssh-copy-id [email protected]
yum install -y epel-release zsh git wget java emacs
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" 安装ohmyzsh
yum -y install epel-release | |
yum makecache | |
yum -y install git wget curl unzip zsh mosh emacs | |
# ohmyzsh | |
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" | |
# v2ray | |
https://www.v2ray.com/chapter_00/install.html |
{ | |
"log": { | |
"access": "/var/log/v2ray/access.log", | |
"error": "/var/log/v2ray/error.log", | |
"loglevel": "warning" | |
}, | |
"inbound": { //理论最安全的方式 ws,有条件加上TLS | |
"port": 20080, //开启的端口,建议实用caddy加上TLS加密 | |
"protocol": "vmess", |
#!/bin/sh | |
# This file should be placed in /jffs/scripts/ folder. | |
# 后台申请token | |
# https://support.dnspod.cn/Kb/showarticle/tsid/227/ | |
login_token='xxxxxxx,yyyyyyyyyyyyyyyyyyyyyyyyyyyyy' | |
# 先调 Domain.List 和 Record.List 接口取得 id | |
# https://www.dnspod.cn/docs/domains.html#domain-list | |
# https://www.dnspod.cn/docs/records.html#record-list |