Skip to content

Instantly share code, notes, and snippets.

@yashke
Last active August 29, 2015 14:08
Show Gist options
  • Save yashke/339a41e7d7d031b1f29b to your computer and use it in GitHub Desktop.
Save yashke/339a41e7d7d031b1f29b to your computer and use it in GitHub Desktop.
auth-plain () { printf $1\0\0$2 | base64 | tr -d '\n' | sed 's/^/AUTH PLAIN /' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment