Skip to content

Instantly share code, notes, and snippets.

View alembiq's full-sized avatar

Karel Křemel alembiq

View GitHub Profile
@chrisswanda
chrisswanda / Remove SSH key from GPG agent keyring.txt
Created May 12, 2020 11:59
Remove SSH key from GPG agent keyring
keys=$(gpg-connect-agent 'keyinfo --list' /bye | awk '{print $3}')
for key in $keys; do gpg-connect-agent "delete_key $key --force" /bye; done
@sebastiancarlos
sebastiancarlos / show_notifications.bash
Last active July 8, 2024 03:49
Show notifications in your terminal
# All my gist code is licensed under the terms of the MIT license.
# Video demo: https://www.youtube.com/shorts/WVyqVkGYb4k
# Add this somewhere in ~/.bashrc
# write_message
# - write a message on the lower right corner of the terminal
function write_message () {
if [[ "$#" -eq 0 ]]; then