Skip to content

Instantly share code, notes, and snippets.

View chenx6's full-sized avatar
🌸

chen_null chenx6

🌸
View GitHub Profile
@chenx6
chenx6 / pilipili.py
Created June 12, 2019 14:01
恢复 Bilibili 收藏夹中失效视频
'''
需要 Python 3.6 + requests
'''
import requests
from math import ceil
from urllib import parse
import time
class favlist():
@chenx6
chenx6 / gwifi_login_web.py
Last active May 29, 2021 14:58
Gwifi登陆脚本。在最后一行改下对象初始化参数,将自己的帐号和密码填进去就好
"""
模拟 Gwifi 网页版,登陆 Gwifi
"""
from typing import Any
from re import compile
from random import randint
from base64 import b64encode
from socket import socket, AF_INET, SOCK_DGRAM
from time import sleep
@chenx6
chenx6 / fuck_reprint_dog.js
Last active May 11, 2022 08:13
去他妈的转载狗
// ==UserScript==
// @name 去他妈的转载狗
// @namespace Violentmonkey Scripts
// @match https://cn.bing.com/search*
// @grant GM_xmlhttpRequest
// @version 1.0
// @author chen_null
// @description 2021/1/21 下午4:14:58
// ==/UserScript==
@chenx6
chenx6 / dead_horse.js
Last active January 10, 2022 14:38
Stackoverflow 的 Ciro Santilli 你🐴死了
// ==UserScript==
// @name Stackoverflow 的 Ciro Santilli 你🐴死了
// @namespace Violentmonkey Scripts
// @match https://stackoverflow.com/*
// @match https://serverfault.com/*
// @match https://superuser.com/*
// @match https://meta.stackexchange.com/*
// @match https://webapps.stackexchange.com/*
// @match https://webmasters.stackexchange.com/*
// @match https://gamedev.stackexchange.com/*
@chenx6
chenx6 / wireguard.py
Created February 5, 2022 10:49
Simple wireguard config generator
#!/usr/bin/env python3
"""
Simple Wireguard config generator
sysctl config:
export PATH=/usr/sbin:$PATH
sysctl net.ipv4.ip_forward=1
resolveconf:
sudo apt install resolvconf