Skip to content

Instantly share code, notes, and snippets.

View anthonywong's full-sized avatar
🏠
Working from home

Anthony Wong anthonywong

🏠
Working from home
  • Canonical
  • Hong Kong
View GitHub Profile
-o cache=yes
-o kernel_cache
-o compression=no
-o large_read
-o Cipher=arcfour
@anthonywong
anthonywong / installed_packages_order_by_size.sh
Created September 24, 2015 14:32
Output installed packages order by size
for package in $(dpkg -l | grep ^ii| awk '{ print $2 }'); do size=$(dpkg -s $package | grep Installed-Size | awk '{ print $2 }'); echo $package $size; done | sort -nr -k2
#!/bin/sh
pkill -x fcitx-qimpanel
pkill -x fcitx
sleep 1
cd ~/.config
t=$(mktemp -d) || exit
mv fcitx fcitx-qimpanel SogouPY SogouPY.users $t
echo "Config files moved to " $t