Skip to content

Instantly share code, notes, and snippets.

View machsix's full-sized avatar
🚀
Trip to Mars

MachX machsix

🚀
Trip to Mars
View GitHub Profile
#!/bin/bash
# CHANGE THESE
API=1aeb5xxxxxxxxxx9dd194c56d07caf311
EMAIL="example@gmail.com"
DOMAIN="example.net"
LOG_DEV="/var/log/ddns.json"
get_zone_id () {
local zone_id=`curl -fs -X GET "https://api.cloudflare.com/client/v4/zones" \
@machsix
machsix / frp systemd.md
Created February 7, 2019 22:27 — forked from ihipop/frp systemd.md
FRP systemd 启动脚本

/etc/systemd/system/frps.service

[Unit]
Description=FRP Server Daemon

[Service]
Type=simple
ExecStartPre=-/usr/sbin/setcap cap_net_bind_service=+ep /opt/bin/frps
ExecStart=/opt/bin/frps -c /opt/etc/frps.ini
Restart=always
@machsix
machsix / v2ray.html
Last active December 29, 2022 23:54
v2ray
<table style="max-width:1300px;">
<thead>
<tr>
<th><i class="fa fa-qrcode" aria-hidden="true"></i></th>
<th align="center">Address</th>
<th align="right">Port</th>
<th align="center">UID</th>
<th align="center">Network</th>
<th align="center">Path</th>
<th align="center">TLS</th>
! Title: Personal_filter by machsix
! Expires: 4 days
! Download link: https://gist.githubusercontent.com/machsix/bc579deb5b8138a0a1ce8b36b152a30c/raw/
anime1.me##script:inject(abort-on-property-read.js, eSX9S3upNm)
||xr0*.cc^$script
||xr0*.xyz^$script
||worldcup1.com/imgs/*.gif$image
#
# Original idea:
# https://discourse.haproxy.org/t/haproxy-unable-to-redirect-to-https-when-terminating/2158
#
# Stats:
# https://blog.sleeplessbeastie.eu/2020/01/29/how-to-use-haproxy-stats-socket
#
# Global
global