注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。
启动新会话:
tmux [new -s 会话名 -n 窗口名]
恢复会话:
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
https://jason.pureconcepts.net/2015/10/install-apache-php-mysql-mac-os-x-el-capitan/ | |
https://jason.pureconcepts.net/2012/10/install-apache-php-mysql-mac-os-x/ | |
https://coolestguidesontheplanet.com/get-apache-mysql-php-and-phpmyadmin-working-on-osx-10-11-el-capitan/ | |
http://www.alphansotech.com/blogs/setup-apache-mysql-php-phpmyadmin-mac-osx/ | |
https://mallinson.ca/osx-web-development/ | |
https://coolestguidesontheplanet.com/get-apache-mysql-php-and-phpmyadmin-working-on-osx-10-11-el-capitan/ | |
##Apache httpd file location | |
/etc/apache2 |
import asyncio | |
import aiomysql | |
from aiomysql.cursors import DictCursor | |
class MysqlWrapper: | |
def __init__(self, host, port, user, password, db): | |
self.host = host | |
self.port = port |
# Below are the dependencies required for installing the common combination of numpy, scipy, pandas and matplotlib | |
# in an Alpine based Docker image. | |
FROM alpine:3.4 | |
RUN echo "http://dl-8.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories | |
RUN apk --no-cache --update-cache add gcc gfortran python python-dev py-pip build-base wget freetype-dev libpng-dev openblas-dev | |
RUN ln -s /usr/include/locale.h /usr/include/xlocale.h | |
RUN pip install numpy scipy pandas matplotlib | |
Make sure HDFS libraries are available in CLASSPATH, otherwise this won't work. | |
flume-ng agent --name target_agent --conf /opt/apache-flume-1.6.0-bin/conf/ --conf-file /home/rmoff/config/flume-kafka-twitter.conf | |
With debug: | |
flume-ng agent --name target_agent --conf /opt/apache-flume-1.6.0-bin/conf/ --conf-file /home/rmoff/config/flume-kafka-twitter.conf -Dflume.root.logger=DEBUG,console |
# -*- coding:utf-8 -*- | |
from tornado.ioloop import IOLoop | |
from tornado.web import RequestHandler, Application | |
class MiddleWare(object): | |
def process_request(self, handler): | |
pass | |
def process_response(self, handler): | |
pass |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
jupyter: | |
image: jupyter/datascience-notebook | |
environment: | |
- PASSWORD=${PASSWORD} | |
nginx: | |
image: nginx | |
links: | |
- jupyter |
##分布式系统(Distributed System)资料
介绍:这是一篇介绍在动态网络里面实现分布式系统重构的paper.论文的作者(导师)是MIT读博的时候是做分布式系统的研究的,现在在NUS带学生,不仅仅是分布式系统,还有无线网络.如果感兴趣可以去他的主页了解.