Android WireGuard Magisk 的使用

2023年11月1日 · 880 字 · 2 分钟

之前手机已经安装了 magiskmagisk-ssh-modules。通过 ssh 传输文件(scp\rsync),安装软件(pm install),非常地方便。但是手机不同于服务器,没有固定 ip,所以说“很方便”也有有点勉强。那需求来了,如何给手机一个固定 IP 呢?

什么是 MP4 ?

2022年4月10日 · 1551 字 · 4 分钟

每天都用电子产品看视频,但如果有人提问:“什么是 mp4”? 这个问题,还真有亿点点难。

用 ADB 清理下 Android 手机

2022年4月3日 · 3781 字 · 8 分钟

天翼一号,一款中国电信定制的机子,型号 TYH201H,由海信代工。

  • 手机桌面负一屏是什么天翼云手机
  • 内置很多垃圾软件不能卸载

Decrease titlebar height in GNOME 3.19+

2021年10月8日 · 274 字 · 1 分钟

为了用上 fcitx-5,把系统一口气升级到了 ubuntu 21.10 . 升级完发现,Terminal 的标题栏好宽,好难看,接受不了。

__attribute__

2021年10月5日 · 701 字 · 2 分钟

The keyword attribute allows you to specify special properties of variables, function parameters, or structure, union, and, in C++, class members. This attribute keyword is followed by an attribute specification enclosed in double parentheses. Some attributes are currently defined generically for variables. Other attributes are defined for variables on particular target systems. Other attributes are available for functions (see Function Attributes), labels (see Label Attributes), enumerators (see Enumerator Attributes), statements (see Statement Attributes), and for types (see Type Attributes). Other front ends might define more attributes (see Extensions to the C++ Language).

Specifying Attributes of Variables

v4l2loopback 简单使用

2021年10月1日 · 474 字 · 1 分钟

笔记本升级 Ubuntu:21.10 后,自带的摄像头检测不到了。物理摄像头虽然有贴纸盖着,一般不用,但有时需要测试 webrtc 推流,没有视频采集源也是个麻烦事。winmac 平台都有虚拟摄像头软件,linux 必然也有。网上搜了一下,有个 v4l2loopback 的工具,配合 ffmpeg 可以虚拟摄像头供相关软件采集。

Bash 脚本学习

2021年9月2日 · 1282 字 · 3 分钟

工作和生活中用的电脑都是 ubuntu(18.04) 系统,时不时需要编写一些 Bash 脚本,目的当然是为了减少重复作业。为了避免每次都 临时低效 地检索,索性自己整理一下。互联网中资料是海量的,但是垃圾信息也越来越多了,感觉现在上网找答案都好难,到处都是广告,无脑转载,标题党……

Linux 常用命令

2021年5月25日 · 1995 字 · 4 分钟

Linux 命令行下有很多常用工具,每个工具又有各种使用方法。这里记录一些常用工具的常用使用方法。对于较为复杂的工具,比如 ffmpeg 则记录在单独的日志里。

C Snippet

2019年5月10日 · 106 字 · 1 分钟

C 代码片段罗列,方便查找