open source law

Remember, libre != gratis; the open source license grants you the freedom to use and modify, but not commitments of other people’s time. Please be respectful, and set your expectations accordingly.

 
请记住,自由!=免费; 开源许可证授予您使用和修改的自由,但不承诺占用其他人的时间。 请保持尊重,并相应地设定您的期望。
 

https://wp-cli.org/#support

不背单词App壁纸目录

 

2022-1-31 13:07:54 有效:

/data/data/cn.com.langeasy.LangEasyLexis/files/wallpaper

不背单词壁纸目录APPv5


2021-12-07 09:15 有效:

官方公众号里面回复 当日单词 就可以下载了。

官方公众号索取图片

 

 2020-12-10 23:28 有效:

/storage/emulated/0/Android/data/cn.com.langeasy.LangEasyLexis/files/LexisImage

2022年的方法是自己探索的。使用了ES文件浏览器(开启root工具箱,文件夹内显式隐藏文件)

老方法来自网络:

https://www.zhihu.com/question/307013283

 

免 root 卸载 vivo 浏览器

因为有用,所以搬运:

免 root 卸载 vivo 浏览器,使用 adb 命令行

# 以root身份卸载软件
adb shell pm uninstall –user 0 com.vivo.browser
或者
adb shell pm uninstall -k –user 0 com.vivo.browser

-k 保留 Cache 和 用户数据
–user 0 以root身份运行

vivo 浏览器在我看来就是流氓软件,需要卸载。但因为它是所谓的“系统软件”,从手机上无法直接卸载。之前百度搜索过,没有找到想要的答案,所以这个问题困扰了我很久。今天实在忍不了了,结果谷歌一下,轻松解决问题。

国内的软件生态不好:

  • 强制广告,弹窗广告,低俗广告泛滥。
  • 软件下载、安装、卸载步步有坑。
  • 桌面版网页被阉割,提示下载APP显式全部。

互联网本身的属性是便利资源共享,结果因为政治原因和资本因素,在国内变得太过畸形,而百度正是这畸形的鲜明代表。国家关于网络的立法逐步健全,希望现实世界能有真正改变。

去除 openwrt 第三方内嵌广告

路由器刷了openwrt , 发现系统明显被带私货,加了广告:web首页有广告,ssh登录后有广告。个人不爽,浪费了点时间找对策。下面分享一下去除内嵌广告的方法。

  • web首页广告:

需要修改的文件:

/usr/lib/lua/luci/view/admin_status/index.htm

  • web 页面 footer 广告:

需要修改当前页面风格主题对应的 footer.htm

/usr/lib/lua/luci/view/themes/主题名称/footer.htm

  • ssh 登录广告,出现在欢迎消息(Message of the Day)下面:

 

 

 

 

 

需要修改的文件:

/etc/banner

 

删掉广告对应的代码行即可。

【解决】总结 Arch Linux 下我的宏碁笔记本蓝牙无法启动问题(Qualcomm Atheros QCA9565 / AR9565)

笔记本电脑型号:
Acer E5-471G

适配器型号: QCWB335 WLAN/蓝牙二合一适配器
Network controller [0280]: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter

操作系统:
Arch Linux

内核版本:
5.12.12-arch1-1 #1 SMP PREEMPT Fri, 18 Jun 2021 21:59:22 +0000 x86_64 GNU/Linux


准备工作:
1.安装必要软件
blueman
bluez
bluez-hid2hci
bluez-utils
pulseaudio-bluetooth

症状:
使用 bluetoothctl 命令工具,检查蓝牙状态,提示没有控制器。

root:~# bluetoothctl

[bluetooth]# devices
No default controller available

使用 rfkill 命令工具,没看到蓝牙设备信息
root:~# rfkill list
0: acer-wireless: Wireless LAN
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

=======================================================
【知识储备】:
1. Atheros QCA9565 / AR9565 网卡驱动和蓝牙驱动不一样:
网卡驱动:ath9k
蓝牙驱动:ath3k
ref:
https://wireless.wiki.kernel.org/en/users/drivers/ath3k
https://wireless.wiki.kernel.org/en/users/drivers/ath9k

2. acer_wmi 驱动导致蓝牙无法启动。
ref:
https://itectec.com/ubuntu/ubuntu-qualcomm-atheros-bluetooth-4-0-not-working-on-ubuntu-16-04/


【解决方法】:

/etc/modprobe.d 目录下建立一个文本文件(文件名自定,比如:bluetooth-fix.conf),写入下面两行代码

options ath9k btcoex_enable=1 bt_ant_diversity=1
blacklist acer_wmi


【解释】:
options ath9k btcoex_enable=1 bt_ant_diversity=1
修改 网卡驱动参数,减少 WiFi 与蓝牙的互相干扰(无线网上传速率受影响严重,蓝牙耳机声音卡顿)
ref:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1746164

blacklist acer_wmi
禁用 acer_wmi 驱动。该驱动会导致蓝牙无法启动,蓝牙图标无法出现在面板通知栏。
blacklist acer_wmi 可由 install acer_wmi /bin/false 代替,后者彻底禁用驱动,强力!


目前发现,禁用 acer_wmi 驱动 对我笔记本的影响是 WLAN 快键开关失效(Fn+F3)。
其他快捷开关仍然正常工作,比如:显示屏LED背光开关,背光亮度高低,音量大小,音乐播放控制,触摸板开关,静音开关,数字键盘锁定……

!!注意:是否必须 blacklist acer_wmi?
答:必须,否则蓝牙无法启动。 在系统启动时禁用,不要在进桌面后禁用,否则键盘无响应。


acer_wmi is a driver to allow you to control various parts of your Acer laptop hardware under Linux which are exposed via ACPI-WMI.
acer_wmi 是一个驱动程序,允许您在 Linux 下通过 ACPI-WMI 提供的接口,控制 Acer 笔记本电脑硬件的各个部分。

ref:
https://gitlab.inria.fr/blare/kblare/-/raw/0f8f86c7bdd1c954fbe153af437a0d91a6c5721a/Documentation/laptops/acer-wmi.txt


=======================================================
蓝牙正常后,使用命令查看状态:

root:~# rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: no
Hard blocked: no


root:~# lsmod | grep -i bt
btusb 69632 0
btrtl 28672 1 btusb
btbcm 16384 1 btusb
btintel 32768 1 btusb
bluetooth 724992 44 btrtl,btintel,btbcm,bnep,ath3k,btusb,rfcomm


root:~# lsmod | grep acer
acer_wmi 28672 0
sparse_keymap 16384 1 acer_wmi
rfkill 28672 8 acer_wmi,bluetooth,cfg80211
i8042 32768 1 acer_wmi
wmi 36864 3 acer_wmi,wmi_bmof,mxm_wmi
video 53248 2 acer_wmi,i915

 

其它参考:
深度linux 无线网卡,在Deepin Linux系统无线网卡、蓝牙模块驱动安装和出现问题的解决…
https://blog.csdn.net/weixin_28716723/article/details/116659254

 

disable_bluetooth
enable_bluetooth

vim 笔记

 

1. 命令行:vim 打开文件,直接跳到文件末行 [1]

2. 

[1]https://stackoverflow.com/questions/32431672/vim-from-command-line-go-to-end-of-file-and-start-editing

Taking General Manager Meeting Minutes for the First Time

第一次写总经理办公会会议纪要

2019年5月28日,我第一次担任总经理办公会会议记录员,并于会后起草会议纪要。

会议纪要在兰主席和王总修改后,顺利通过赵总审核。

缺点:字丑,记录速度慢,没有速记本领(其实翻译也很需要这本事)。

优点:没有慌乱。