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 | |
# Script for installing tmux on systems where you don't have root access or you want a different version. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# To install in a box with no external connection donwload the source files and put them in the temp_dir. | |
# TODO: | |
# manage local source files better | |
# exit on error |
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
# A list of the keys of dictionary | |
list_keys = [ k for k in dict ] | |
# or a list of the values | |
list_values = [ v for v in dict.values() ] | |
# or just a list of the list of key value pairs | |
list_key_value = [ [k,v] for k, v in dict.items() ] |
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
sudo apt install gnome-tweak-tool | |
# run gnome-tweaks | |
# change mouse/touchpad to use right button correctly | |
# change date/time | |
# remove icons from desktop | |
# customize ubuntu dock/dash | |
# reduce icon size | |
# remove icons from left bar | |
# if virtual-box, disable automatic screen lock and set blank screen to never | |
gsettings get org.gnome.desktop.screensaver lock-enabled |
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
# Run a container and immediately enter a bash shell | |
podman run -it --entrypoint /bin/bash <image> |
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
### Swapping the value of variables | |
# a->b | |
# b->a | |
a, b = b, a | |
# Works with more values | |
a, b, c, d = d, c, b, a | |
### List comprehension | |
# instead of: |