Skip to content

Instantly share code, notes, and snippets.

@dzid26
dzid26 / update-gcc-clang-12-ubuntu-16.04-xenial.sh
Last active August 19, 2021 01:37 — forked from orenyomtov/update-gcc-clang-8-ubuntu-16.04-xenial.sh
Update clang to 12 and gcc to 8 and qt5.11.1 on Ubuntu xenial 16.04
if [ ! -f /usr/bin/gcc-8 ]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-8 g++-8
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 1000
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 1000
fi
if [ ! -f /usr/bin/clang-12 ]; then
@dzid26
dzid26 / install_deletion_job.sh
Created September 12, 2018 01:47 — forked from SippieCup/install_deletion_job.sh
Installer for script & cron job that automatically deletes older drives when free space goes under 10GB.
#!/bin/sh
echo "Creating /data/cleardata/cleardata.sh"
# Create deletion script
mkdir /data/cleardata
echo "#!/bin/sh
# get the available space left on the device
size=\$(df -k /storage/emulated/0/Android/data | tail -1 | awk '{print \$4}')