Skip to content

Instantly share code, notes, and snippets.

View bczhc's full-sized avatar
🌴

Zhai Can bczhc

🌴
  • Jiangsu, China
  • 14:29 (UTC +08:00)
View GitHub Profile
@bczhc
bczhc / README.md
Last active May 11, 2022 08:23
下载网页版网易云音乐在线播放音质的歌曲

a.js是获取请求参数的,在node环境中运行,加上crypto-js库

用法:node a.js <song-id>

Ruby下载脚本说明:

JS_FILE常量替换为刚刚的js。一定要先保证node xx.js <song-id>可以正常运行,也就是node环境得先配置好。

然后HEADER常量就是登录状态时网页版网易云请求API时带的那些headers,可以在控制台里就查看到,复制过来。

@bczhc
bczhc / a
Last active July 22, 2022 15:42
Scharans II lyrics
[Linard]
D’Sibil öffnet ihre Lade
D’Erschtgigs gönd ins Heim go bade
Uf em Beverin häts Wind
Ds Poschti kunnt mit 100 Kind
[Matt]
Der Felix üsre Dorfkanzlischt
Gseht us wie nen Alpinischt
Er erklärt de Turischte nett
@bczhc
bczhc / a.txt
Last active January 9, 2026 12:03
Scharans I lyrics
D’Sibil öffnet ihre Lade
D’Erschtgigs gönd ins Heim go bade
Uf em Beverin gseschs winde
Ds Poschti träjt präzis um d’Linda
Und der Felix wo Kanzlischt
Glichzitig au no Pöschtler isch
Erklärt em ne Turischt ganz nett
Warum d’Flavia ds Kaffi zue gmacht hät
So flügt a jede i sin Tag
Wie Tube us em Tuubeschlag
@bczhc
bczhc / schedule-restart
Created May 19, 2022 15:42
Minecraft服务器定时重启脚本
#!/bin/env ruby
self_name = File.basename($0)
argv = ARGV
if argv.size < 2
puts "Usage: #{self_name} <screen-name> <command> [screen-select]"
exit 1
end
$screen_name = argv[0]
@bczhc
bczhc / a.md
Last active September 7, 2022 06:23
网易云音乐网页端后台请求使用的加密操作

用法: node encrypt.js \

@bczhc
bczhc / a
Last active June 1, 2022 07:45
抓取网易云用户的关注和粉丝并写入到数据库
#!/bin/env ruby
require 'json'
require 'sqlite3'
USER_ID = 0
DATABASE_PATH = './a.db'
LIMIT = 100
# @param text [String]
@bczhc
bczhc / ekey
Created June 26, 2022 02:33
QQ音乐新版ekey从数据库中获取脚本
#!/usr/bin/env ruby
require 'sqlite3'
argv = ARGV
if argv.empty?
puts "Usage: #{File.basename $0} <database> <path-key>"
return
end
@bczhc
bczhc / a.js
Last active July 8, 2022 05:27
Minecraft 1.19 所有生物群系
['the_void', 'plains', 'sunflower_plains', 'snowy_plains', 'ice_spikes', 'desert', 'swamp', 'mangrove_swamp', 'forest', 'flower_forest', 'birch_forest', 'dark_forest', 'old_growth_birch_forest', 'old_growth_pine_taiga', 'old_growth_spruce_taiga', 'taiga', 'snowy_taiga', 'savanna', 'savanna_plateau', 'windswept_hills', 'windswept_gravelly_hills', 'windswept_forest', 'windswept_savanna', 'jungle', 'sparse_jungle', 'bamboo_jungle', 'badlands', 'eroded_badlands', 'wooded_badlands', 'meadow', 'grove', 'snowy_slopes', 'frozen_peaks', 'jagged_peaks', 'stony_peaks', 'river', 'frozen_river', 'beach', 'snowy_beach', 'stony_shore', 'warm_ocean', 'lukewarm_ocean', 'deep_lukewarm_ocean', 'ocean', 'deep_ocean', 'cold_ocean', 'deep_cold_ocean', 'frozen_ocean', 'deep_frozen_ocean', 'mushroom_fields', 'dripstone_caves', 'lush_caves', 'deep_dark', 'nether_wastes', 'warped_forest', 'crimson_forest', 'soul_sand_valley', 'basalt_deltas', 'the_end', 'end_highlands', 'end_midlands', 'small_end_islands', 'end_barrens']
@bczhc
bczhc / a
Created July 13, 2022 11:28
dmesg with nvme issue
[ 0.000000] microcode: microcode updated early to revision 0x3e, date = 2021-12-07
[ 0.000000] Linux version 5.18.7-arch1-1 (linux@archlinux) (gcc (GCC) 12.1.0, GNU ld (GNU Binutils) 2.38) #1 SMP PREEMPT_DYNAMIC Sat, 25 Jun 2022 20:22:01 +0000
[ 0.000000] Command line: BOOT_IMAGE=/arch/boot/x86_64/vmlinuz-linux archisobasedir=arch archisolabel=ARCH_202207 psi=noasm debug
[ 0.000000] x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x020: 'AVX-512 opmask'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x040: 'AVX-512 Hi256'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x080: 'AVX-512 ZMM_Hi256'
@bczhc
bczhc / a.md
Last active April 29, 2023 03:42
PaddleOCR协作脚本