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
def longest_words(words): | |
max_len = max(len(word) for word in words) | |
for word in words: | |
if len(word) == max_len: | |
print(word) | |
longest_words(["once", "upon", "a", "time"]) |
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 list all public keys stored in your keyring: | |
gpg --list-keys | |
To list all private keys stored in your keyring: | |
gpg --list-secret-keys | |
To generate a new key(pair): | |
gpg --gen-key | |
To generate a revocation certificate: |
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
yum list installed | awk '{print $1";"$2";"$3}' > /home/list_installed.csv | |
yum list available | awk '{print $1";"$2";"$3}' > /home/list_available.csv | |
yum check-update | awk '{print $1";"$2";"$3}' > /home/check_update.csv |