Skip to content

Instantly share code, notes, and snippets.

@m13253
m13253 / android-captive-portal-china-fix.sh
Created January 22, 2020 16:01
Change Android captive portal detection to Xiaomi's server
adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204
adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
@shui
shui / 1.md
Created March 5, 2018 03:24
Linux查找大文件和大目录

挂载/home的磁盘目录扩容了好几次但很快又没可用空间了,很烦。 之后发现是Gitlab自动备份文件堆积成山……

  • 查找大文件
# 查找超过800M大小文件
find . -type f -size +800M
# 查找超过800M大小文件,并显示文件信息
find . -type f -size +800M -print0 | xargs -0 ls -l
# 查找超过800M大小文件,并显示查找出来文件的具体大小
@shui
shui / after-install.md
Last active November 19, 2023 09:45
阿里云ECS安装后……

删除阿里云ECS登录欢迎信息

阿里云镜像修改了欢迎信息:

Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-105-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage