Lightweight Python script to prepare Redis commands for mass insertion.
#!/usr/bin/env python
"""
redis-mass.py| /* | |
| * Derived from https://github.com/google/google-authenticator-android/blob/master/AuthenticatorApp/src/main/java/com/google/android/apps/authenticator/Base32String.java | |
| * | |
| * Copyright (C) 2016 BravoTango86 | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| # For more information on configuration, see: | |
| # * Official English Documentation: http://nginx.org/en/docs/ | |
| # * Official Russian Documentation: http://nginx.org/ru/docs/ | |
| user nginx; | |
| worker_processes auto; | |
| error_log /var/log/nginx/error.log; | |
| pid /run/nginx.pid; | |
| events { |
| #!/usr/bin/ruby | |
| # REQUIRES: | |
| # * rooted android, as otherwise you can't read the applications private data | |
| # * to display the qr code "qrencode" (http://fukuchi.org/works/qrencode/) | |
| # and "display" from ImageMagick | |
| # This script "decrypts" the token from the internal state of the | |
| # Battle.net Mobile Authenticator on android application, converting | |
| # it into an "otpauth" url (https://code.google.com/p/google-authenticator/wiki/KeyUriFormat) |
| ALL | |
| All messages in the mailbox; the default initial key for | |
| ANDing. | |
| ANSWERED | |
| Messages with the \Answered flag set. | |
| BCC | |
| Messages that contain the specified string in the envelope | |
| structure's BCC field. |