(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
#!/usr/bin/env python | |
import xmlrpclib | |
import sys | |
def run_test(host, port, dbname, uid, pwd, tid): | |
sock = xmlrpclib.ServerProxy('https://%s:%d/xmlrpc/ws_transaction' | |
% (host, port)) | |
sock.commit(dbname, uid, pwd, tid) | |
sock.close(dbname, uid, pwd, tid) |
VERSION="2.35.0" |
#!/bin/bash | |
d_repo=( $(git remote -v | grep '\(push\)' | cut -d':' -f 2 | \ | |
cut -d' ' -f 1 | cut -d '.' -f 1) ) | |
d_base="developer" | |
d_from=gisce:$(git branch --no-color 2> /dev/null | grep '^\*' | \ | |
cut -d ' ' -f 2) | |
read -p "User:" user | |
read -sp "Password:" password | |
echo |
from erppeek import Client | |
import sys | |
import base64 | |
from subprocess import call | |
import time | |
#report = 'giscedata.facturacio.factura' | |
#ids = [1513047, 1513049, 1513057, 1513042] | |
#ids = [1513042] |
# -*- coding: utf-8 -*- | |
from ftplib import FTP | |
import click | |
from datetime import datetime | |
try: | |
from urllib.parse import urlparse | |
except: | |
from urlparse import urlparse | |
import os |
import redis | |
r = redis.StrictRedis(host='redis') | |
l = r.keys('rq:job:*') | |
deleted_jobs = 0 | |
total_jobs = len(l) | |
for j in l: | |
if 'dependents' in j: | |
continue | |
print 'Job {}'.format(j) |