- 删除旧版
sudo yum remove docker docker-common docker-selinux docker-engine- 安装库
sudo yum install -y yum-utils device-mapper-persistent-data lvm2- 配置stable repo
| # golang-devops-and-auto-deploy | |
| image: zacksleo/golang | |
| stages: | |
| - test | |
| - build | |
| - deploy | |
| variables: | |
| GOPATH: /root |
sudo yum remove docker docker-common docker-selinux docker-enginesudo yum install -y yum-utils device-mapper-persistent-data lvm2| user nginx; | |
| worker_processes 1; | |
| error_log /var/log/nginx/error.log warn; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
| var pattern = /^[a-z][a-z0-9_]*(\.[a-z0-9_]+)+[0-9a-z_]$/i; | |
| [ | |
| "me.unfollowers.droid", | |
| "me_.unfollowers.droid", | |
| "me._unfollowers.droid", | |
| "me.unfo11llowers.droid", | |
| "me11.unfollowers.droid", | |
| "m11e.unfollowers.droid", | |
| "1me.unfollowers.droid", |
| define(function(require, exports, module){ | |
| var $ = require('jquery'); | |
| $.ajaxSettings.async = false; | |
| var LargeLocalStorage = require('largeLocalStorage/largeLocalStorage'); | |
| // for debug : window.lls = LargeLocalStorage; | |
| /** | |
| *get Local Data 获取数据 | |
| * @param {String} name | |
| * @returns {JSON} |
| /** | |
| * jeasyui combotree中,Ajax异步加载时,使用缓存,可以让其他字段共用该数据 | |
| * todo: 没有成功 | |
| */ | |
| $('#city_id').combotree({ | |
| textField: 'name', | |
| valueField: 'id', | |
| multiple: false, | |
| onBeforeLoad: function(param){ | |
| console.log('onBeforeLoad'); |
| /** | |
| * 首先安装PEAR,安装完毕后依次执行以下命令 | |
| */ | |
| pear upgrade-all | |
| pear channel-discover pear.phpunit.de | |
| pear channel-discover components.ez.no | |
| pear channel-discover pear.symfony-project.com | |
| pear update-channels | |
| ------------------------ | |
| pear install --alldeps --force phpunit/PHPUnit |
| /** | |
| * Combination Constructor/Prototype Pattern | |
| */ | |
| //constructor | |
| function Something(name){ | |
| //properties | |
| this.name = name; | |
| } | |
| //prototype |
| (function() { | |
| var core = { | |
| require : function(source) { | |
| if ( typeof (source) != "object" || !source) | |
| throw new TypeError("Object needed as source."); | |
| for (var property in source) | |
| if (source.hasOwnProperty(property) && !this.prototype.hasOwnProperty(property)) | |
| this.prototype[property] = source[property]; | |
| }, | |
| override : function(source) { |