LFS

通过构建LFS,学习交叉编译相关概念,理解Linux系统内部的组成、依赖和运行。

Read more

Caddy2 with Cloudflare CDN (end-to-end encryption)

Cloudflare settings

dashboard->profile->API Tokens->Create API Token->Create Custom Token

  1. name the token
  2. Permissions->zone->zone read/dns edit/analytic read
  3. Zone Resources->specific zone->your site domain

do NOT use global API key

Read more

gpg常用命令


0x01


创建密钥对,期间会被要求输入密码用于保护密钥

1
2
gpg --full-gen-key
gpg --full-gen-key --expert
Read more

Ubuntu x86-64和aarch64升级OpenSSL

确认openssl版本受影响
安装编译所需工具
源码安装惯例,生产环境建议make test
备份旧openssl并为新安装的openssl做链接
装载配置,确认新版本号

Read more

Note-taking-for-Newifi2-D1-MTD

Hardware:Newifi2 D1
Bootloader:Breed written by hackpascal

Definition of MTD(Memory Technology Device)

A type of device file in Linux for interacting with flash memory. The MTD subsystem was created to provide an abstraction layer between the hardware-specific device drivers and higher-level applications.

Differences

Linux traditionally only knew block devices and character devices. Character devices were things like keyboards or mice, that you could read current data from, but couldn’t be seek-ed and didn’t have a size. Block devices had a fixed size and could be seek-ed. They also happened to be organized in blocks of multiple bytes, usually 512.

USB sticks, MMCs, SDs, CompactFlashes and other popular removable devices should not be confused with MTDs. Although they contain flash memory, this is hidden behind a block device interface using a FTL(Flash Translation Layer).

Read more

online独服安装Aria2+AriaNG+Caddy+FileBrowser

Online特价,3eur/mo,做下载机不错。急用,简单安装了Aria2+AriaNG+Caddy+FileBrowser,小绿锁没来得及上,history导出的,有点乱,可能会有错或遗漏…另外,现在FileBrowser不在以插件形式存在,反代一下即可…

Read more

python pandas操作Excel整理数据

很久不用Python了,想着简化一下日常繁琐的数据整理,写个脚本。

Script1:

1
2
3
4
5
6
7
8
9
10
import pandas as pd

GlobalIndex = pd.DataFrame(pd.read_excel('global.xlsx', header=5, usecols=[1, 4], skipfooter=1))
uData = pd.DataFrame(pd.read_excel('u.xlsx', header=5, usecols=[1, 2, 3, 4], skipfooter=1))
MergeResult = pd.merge(GlobalIndex,uData,how='inner',on=['Research Fields'])
u = MergeResult.sort_values(by="Web of Science Documents", ascending=False)
u['序号'] = range(1,len(u)+1)
u = u[['序号','Research Fields','Web of Science Documents','Cites','Cites/Paper_y','Cites/Paper_x']]
u.rename(columns={'Research Fields':'学科','Cites/Paper_x':'基准线','Cites/Paper_y':'均篇被引数','Web of Science Documents':'发文数','Cites':'被引数'},inplace = True)
u.to_excel('对比结果.xlsx',index=False)
Read more

cmds

bash命令记录…

Read more

6T-SRAM的构成和读写

MOSFET概要

金属氧化物半导体场效晶体管(简称:金氧半场效晶体管;英语:Metal-Oxide-Semiconductor Field-Effect Transistor,缩写:MOSFET),是一种可以广泛使用在模拟电路与数字电路的场效晶体管。金属氧化物半导体场效应管依照其沟道极性的不同,可分为电子占多数的N沟道型与空穴占多数的P沟道型,通常被称为N型金氧半场效晶体管(pMOSFET)与P型金氧半场效晶体管(pMOSFET)。

MOS管的电路符号有多种形式,最常见的设计是以一条垂直线代表沟道(Channel),两条和沟道平行的接线代表源极(Source)与漏极(Drain),左方和沟道垂直的接线代表栅极(Gate)。如下图所示:

Read more