Skip to content

Instantly share code, notes, and snippets.

@ncisoft
ncisoft / luarocks proxy.md
Last active August 30, 2023 03:54
luarocks Warning: falling back to wget - install luasec to get native HTTPS support

现象:

在 proxy 下用 luarocks 安装软件包

10 */8 * * * test -n "$(pidof clash)" && /etc/clash/start.sh updateyaml #每四小时更新订阅 15 */2 * * * test -n "$(pidof clash)" && /etc/clash/start.sh restart #每两小时重启

/dev/null 2>&1 https://www.cyuuu.co/link/M0J5Qa0cLeaUdpNh?clash=1 密码

Warning: falling back to wget - install luasec to get native HTTPS support

@ncisoft
ncisoft / openswan-l2tp-vpn-ubuntu.sh
Created February 7, 2021 13:15 — forked from jpillora/openswan-l2tp-vpn-ubuntu.sh
openswan-l2tp-vpn-ubuntu.sh
#!/bin/sh
# Setup Simple IPSec/L2TP VPN server for Ubuntu and Debian
#
# Copyright (C) 2014 Phil Plückthun <phil@plckthn.me>
# Based on the work of Lin Song (Copyright 2014)
# Based on the work of Viljo Viitanen (Setup Simple PPTP VPN server for Ubuntu and Debian)
# Based on the work of Thomas Sarlandie (Copyright 2012)
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
@ncisoft
ncisoft / p9.yaml
Created January 13, 2020 03:07
离散化基本配置文件
#description: crontab crtl
hour_id:
- hid: 01
at: -M 35
task: ./run.py -d ${device_name} -n 3 -m 41 -B -x xx
- hid: 04
at: -M 45
task: ./run.py -d ${device_name} -n 2 -m 35 -B -x xx