Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Linux 服务器专用安装脚本
set -e # 出错时退出
echo "🚀 Linux 服务器安装 Oh My Zsh + Powerlevel10k"
echo "================================================"
# 检测发行版
if [ -f /etc/os-release ]; then
# echo "1 route-nic1" | sudo tee -a /etc/iproute2/rt_tables
ip route add default via 10.140.0.1 dev ens5 table route-nic1
ip route add 10.140.0.1 src 10.140.0.2 dev ens5 table route-nic1
ip rule add from 10.140.0.2/20 table route-nic1
ip rule add to 10.140.0.2/20 table route-nic1
ip route flush cache
#!/usr/bin/nft -f
define PROXY_MARK = 1
define PROXY_PORT = 1234
define SNELL_USER = 1002
define SNELL_PORT = 26781
flush ruleset
table inet snell {
@moremorefun
moremorefun / proxy.list
Created April 26, 2024 03:46
proxy.list
DOMAIN-SUFFIX,infura.io
DOMAIN-SUFFIX,whatismyipaddress.info
DOMAIN-SUFFIX,whatismyipaddress.com
@moremorefun
moremorefun / topon.list
Last active December 14, 2023 10:31
rs_direct
DOMAIN-SUFFIX,jfrog.anythinktech.com
DOMAIN-SUFFIX,dl.appnext.com
DOMAIN-SUFFIX,android-sdk.is.com
DOMAIN-SUFFIX,sdk.tapjoy.com
DOMAIN-SUFFIX,verve.jfrog.io
DOMAIN-SUFFIX,artifact.bytedance.com
DOMAIN-SUFFIX,developer.huawei.com
DOMAIN-SUFFIX,dl-maven-android.mintegral.com
DOMAIN-SUFFIX,cboost.jfrog.io
DOMAIN-SUFFIX,maven.ogury.co
{
"skeleton": {
"hash": "5qvIWTOr4qJ3EInzY3PtbTRvj/I",
"spine": "3.8.78",
"x": -135.67,
"y": -5.3,
"width": 277.16,
"height": 354.91,
"images": "./images/",
"audio": ""
@moremorefun
moremorefun / main.cpp
Created November 11, 2021 09:05 — forked from roxlu/main.cpp
Testing with libuv, openssl, memory bios, non blocking sockets: how to handle ssl and application data (?)
#include <iostream>
#include <openssl/ssl.h>
#include <openssl/bio.h>
#include <openssl/err.h>
#include <openssl/pem.h>
#include <uv.h>
#include <vector>
#include <iterator>
#include <algorithm>
@moremorefun
moremorefun / Wechat.php
Last active September 2, 2015 07:43 — forked from guweigang/Wechat.php
<?php
/**
* 微信PHP-SDK
* 服务器端必须要有 CURL 支持
* 2015年7月修正版本
* @author 、小陈叔叔 <cjango@163.com>
* https://coding.net/u/cjango/p/wechat_sdk/git
* 7月10日,完善红包功能,
*/
namespace Tools;
@moremorefun
moremorefun / vpnsetup.sh
Last active August 29, 2015 14:23 — forked from hwdsl2/.MOVED.md
#!/bin/sh
#
# Amazon EC2 user-data file for automatic configuration of IPsec/L2TP VPN
# on a Ubuntu server instance. Tested with 14.04 (Trusty) AND 12.04 (Precise).
# With minor modifications, this script *can also be used* on dedicated servers
# or any KVM- or XEN-based Virtual Private Server (VPS) from other providers.
#
# DO NOT RUN THIS SCRIPT ON YOUR PC OR MAC! THIS IS MEANT TO BE RUN WHEN
# YOUR AMAZON EC2 INSTANCE STARTS!
#
[loggers]
keys=root
[handlers]
keys=consoleHandler,fileHandler
[formatters]
keys=fmt
[logger_root]