(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:
| #!/bin/bash | |
| if [ "$1" != "" ] && [ "$1" = "-h" ]; then | |
| echo "Shipyard Deploy uses the following environment variables:" | |
| echo " ACTION: this is the action to use (deploy, upgrade, node, remove)" | |
| echo " DISCOVERY: discovery system used by Swarm (only if using 'node' action)" | |
| echo " IMAGE: this overrides the default Shipyard image" | |
| echo " PREFIX: prefix for container names" | |
| echo " SHIPYARD_ARGS: these are passed to the Shipyard controller container as controller args" | |
| echo " TLS_CERT_PATH: path to certs to enable TLS for Shipyard" |
| K=`curl -s http://www.symmz.com/sitemap_baidu.xml | ack -o 'http://www.symmz.com/\w+/\d+-\d+.html'` | |
| for item in `echo $K`;do | |
| ack -o 'http://img.symmz.com/images/\w+/\d{8}/\w+.jpg' html/`cd html && curl -s "$item" -O -w '%{filename_effective}' ` | xargs -L 1 bash -cx 'cd jpg && wget -c $0' | |
| done |
| # @Author: xiewenqian <int> | |
| # @Date: 2016-11-28T20:35:09+08:00 | |
| # @Email: wixb50@gmail.com | |
| # @Last modified by: int | |
| # @Last modified time: 2016-12-01T19:32:48+08:00 | |
| import pandas as pd | |
| from pymongo import MongoClient |
| import time | |
| import contextlib | |
| from tornado.ioloop import IOLoop | |
| import tornado.web | |
| from tornado import gen | |
| @gen.coroutine | |
| def async_sleep(timeout): | |
| yield gen.Task(IOLoop.instance().add_timeout, time.time() + timeout) |
header='/*\n * Copyright (c) 2015 by MyCompany, Inc.\n * All rights reserved.\n */\n'
find ~/my-proj/*.sh -exec sed -i "1s|^|$header|" {} \;
| #!/bin/bash | |
| BASE_DIR=`pwd` | |
| GIT_DIR="/Users/gc/Temp/git_repo" | |
| SVN_DIR="/Users/gc/Temp/svn_repo" | |
| # The SVN_AUTH variable can be used in case you need credentials to commit | |
| #SVN_AUTH="--username guilherme.chapiewski@gmail.com --password XPTO" | |
| SVN_AUTH="" | |
| function svn_checkin { |
| # -*- coding: utf-8 -*- | |
| # @Author: xiewenqian <int> | |
| # @Date: 2016-09-12T09:13:01+08:00 | |
| # @Email: wixb50@gmail.com | |
| # @Last modified by: int | |
| # @Last modified time: 2016-09-22T10:24:14+08:00 | |
| import os | |
| import zmq |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| """ This script checks compares two databases schemas, first display | |
| which tables are only present in the reference schema. | |
| Then for each tables which are in the reference database it displays if | |
| the attributes and (primary and foreign) which are differents. | |
| """ | |
| import sys |