Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View symant233's full-sized avatar
🍀

怀瑾 symant233

🍀
  • Kingsoft Office
  • Wuhan, China
  • 06:50 (UTC +08:00)
View GitHub Profile
@symant233
symant233 / socks5.js
Created November 5, 2023 06:44 — forked from longbill/socks5.js
Socks5 proxy server in pure javascript
const net = require('net')
net.createServer(client => {
client.once('data', data => {
client.write(Buffer.from([5, 0]));
client.once('data', data => {
data = [...data];
let ver = data.shift();
let cmd = data.shift(); //1: connect, 2: bind, 3: udp
let rsv = data.shift();
@symant233
symant233 / nginx-webp-sample.conf
Created November 3, 2023 12:09 — forked from uhop/nginx-webp-sample.conf
Serving WEBP with nginx conditionally.
user www-data;
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
@symant233
symant233 / manga.sh
Last active February 7, 2023 03:02
A script for Tachiyomi, making folders for single zip files in `/Tachiyomi/local` folder.
#!/bin/sh
# Author: symant233
# Description: A script for Tachiyomi, making folders for single zip files
# in `/Tachiyomi/local` folder. Put this script in `/Tachiyomi` folder.
find ./local -mindepth 1 -maxdepth 1 -type f | while read dir
do
(
file="$(basename -- "$dir")"
extension="${file##*.}"
@symant233
symant233 / unwxapkg.py
Created October 17, 2022 05:38 — forked from Integ/unwxapkg.py
A useful tool for unpack wxapkg file with python3 surport.
# coding: utf-8
# py2 origin author lrdcq
# usage python3 unwxapkg.py filename
__author__ = 'Integ: https://github.com./integ'
import sys, os
import struct
class WxapkgFile(object):
// ==UserScript==
// @name Notion Full-Width Pages in Narrow Viewport Edited
// @namespace Notion Custom Scripts
// @match *://www.notion.so/*
// @grant GM_addStyle
// @version 1.4
// @author Jacob Zimmerman (jczimm) <jczimm@jczimm.com> modified by symant233
// @description Allows pages to fill the viewport width when the viewport is narrow.
// ==/UserScript==
// ==UserScript==
// @name 武汉科技大学选课系统去除其他校区
// @namespace https://github.com/symant233
// @version 0.0.1
// @description 武汉科技大学选课系统 去除其他校区
// @author symant233
// @icon https://cdn.jsdelivr.net/gh/symant233/PublicTools/Beautify/Bkela.png
// @require https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js
// @match http://59.68.177.189/pyxx/pygl/pyjhxk.aspx
// @grant GM_addStyle
@symant233
symant233 / mv.py
Last active October 11, 2023 10:47
PRGMV decryptor by unkonw
import glob
import json
import sys
import shutil
import os
# this might change, not sure, but probably not since 16 is a great number
HEADER_LENGTH = 16
@symant233
symant233 / worker.js
Created August 22, 2021 14:50
Raw content http proxy for cloudflare workers (GET only). try `https://${ID}.${yourName}.workers.dev/?https://${uri}`
addEventListener("fetch", (event) => {
const res = handleRequest(event.request)
.catch((err) => new Response(err.stack, { status: 500 }))
event.respondWith(res);
});
/**
* @param {FetchEvent} request
*/
async function handleRequest(request) {
const path = request.url;
@symant233
symant233 / vue-nginx.conf
Created July 18, 2021 08:10 — forked from namdau/vue-nginx.conf
Nginx config for Vuejs project with an API upstream
server {
server_name default_server;
# This is for Let's Encrypt certification renewal
include /etc/nginx/snippets/letsencrypt.conf;
# Redirect to https
location / {
return 301 https://$server_name$request_uri;
}
}
@symant233
symant233 / jiexi.js
Last active September 4, 2023 06:00
【全网视频VIP解析】改
// ==UserScript==
// @name 【全网视频VIP解析】改
// @version 1.0.0
// @description 更改自脚本(ID:424086)v2.5,作者小艾特,遵循原作者GPL协议,仅用于学习.
// @author 小艾特, modified by symant233
// @icon https://cdn.jsdelivr.net/gh/symant233/PublicTools/Beautify/Bkela.png
// @namespace https://greasyfork.org/zh-CN/scripts/424086
// @require https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js
// @match *://v.qq.com/x/cover/*
// @match *://v.qq.com/x/page/*