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
from PyQt4.QtGui import QApplication, QMainWindow, QDialog, QHBoxLayout | |
from PyQt4.QtCore import SIGNAL | |
from Koo.Rpc import Rpc | |
from Koo.Common import Api | |
from Koo.Common import Localization | |
Localization.initializeTranslations() | |
from Koo.Dialogs import WindowService | |
x = Rpc.session.login('http://admin:admin@localhost:8069', 'test_1522167327') |
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
from datetime import datetime | |
import asyncore | |
from smtpd import SMTPServer | |
class EmlServer(SMTPServer): | |
no = 0 | |
def process_message(self, peer, mailfrom, rcpttos, data): | |
filename = '%s-%d.eml' % (datetime.now().strftime('%Y%m%d%H%M%S'), | |
self.no) | |
f = open(filename, 'w') |
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
def get_version(): | |
import os | |
import subprocess | |
try: | |
try: | |
version = subprocess.check_output([ | |
'git', 'describe', '--tags' | |
]).strip() | |
except subprocess.CalledProcessError: | |
version = __import__('pkg_resources') \ |
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
import logging | |
import os | |
import click | |
from erppeek import Client | |
logging.basicConfig(level=logging.INFO) | |
logger = logging.getLogger('installer') | |
def setup_peek(**peek_config): |
As configured in my dotfiles.
start new:
tmux
start new with session name: