Skip to content

Instantly share code, notes, and snippets.

View yi-Xu-0100's full-sized avatar
Working

yi_Xu yi-Xu-0100

Working
View GitHub Profile
@yi-Xu-0100
yi-Xu-0100 / cmd_init.bat
Last active May 13, 2021 02:26
windows 脚本
@echo off
set http_proxy=socks5://127.0.0.1:7890
set https_proxy=socks5://127.0.0.1:7890
echo Personal profile: %~f0
echo Complate personal profile init!
今天发现 GitHub 有两步验证的功能,于是打算开启,可是悲剧的是,到了填写手机号的时候,发现没有 China 的选项。
于是我尝试了下修改网页源代码,添加了 `<option value="+86">China +86</option>` 再填手机号,居然就收到短信了。
后来有点不放心,还是给 https://github.com/contact 发了个反馈,然后收到回信说由于某些国家的短信发送成功率无法保证,所以没有开启两步验证功能。
不过在我这段时间的使用过程中,还是挺稳定的,每次都能收到短信。
大家如果也需要开启两步验证,最好把 Recover code 也记下来吧,避免以后短信收不到。
@yi-Xu-0100
yi-Xu-0100 / Inoreader Subscriptions 20200725.xml
Last active April 3, 2023 00:58
inoreader 导出所有订阅的下载链接
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Subscriptions of jianyi xu from Inoreader [https://www.inoreader.com]</title>
</head>
<body>
<outline text="阅读" title="阅读">
<outline text="知乎日报" title="知乎日报" type="rss" xmlUrl="http://feeds.feedburner.com/zhihu-daily" htmlUrl="http://daily.zhihu.com/"/>
<outline text="Android Performance" title="Android Performance" type="rss" xmlUrl="https://www.androidperformance.com/atom.xml" htmlUrl="http://androidperformance.com/"/>
<outline text="Rat's Blog" title="Rat's Blog" type="rss" xmlUrl="https://www.moerats.com/feed/" htmlUrl="https://www.moerats.com/"/>
@yi-Xu-0100
yi-Xu-0100 / draw.m
Last active July 10, 2020 10:15
可生成群速度和相速度对比图
clc
clear
t = 0:0.1:100000;
x = 0:0.1:50;
f1 = 1.55; %频率
f2 = 1.53;
k1 = 4.0; %波矢
k2 = 3.5;
E1 = 2; %振幅
E2 = 2;
@yi-Xu-0100
yi-Xu-0100 / leetcode-cn.txt
Last active June 28, 2020 00:29
力扣中国签到脚本
// ==UserScript==
// @name 力扣中国
// @namespace https://soulsign.inu1255.cn/scripts/191
// @version 1.0.2
// @author yi-Xu-0100
// @loginURL https://leetcode-cn.com/
// @updateURL https://soulsign.inu1255.cn/script/yi-Xu-0100/力扣中国
// @expire 900000
// @domain leetcode-cn.com
// ==/UserScript==
@yi-Xu-0100
yi-Xu-0100 / scjuchuang.txt
Last active June 28, 2020 00:30
聚创签到脚本
// ==UserScript==
// @name 聚创
// @namespace https://soulsign.inu1255.cn/scripts/186
// @version 1.0.4
// @author yi-Xu-0100
// @loginURL https://www.scjuchuang.com/login/index
// @updateURL https://soulsign.inu1255.cn/script/yi-Xu-0100/聚创
// @expire 900000
// @domain www.scjuchuang.com
// @grant cookie
@yi-Xu-0100
yi-Xu-0100 / poem.py
Created June 25, 2020 08:34
简易下载《诗词来了》的代码
import re
import os
import urllib.request
from urllib.parse import unquote
import base64
import codecs
import time
import random
def getHtml(url,headers):
req = urllib.request.Request(url=url,headers=headers)
@yi-Xu-0100
yi-Xu-0100 / 7z批量压缩文件夹.bat
Created June 25, 2020 08:16
放置在目录下,使用后,自动压缩各文件夹到各个命名的压缩包
for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a "%%X.7z" "%%X\"
@yi-Xu-0100
yi-Xu-0100 / 93book.txt
Last active June 28, 2020 00:30
好书友签到脚本
// ==UserScript==
// @name 好书友签到
// @namespace https://soulsign.inu1255.cn/scripts/185
// @version 1.0.7
// @author yi-Xu-0100
// @loginURL http://www.93book.com/member.php?mod=logging&action=login
// @updateURL https://soulsign.inu1255.cn/script/yi-Xu-0100/好书友签到
// @expire 900000
// @domain www.93book.com
// @param name 账户
@yi-Xu-0100
yi-Xu-0100 / abooky.txt
Last active May 5, 2021 04:06
阅次元签到脚本
// ==UserScript==
// @name 阅次元签到
// @namespace https://soulsign.inu1255.cn/scripts/174
// @version 1.0.5
// @author yi-Xu-0100
// @loginURL https://www.abooky.com/member.php?mod=logging&action=login
// @updateURL https://soulsign.inu1255.cn/script/yi-Xu-0100/阅次元签到
// @expire 1200000
// @domain www.abooky.com
// @param name 账户