Skip to content

Instantly share code, notes, and snippets.

View jinyu121's full-sized avatar
💪
Fighting!

Yu Hao jinyu121

💪
Fighting!
View GitHub Profile
@jinyu121
jinyu121 / README.md
Created October 26, 2022 12:42
Emoji Crawler

Emoji Crawler

This script parses the emoji list given by the unicode organization, and saves them as image files

@jinyu121
jinyu121 / README.md
Created October 5, 2022 02:14
Xiaomi CR660X get SSH access

Xiaomi CR660X (CR6606/CR6608/CR6609) Get SSH Access

  1. Login to CR660X, open Wi-Fi, disable "merge 2.4G with 5G"
  2. Get another router, open 2.4G Wi-Fi, set LAN ip as 169.254.31.3, disable DHCP, connect LAN with CR660X's LAN
  3. Get a laptop, connect LAN with CR660X's LAN, connect CR660X's 5G Wi-Fi. Set wired IP as 169.254.31.1, run the python script
  4. Login to CR660X's web page, get its IP, and get stok in URL
  5. Open the html page, fill in the IP, stok, SSID, password, and get URLs. Clicks the URLs one by one.
@jinyu121
jinyu121 / README.md
Last active July 18, 2023 07:09
SimpleImageHTTPServer

SimpleImageHTTPServer

Modified from SimpleHTTPServer, this file can setup a simple image server, to view folder, image, and compare images between folders.

How to use

Start

python image_server.py --path path/to/your/image/folder
@jinyu121
jinyu121 / README.md
Created July 29, 2019 12:56
Batch Downloader

Batch Downloader

Give a txt which contains urls to download, this script will download them for you.

Requre

  • tqdm
@jinyu121
jinyu121 / README.md
Last active April 11, 2019 04:57
Huawei midnight snack QR code generator

Huawei midnight snack QR code generator

Just for fun.

DO NOT DO EVIL

@jinyu121
jinyu121 / README.md
Created March 7, 2019 12:52
网易博客图片批量下载

网易博客停运,但是不支持打包下载。 于是可以从某个页面上下载回来所有的博客文字的xml,还可以下载出来博客配图的xml。 用这个xml配合上述脚本即可快速将图片下载回来。

@jinyu121
jinyu121 / format_bib_name.py
Created February 13, 2019 15:08
将bib里面的姓名格式化为简写
def process_name(name):
names=[]
for nm in [x.strip() for x in name.split()]:
if '-' in nm:
tmp = [x.strip() for x in nm.split('-')]
tmp = [x[0]+"." for x in tmp]
names.append("-".join(tmp))
else:
names.append(nm[0]+".")
return " ".join(names)
@jinyu121
jinyu121 / README.md
Last active February 11, 2019 05:50
网易邮箱问候语收集汇总

网易邮箱问候语收集汇总

部分来源于当前接口,部分来源于豆瓣

@jinyu121
jinyu121 / ShameEyesdroper.user.js
Created January 23, 2019 13:26
ShameEyesdroper.user.js
// ==UserScript==
// @name Shame Eyesdroper
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match *://*/*
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @run-at document-start
@jinyu121
jinyu121 / gammuapi.py
Last active March 18, 2023 17:03
Huawei Dongle SMS Forward
import configparser
import sqlite3
from os.path import join
from gammu import smsd
class ForwardTargetBase:
def send(self, message):
raise NotImplementedError()