A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
import qrcode | |
import sqlite3 | |
conn = sqlite3.connect('databases') | |
c = conn.cursor() | |
for idx, (email, secret, issuer) in enumerate(c.execute("SELECT email,secret,issuer FROM accounts").fetchall()): | |
url = 'otpauth://totp/{}?secret={}&issuer={}'.format(email, secret, issuer) | |
print url | |
im = qrcode.make(url) | |
im.save('{}.png'.format(idx)) |
#!/usr/bin/env sh | |
# checks to see if running | |
launchctl list | grep mongo | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist | |
launchctl remove homebrew.mxcl.mongodb-community | |
pkill -f mongod |