Skip to content

Instantly share code, notes, and snippets.

@zyc945
zyc945 / shell-setup.sh
Created March 1, 2023 02:13 — forked from MartinHarding/shell-setup.sh
Setup Oh My Zsh and PowerLevel10k
#!/bin/zsh
set -e
if [ -d "$HOME/.oh-my-zsh" ]; then
echo "Oh My ZSH is installed"
else
echo "Download and install Oh My ZSH before running this script"
echo 'sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"'
exit 1
fi
@zyc945
zyc945 / gist:596190e57229a854ba34b4be34301917
Created February 3, 2021 02:45 — forked from pwlin/gist:8a0d01e6428b7a96e2eb
Android : add cert to system store
https://code.google.com/p/android/issues/detail?id=32696#c5
If you have a certificate that is not
trusted by Android, when you add it, it goes in the personal cert store.
When you add a cert in this personal cert store, the system requires a
higher security level to unlock the device. But if you manage to add your
cert to the system store then you don't have this requirement. Obviously,
root is required to add a certificate to the system store, but it is quiet
easy.