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
# add to ~/.bashrc | |
shortcutName() { | |
cd /path/to/app/dir || return | |
pipenv run command "$@" | |
cd - &> /dev/null | |
} |
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
# to create environment the first time | |
pipenv --python 3.6 install pip==18.0 | |
# if it already exists | |
pipenv run pip install pip==18.0 | |
https://github.com/pypa/pipenv/issues/2924 |
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
To disable — create file $HOME/.local/share/appimagekit/_no_desktopintegration works | |
https://github.com/electron-userland/electron-builder/issues/1962#issuecomment-352531262 | |
disables for all apps, for some (i. e. Discord) Discord_no_desktopintegration works |
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
~$ gdb mate-volume-control-applet | |
GNU gdb (GDB) Fedora 8.0.1-33.fc27 | |
Copyright (C) 2017 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-redhat-linux-gnu". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: |
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
:~$ gdb mate-volume-control-applet | |
GNU gdb (GDB) Fedora 8.0.1-33.fc27 | |
Copyright (C) 2017 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-redhat-linux-gnu". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: |
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
# Automatically switch to Bluetooth or USB headset when connected. | |
# Add the following to /etc/pulse/default.pa or ~/.config/pulse/default.pa: | |
load-module module-switch-on-connect | |
# Restart pulseaudio with the following command: | |
pulseaudio -k && pulseaudio --start |
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. |