Skip to content

Instantly share code, notes, and snippets.

View qichunren's full-sized avatar
🌈
Focusing contribute

Qichunren qichunren

🌈
Focusing contribute
View GitHub Profile
@qichunren
qichunren / demo1.html
Created October 28, 2024 03:57
text mark effect
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>蜡笔标记效果</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
@qichunren
qichunren / html_to_img.html
Created October 28, 2024 03:55
html page to image
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>页面转图片</title>
<script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>
<style>
body {
font-family: Arial, sans-serif;
@qichunren
qichunren / sync.sh
Created May 18, 2024 11:40
在Linux中,我有两个目录,我需要从一个目录中同步其中的一些目录和文件到另一个目录中。 如第一个目录中有大量目录有文件,我需要选择性的记录一些目录和文件,我希望能同步其中的一些目录和文件到另外一个目录里,同时保证目录结构。
#!/bin/bash
# 源目录
source_base="/data/tian5.0he/T113-tina5.0"
# 目标目录
target_base="/home/qichunren/code/T113-S3-Box-SDK"
# 需要同步的目录列表
directories_to_sync=(
@qichunren
qichunren / buildlog.txt
Created February 26, 2024 02:59
t113 tina sdk 5.0
Package kmod-mac80211 is missing dependencies for the following libraries:
cfg80211.ko
compat.ko
Makefile:528: recipe for target '/home/qichunren/data/t113-tina-5.0/out/t113/dev2/openwrt/extra/targets/t113-dev2/generic/packages/kmod-mac80211_5.4.182+5.10.85-1-1_arm_cortex-a7_neon.ipk' failed
make[3]: *** [/home/qichunren/data/t113-tina-5.0/out/t113/dev2/openwrt/extra/targets/t113-dev2/generic/packages/kmod-mac80211_5.4.182+5.10.85-1-1_arm_cortex-a7_neon.ipk] Error 1
make[3]: Leaving directory '/data/t113-tina-5.0/openwrt/openwrt/package/kernel/mac80211'
time: package/kernel/mac80211/regular/compile#0.30#0.06#0.73
ERROR: package/kernel/mac80211 failed to build (build variant: regular).
package/Makefile:114: recipe for target 'package/kernel/mac80211/compile' failed
make[2]: *** [package/kernel/mac80211/compile] Error 1
@qichunren
qichunren / log.txt
Created February 23, 2024 07:12
t113 builroot sd无法启动
[89]HELLO! BOOT0 is starting!
[92]BOOT0 commit : 1417090655
[95]set pll start
[96]fix vccio detect value:0xc0
[104]periph0 has been enabled
[107]set pll end
[108][pmu]: bus read error
[111]board init ok
[113]enable_jtag
@qichunren
qichunren / boot.txt
Last active February 22, 2024 16:49
T113_buildroot_tf_boot log
[88]HELLO! BOOT0 is starting!
[90]BOOT0 commit : 1417090655
[93]set pll start
[95]fix vccio detect value:0xc0
[102]periph0 has been enabled
[105]set pll end
[107][pmu]: bus read error
[109]board init ok
[111]enable_jtag
[113]ZQ value = 0x2f
@qichunren
qichunren / log.txt
Created February 20, 2024 05:54
dephy-io/t113-tina build log
ruby@ruby-VirtualBox:~/code/t113-tina$ docker compose run b
[+] Building 0.0s (0/0)
[+] Building 0.0s (0/0)
builder@b775dd81fe0d:/app$ source build/envsetup.sh
Setup env done! Please run lunch next.
builder@b775dd81fe0d:/app$ lunch
You're building on Linux
Lunch menu... pick a combo:
@qichunren
qichunren / build_log.txt
Created February 20, 2024 01:12
error_log
qichunren@qichunren-VirtualBox:~/Desktop/v1.1$ ./build.sh
========ACTION List: build_linuxdev;========
options :
INFO: ----------------------------------------
INFO: build linuxdev ...
INFO: chip: sun8iw20p1
INFO: platform: linux
INFO: kernel: linux-5.4
INFO: board: dev
INFO: output: /home/qichunren/Desktop/v1.1/out/t113/dev/buildroot
@qichunren
qichunren / README.md
Last active March 29, 2022 14:08
Rails CRUD boy

Generate admin model CRUD code

This is unexpected, as it geneated post model into admin namespace.

./bin/rails generate admin/post title context:text

Solution:

./bin/rails generate model Post title context:text

./bin/rails g scaffold_controller Admin::Post title context:text --model-name=Post --no-jbuilder

#!/usr/bin/env bash
# inspired by
# https://gist.github.com/JannikArndt/feb720c1f5d210b4820b880af23f2a07
# which was inspired by
# https://github.com/fwartner/mac-cleanup/blob/master/cleanup.sh
# https://gist.github.com/jamesrampton/4503412
# https://github.com/mengfeng/clean-my-mac/blob/master/clean_my_mac.sh
# https://github.com/szymonkaliski/Dotfiles/blob/master/Scripts/clean-my-mac
# http://brettterpstra.com/2015/10/27/vacuuming-mail-dot-app-on-el-capitan/ / https://github.com/pbihq/tools/blob/master/MailDBOptimiser.sh