start new:
tmux
start new with session name:
tmux new -s myname
| FROM drupal:7 | |
| MAINTAINER mzvast <mzvast@gmail.com> | |
| RUN usermod -u 1000 www-data | |
| RUN usermod -G staff www-data |
| core: 7.x | |
| api: 2 | |
| projects: | |
| drupal: | |
| version: '7.43' | |
| views_bulk_operations: | |
| version: '3.3' | |
| addressfield: | |
| version: '1.2' | |
| admin_menu: |
| var debug = process.env.NODE_ENV !== "production"; | |
| var webpack = require('webpack'); | |
| module.exports = { | |
| context: __dirname, | |
| devtool: debug ? "inline-sourcemap" : null, | |
| entry: "./js/scripts.js", | |
| output: { | |
| path: __dirname + "/js", | |
| filename: "scripts.min.js" |
| // Generated on 2014-07-08 using generator-angular 0.9.3 | |
| 'use strict'; | |
| // # Globbing | |
| // for performance reasons we're only matching one level down: | |
| // 'test/spec/{,*/}*.js' | |
| // use this if you want to recursively match all subfolders: | |
| // 'test/spec/**/*.js' | |
| var modRewrite = require('connect-modrewrite'); |
| # Installing tmux on CentOS 6 | |
| # If you don't have libevent install use wget to install the libevent and install | |
| git clone https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz | |
| tar zxf libevent-2.0.22-stable.tar.gz | |
| cd libevent-2.0.22-stable | |
| ./configure & make install | |
| # If you don't have curses install use yum to install the curses |
| global | |
| log 127.0.0.1 local2 | |
| chroot /var/lib/haproxy | |
| pidfile /var/run/haproxy.pid | |
| maxconn 4000 | |
| user haproxy | |
| group haproxy | |
| daemon |
| "use strict"; | |
| // var angular = require('angular'); | |
| (function () { | |
| var isFunction = angular.isFunction, isString = angular.isString; | |
| function applyPairs(memo, keyValTuple) { | |
| var key, value; | |
| if (Array.isArray(keyValTuple)) | |
| key = keyValTuple[0], value = keyValTuple[1]; | |
| if (!isString(key)) | |
| throw new Error("invalid parameters to applyPairs"); |
yarn add -D \
babel-plugin-syntax-flow \
babel-plugin-transform-class-properties \
babel-plugin-transform-flow-strip-types \
babel-plugin-transform-es3-member-expression-literals \
babel-plugin-transform-es3-property-literals \
babel-plugin-transform-object-assign\
babel-plugin-transform-object-rest-spread \
| // ==UserScript== | |
| // @name iCode Helper | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.3 | |
| // @description 一键复制iCafe单信息,形成Git Commit Msg,支持旧版迭代计划和工作台 | |
| // @author mzvast@gmail.com | |
| // @match http://newicafe.baidu.com/* | |
| // @grant none | |
| // ==/UserScript== |