android-studio

linux

window

macos

Offline componentsAndroid Gradle Plugin

Google Chrome

Inno Setup Unpacker

git

ubuntu

AMD 显卡状态

显卡驱动

查看 CPU 当前频率

watch -n.1 "grep \"^[c]pu MHz\" /proc/cpuinfo"

压力测试

stress --cpu 3

Windows

禁止休眠

powercfg -h off

自动登录

control userpasswords2

Vmware

拆分硬盘为多个文件

vmware-vdiskmanager -r "原文件名.vmdk" -t 1 "拆分后文件名.vmdk"

unlocker

webm to mp4

ffmpeg -r 24 -i a.webm   -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2"  c.mp4

NVME

sudo nvme smart-log  /dev/nvme0n1

关闭手机双开空间

adb shell pm list users

adb shell pm remove-user 999

关闭手机模拟器

adb -e emu kill 

img文件转换成vmdk

qemu-img convert -f raw openwrt.img -O vmdk openwrt.vmdk

PulseAudio

# /etc/pulse/daemon.conf

resample-method = speex-float-5
default-sample-format = s32le
alternate-sample-rate = 96000

# pulseaudio --check
# pulseaudio -k
# systemctl --user restart pulseaudio.service

journalctl | grep -i "Hardware Error"
journalctl --no-hostname -k -b -1 > /tmp/dmesg-1.txt

优化 nautilus 打开速度

sudo apt install ffmpeg-thumbnailer
sudo apt remove totem
rm -rf ~/.cache/thumbnails && nautilus -q

开机时间

systemd-analyze blame

sudo systemctl disable NetworkManager-wait-online.service

Simple log cleanning

sudo /etc/cron.daily/logrotate

# optionnal, delete log archives
sudo find /var/log -type f -iname *.gz -delete

Change the default terminal

sudo update-alternatives --config x-terminal-emulator