Skip to content

Instantly share code, notes, and snippets.

@imyxh
Created May 27, 2018 20:12
Show Gist options
  • Save imyxh/480af3f9b58360f245b6efe63b2511fa to your computer and use it in GitHub Desktop.
Save imyxh/480af3f9b58360f245b6efe63b2511fa to your computer and use it in GitHub Desktop.
#!/bin/sh -
# Clear SSD's Blender temp folder.
# Could be done by following https://wiki.archlinux.org/index.php/Systemd/User#Temporary_files,
# but that wouldn't work with trash support.
trashdir="/home/imyxh/.local/share/Trash/files"
for i in /mnt/ssd/blender/temp/*
do
mkdir -p $trashdir/blender-temp;
mv "$i" $trashdir/blender-temp;
done
# Back up a list of explicitly installed packages.
pacman -Qent > /home/imyxh/scripts/pacman_native.txt
pacman -Qm > /home/imyxh/scripts/pacman_foreign.txt
pip freeze > /home/imyxh/scripts/pip_freeze.txt
gem list > /home/imyxh/scripts/gem_list.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment