Skip to content

Instantly share code, notes, and snippets.

View bczhc's full-sized avatar
🌴

Zhai Can bczhc

🌴
  • Jiangsu, China
  • 19:17 (UTC +08:00)
  • X @bczhc0
View GitHub Profile
@bczhc
bczhc / a.md
Last active March 3, 2025 05:49
LLM网站在Firefox截图方法 #llm
  • Grok3: 把.h-full元素CSS中height: 100%删去或禁用。

  • DeepSeek:

    image

    scroll的这个标签CSS position: absolute删去或禁用掉。

    image

这个根下的第一个标签中CSS overflow: hidden删去或禁用掉。

@bczhc
bczhc / a.md
Created March 3, 2025 05:42
拿AI生成的有关我熬夜的一些骚句 #llm
  • Blame my 300-million-year-old synapsid ancestor for my nocturnality. It’s basically genetic. - ChatGPT-4o
  • 我贪恋黑夜,只因三亿年前星光是我祖先的灯。 - DeepSeek-r1
  • 我非夜猫,是恒星熄灭后/自主发光的/第N代合弓纲余烬。 - DeepSeek-r1
@bczhc
bczhc / a.js
Last active March 3, 2025 03:26
export deepseek chat history in browser console (cached locally) #deepseek #llm
// 打开数据库
function openDatabase(dbName) {
return new Promise((resolve, reject) => {
const request = indexedDB.open(dbName);
request.onsuccess = (event) => {
const db = event.target.result;
resolve(db);
};
@bczhc
bczhc / a.css
Last active February 19, 2025 05:39
Thunderbird "Markdown Here Revival" custom styling (Github-like) #thunderbird #styling #conf #github
/*
* Copyright JFX 2021-2023
* MIT License
* https://gitlab.com/jfx2006
*/
/*
* Copyright Zhai Can 2025
* MIT License
*/
@bczhc
bczhc / epson-print
Created February 17, 2025 08:57
爱普生LQ-615KII打印小工具
#!/bin/env ruby
require 'open3'
require 'iconv'
require 'shellwords'
$args = ARGV
show_help = $args.include?('-h') || $args.include?('--help') || $args.empty?
if show_help
puts %{Epson LQ-615KII Print Utility
@bczhc
bczhc / qrz.com.html
Last active February 15, 2025 15:39
qrz.com
<p>My name: 翟灿 (Pinyin: Zh&aacute;i C&agrave;n; Yale: Jai Ts&#39;an)</p>
<p>I&#39;m an SWL fan and also interested in Amateur Radio.</p>
<p>Grid: During school: OM91xq; during vacation: PM01gv</p>
<p>HF RIG: YAESU FT-710, Airspy HF+ Discovery<br/>
HF ANT:</p>
<ol>
@bczhc
bczhc / disc-multi
Created February 7, 2025 04:35
光盘轨道映射为回环设备 #disc #optical
#!/bin/env ruby
require 'shellwords'
if ARGV.empty?
puts "Usage: #{$0} <drive-device>"
exit 1
end
drive = ARGV[0]
@bczhc
bczhc / CRAC.svg
Last active February 2, 2025 21:01
按照 http://www.crac.org.cn/News/Detail?ID=327 更正颜色的CRAC Logo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bczhc
bczhc / flac-to-iq-wav
Created January 24, 2025 06:00
Reduce IQ wav file using FLAC compression #sdr
#!/bin/bash
[ $# -ne 3 ] && echo 'Arguments: <input.flac> <output.wav> <iq-samplerate>' && exit 1
# decompress and squeeze
ffmpeg -v error -i "$1" -f s16le - | ffmpeg -nostdin -f s16le -ar "$3" -ac 2 -i pipe:0 -bitexact "$2" -y