Skip to content

Instantly share code, notes, and snippets.

View tanpengsccd's full-sized avatar
🎯
Focusing

tanpengsccd tanpengsccd

🎯
Focusing
View GitHub Profile
@tanpengsccd
tanpengsccd / ddns-start
Created September 17, 2017 15:07 — forked from 599316527/ddns-start
asuswrt-merlin custom ddns script for dnspod
#!/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
@tanpengsccd
tanpengsccd / config.json
Last active April 30, 2024 06:12
v2ray服务端 json 配置 文件
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbound": { //理论最安全的方式 ws,有条件加上TLS
"port": 20080, //开启的端口,建议实用caddy加上TLS加密
"protocol": "vmess",
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
@tanpengsccd
tanpengsccd / 科学上网.md
Last active September 2, 2023 02:11
科学上网备忘录

前言:

为什么要科学上网

  1. google 查资料
  2. stackOverFlow(google api被墙)
  3. 想体验Google的全家桶套餐(chrome云服务,gmail,youtube,play,hangout,google voice等)
  4. 一些依赖源下载慢甚至无法下载

为什么不建议用第三方如蓝灯或者飞机场等免费/收费软件

  1. 稳定 (用的人多,随时被墙)
  2. 安全 (一般不可能开源)
@tanpengsccd
tanpengsccd / CentOS 初始配置.md
Created May 10, 2018 16:48
CentOS 初始配置
@tanpengsccd
tanpengsccd / Mac 重装系统后 操作.md
Last active September 24, 2019 09:49
Mac 重装系统后 操作

DD重装 https://moeclub.org/2018/04/03/603/

apt-get update apt-get upgrade

  1. 系统设置类 1.1 设置caplock 为 ctl 键 1.1 设置三指脱移 辅助功能-触摸板

  2. 登陆 iCloud

@tanpengsccd
tanpengsccd / Gogs 安装于 CentOS7.md
Last active May 25, 2018 09:18
Gogs 安装于 CentOS7

前言

楼主香港 腾讯 CentOS 主机 1G 单核 主机,先尝试的gitlab,虽然gitlab 功能强大,无奈配置不够,点一下卡10s。只能 使用轻量化的Gogs。使用起来也算不错。

gogs (Go Git Service)

如果先前安装过gitlab 建议先卸载

---gitlab-ctl unisntall 再userdel git -r -rf -f

安装准备

配置环境

@tanpengsccd
tanpengsccd / speederClient.service
Last active April 16, 2023 09:32
udp2raw.service & speeder.service
[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
@tanpengsccd
tanpengsccd / 10.14 install itunes.scpt
Created October 29, 2018 08:22
mac 10.14 install 12.6.x itunes.scpt
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"
@tanpengsccd
tanpengsccd / osx_install.sh
Last active May 13, 2020 02:06 — forked from cassiocardoso/osx_install.sh
Install most of my Apps with homebrew & cask
#!/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)"