This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Replace X with the number of days. | |
# Found files can be deleted by appending option -delete. | |
# Access time must be supported by the file system and | |
# enabled (noatime option not present in /etc/fstab). | |
find "$HOME" -atime +X -type f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Replace username, repo, branch, path, file & ext with target values. | |
Instead of branch name a commit id or release version can also be used. | |
https://cdn.jsdelivr.net/gh/username/repo@branch/path/file.min.ext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#tested with conda 4.5.0 | |
envs_dir=$(conda config --show | grep -A 1 envs_dirs | grep -oE '/.+$') | |
find "$envs_dir" -mindepth 1 -maxdepth 1 -type d -exec conda update --all --prefix {} \; | |
#alternative method | |
#cd "$envs_dir" || exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Tested on Fedora 25 MATE (lightdm version 1.18.3). | |
conf=$"[SeatDefaults] | |
autologin-user=$USER | |
autologin-user-timeout=0" | |
echo "$conf" | sudo tee '/etc/lightdm/lightdm.conf.d/custom-local.conf' | |
#Another way but may be overwritten with updates. |