Skip to content

Instantly share code, notes, and snippets.

Avatar
😀
正在追求

Tater Li nickfox-taterli

😀
正在追求
View GitHub Profile
View pay.py
from flask import Flask,request
app = Flask(__name__)
@app.route('/pay')
def pay():
return ('''
<head>
<title>Checkout</title>
<script src="https://js.stripe.com/v3/"></script>
<script>
View web64
dm1lc3M6Ly9ldzBLSUNBaWRpSTZJQ0l5SWl3TkNpQWdJbkJ6SWpvZ0lsdE9RVlJkNkkyMzVZV3c1YnlYNkk2eDU2YVA1WVd3NTV5QjViNjM2YjZaNXJ1Vklpd05DaUFnSW1Ga1pDSTZJQ0kxTGpJdU5qY3VNVEE0SWl3TkNpQWdJbkJ2Y25RaU9pQWlPREFpTEEwS0lDQWlhV1FpT2lBaU5qZzVZMlZqTXpZdFlXUmtZaTAwWmpNMkxXSTRZVEV0TldOak1URTNZMkl4WTJKaklpd05DaUFnSW1GcFpDSTZJQ0l3SWl3TkNpQWdJbTVsZENJNklDSjNjeUlzRFFvZ0lDSjBlWEJsSWpvZ0ltNXZibVVpTEEwS0lDQWlhRzl6ZENJNklDSnNkR1YyYjJRdWRIWXhPRGt1WTI0aUxBMEtJQ0FpY0dGMGFDSTZJQ0l2Y21GNUlpd05DaUFnSW5Sc2N5STZJQ0lpRFFwOQ0Kdm1lc3M6Ly9ldzBLSUNBaWRpSTZJQ0l5SWl3TkNpQWdJbkJ6SWpvZ0lsdE9RVlJkNTc2TzVadTk1WXFnNVlpcDU2YVA1YkM4NUxxYTViZWU1clNiNXAySjU1KzJJaXdOQ2lBZ0ltRmtaQ0k2SUNJeE5qY3VPRGd1TlRBdU1UQXhJaXdOQ2lBZ0luQnZjblFpT2lBaU9EQWlMQTBLSUNBaWFXUWlPaUFpTmpnNVkyVmpNell0WVdSa1lpMDBaak0yTFdJNFlURXROV05qTVRFM1kySXhZMkpqSWl3TkNpQWdJbUZwWkNJNklDSXdJaXdOQ2lBZ0ltNWxkQ0k2SUNKM2N5SXNEUW9nSUNKMGVYQmxJam9nSW01dmJtVWlMQTBLSUNBaWFHOXpkQ0k2SUNKc2RHVjJiMlF1ZEhZeE9Ea3VZMjRpTEEwS0lDQWljR0YwYUNJNklDSXZjbUY1SWl3TkNpQWdJblJzY3lJNklDSWlEUXA5DQp2bWVzczovL2V3MEtJQ0FpZGlJNklDSXlJaXdO
View ovz_k.sh
# echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
# echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
# sysctl -p
apt update
apt upgrade -y
apt install unzip curl htop nload vnstat -y
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-dat-release.sh)
View superspeed.sh
#!/usr/bin/env bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
PURPLE="\033[0;35m"
CYAN='\033[0;36m'
PLAIN='\033[0m'
@nickfox-taterli
nickfox-taterli / bench.sh
Created Jan 13, 2021
Git Bench Shell (1MB)
View bench.sh
#!/usr/bin/env bash
#
# Description: Auto test download & I/O speed script
#
# Copyright (C) 2015 - 2020 Teddysun <i@teddysun.com>
# Thanks: LookBack <admin@dwhd.org>
# URL: https://teddysun.com/444.html
#
trap _exit INT QUIT TERM
@nickfox-taterli
nickfox-taterli / cnspeedtest.sh
Created Dec 27, 2020
测速到国内的速度
View cnspeedtest.sh
#!/usr/bin/env bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
PURPLE="\033[0;35m"
CYAN='\033[0;36m'
PLAIN='\033[0m'
View bbr.sh
sudo bash -c 'echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf'
sudo bash -c 'echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf'
sudo sysctl -p
View config.json
{
"policy": {
"system": {
"statsInboundUplink": true,
"statsInboundDownlink": true
}
},
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
@nickfox-taterli
nickfox-taterli / adc.c
Created Jul 3, 2020
i.MX RT ADC 例子
View adc.c
/* Kernel includes. */
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "timers.h"
#include "semphr.h"
/* Freescale includes. */
#include "fsl_device_registers.h"
#include "board.h"
@nickfox-taterli
nickfox-taterli / imxrt_lpuart.c
Created Jun 28, 2020
IMX RT LPUART 中断+FIFO
View imxrt_lpuart.c
#include "board.h"
#include "fsl_lpuart.h"
#include "pin_mux.h"
#include "clock_config.h"
uint8_t txData[] = "Hello,World!";
uint8_t rxData[512];
typedef struct