When posting a theme make sure it has
- title (theme name or whatever)
- link to a gist or github repo with theme files
- screenshot attached (just drag an image onto a comment area)
#!/bin/bash | |
# Usage | |
## chmod +x ip_change.sh | |
## sudo ./ip_change.sh new_ip | |
path="/etc/network/interfaces" | |
current="$(hostname -I | cut -d' ' -f1 | xargs)" | |
new_ip=$1 |
#!/bin/bash | |
# Usage | |
## chmod +x hostname_change.sh | |
## sudo ./hostname_change.sh new_hostname | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root." | |
exit | |
fi |
#!/bin/bash | |
echo "LC_ALL=en_US.UTF-8" | sudo tee -a /etc/environment | |
echo "en_US.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen | |
echo "LANG=en_US.UTF-8" | sudo tee -a /etc/locale.conf | |
sudo locale-gen en_US.UTF-8 |
sudo apt install policykit-desktop-privileges policykit-1-gnome | |
exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 & | |
OR: | |
sudo apt-get install lxpolkit |
1. Flashing the recovery image: | |
fastboot flash recovery recovery.img | |
2. Flash the kernel and bootloader: | |
fastboot flash boot boot.img | |
3. Erase a partition: | |
fastboot erase cache |
find . -name "*.pyc" -exec rm -rf {} \;
or use this:
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
source: link