По материалам сайта Calculate Linux: https://www.calculate-linux.org/main/ru/git
This file contains hidden or 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 | |
# Mixing in python with bash we can easily retrieve our passwords securely in our shell scripts. | |
# Read this first: https://live.gnome.org/GnomeKeyring/SecurityPhilosophy | |
# Make sure your distro has gnome-keyring-daemon installed and running at login, | |
# as well as python-keyring installed (sudo apt-get install python-keyring) | |
## | |
# Follow these steps to see what it does. Verify by looking in Seahorse for your password. | |
## |
This file contains hidden or 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
FILE SPACING: | |
# double space a file | |
sed G | |
# double space a file which already has blank lines in it. Output file | |
# should contain no more than one blank line between lines of text. | |
sed '/^$/d;G' |