This list is no longer updated, thus the information is no longer reliable.
You can see the latest version (from october 2022) here
This list is no longer updated, thus the information is no longer reliable.
You can see the latest version (from october 2022) here
Create encrypted password file with pass or gopass
pass insert ansible/test
or gopass insert ansible/test
Now you can access become password stored in ansible/test using lookup plugin passwordstore
alias YOU YOUR NAME <[email protected]> |
# http://stackoverflow.com/questions/2546207/does-sqlalchemy-have-an-equivalent-of-djangos-get-or-create | |
# credit to Wolf | |
def get_or_create(session, model, defaults=None, **kwargs): | |
instance = session.query(model).filter_by(**kwargs).first() | |
if instance: | |
return instance, False | |
else: | |
params = dict((k, v) for k, v in kwargs.iteritems() if not isinstance(v, ClauseElement)) | |
params.update(defaults or {}) |
from datetime import datetime | |
from sqlalchemy import Column, Integer, DateTime, ForeignKey | |
from sqlalchemy.orm import relationship | |
from sqlalchemy.ext.declarative import declared_attr | |
from flask_security import current_user | |
class AuditMixin(object): | |
created_at = Column(DateTime, default=datetime.now) | |
updated_at = Column(DateTime, default=datetime.now, onupdate=datetime.now) |
[Repository local-baylibre] | |
... | |
nametrans = lambda folder: { | |
'drafts': '[Gmail]/Drafts', | |
'flagged': '[Gmail]/Starred', | |
'important': '[Gmail]/Important', | |
'inbox': 'INBOX', | |
'spam': '[Gmail]/Spam', | |
'trash': '[Gmail]/Trash', | |
}.get(folder, folder) |
Cubietruck is also known as Cubieboard 3
Note: This file documents just what I did, first of all as a note for myself. So this is not primarily intended as a tutorial. Because it still might be helpfull, I uploaded it. The GPIO function is now confirmed to work, tested with my multimeter, but I am still waiting for my jumper cables to arrive, so I can use them securely.
Licensed under a Luna-Will-Cry-If-You-Modify-Or-Redistribute-This 1.0 licence.
Thanks to this article by Christoph Berg
Directories and files
~/
"""SQLAlchemy Metadata and Session object""" | |
import datetime | |
import json | |
import time | |
from sqlalchemy import MetaData | |
from sqlalchemy.orm import scoped_session, sessionmaker | |
__all__ = ['Session', 'metadata', 'Model', 'SchemaEncoder'] |
#!/bin/sh | |
# Automatic SSH jump host for IPv6-only hosts. | |
# Usage in ~/.ssh/config: ProxyCommand ~/.ssh/ipv6proxy <jumphost> %h %p | |
# If a host is reachable via IPv6, a direct connection is made. | |
# Otherwise a jump host is used (which shall support IPv6). | |
if ping6 -c1 $2 >/dev/null 2>&1; then | |
exec nc -6 $2 $3 | |
else | |
exec ssh -q $1 "nc -6 $2 $3" |