Created
          March 6, 2015 19:46 
        
      - 
      
- 
        Save ejfinneran/205cec26d7375ae8ed84 to your computer and use it in GitHub Desktop. 
    Exercise your passphrase memory
  
        
  
    
      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
    
  
  
    
  | pkill -SIGHUP gpg-agent; gpg --list-secret-keys | grep sec | awk '{ print $2 }' | awk 'BEGIN { FS = "/" } ; { print $2 }' | sed '/^$/d' | xargs -t -L 1 -J % gpg -o /dev/null -s -u % /dev/null | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Walks all the secret keys in your GPG keychain and signs /dev/null (outputting to /dev/null) so you can make sure you keep all your various passphrases fresh in your memory.