Apt-get, Npm,Composer, Docker 等国内加速镜像大集合

常常为了等 Npm install , Composer update 完成, 以为喝杯咖啡回来就完成了, 或者以为晚上下班不关电脑,难道明天回来上班时还没完成! 然后第二天来了 ... 生命岂能浪费在此! 来,我们用国内镜像加速: Apt-get 一行命令备份apt/sources.list并加入 阿里云和 163 加速镜像: sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak && \ echo "deb http://mirrors.aliyun.com/ubuntu/ wily main restricted universe multiverse" >/etc/apt/sources.list && \ echo "deb http://mirrors.aliyun.com/ubuntu/ wily-security main restricted universe multiverse" >>/etc/apt/sources.list && \ echo "deb http://mirrors.aliyun.com/ubuntu/ wily-updates main restricted universe multiverse" >>/etc/apt/sources.list && \ echo "deb http://mirrors.aliyun.com/ubuntu/ wily-proposed

Continue reading →

5分钟搭建 Mysql 读写分离,跨节点分表神器-kingshard

就在两三年前还觉得 Mysql 读写分离,分库分表还是大神们搞的东东,动不动就是TB级数据,动不动就是大集群。 2015年kingshard出现了, docker开始流行了, 然后使用docker搭建kingshard仅需5分钟: git clone https://github.com/struCoder/docker-mysql-cluster.git . 根据需要编辑 docker-compose.yaml 和 ks1.yaml, 然后 docker-compose up -d 就是这么简单! kingshard: https://segmentfault.com/a/1190000003001545 https://github.com/flike/kingshard kingshard docker 镜像: https://store.docker.com/community/images/strucoder/kingshard https://github.com/struCoder/docker-mysql-cluster

Continue reading →

Setup Tensorflow, Ipython/Jupyter, and Expose with Http Web Server all with Docker

Never imagine to bring all these together all in docker! This a docker-compose version of: https://www.boxcontrol.net/category/linux.html . I come up this idea so the teams are able to bring Tensorflow up and runing with very few ,even only one docker-compose up -d command. Docker set up Tensorflow set up Ipython/Jupyter set up Expose it with http web Server Docker set up Asume that you've a runing docker server: http://blog.litup.me/set-up-a-free-ghost-blog-using-docker-on-amazon-ec2-2/ ----not complete yet, will carry soon

Continue reading →

做更多的事,用更少的{}

这是 http://blog.litup.me/do-more-with-less/ 的中文版。没写完之前可以看原版哦。 {}在这里代表什么? 更少的 engineering 更少的学习成本 更少的代码 更少人手 更少的时间 更少的头疼 更少 ... Yes , new technologies and software engineering concepts were brought to the community, we can actually do more with less ... New technologies: These technologies include: MongoDb With MongoDb you no longer need: ORM With MongoDb you can save JSON data in collections, no need to convert datas back and forth any more. SQL Quering data in Mongo collection is much easier. NO security issue like Sql injection to concern with. No sql efficiency & performance headache. life lit up! Cache system such as Redis,

Continue reading →

Do more with less ...

Less of what? less engineering less learning curve less code less personnel less time less headache less ... Yes , new technologies and software engineering concepts were brought to the community, We can actually do more with less ... New technologies: These technologies include: MongoDb With MongoDb you no longer need: ORM With MongoDb you can save JSON data in collections, no need to convert datas back and forth any more. SQL Quering data in Mongo collection is much easier. NO security issue like Sql injection to concern with. No sql efficiency & performance headache. life lit up! Cache system such as Redis,

Continue reading →

使用Docker在免费的亚马逊主机部署Ghost博客-part 4

.

Continue reading →

Set up a free ghost blog using docker on Amazon ec2 part 4

In this post you'll learn how to set up an proxy server and run multi web application on the same server on port 80

Continue reading →

使用Docker在免费的亚马逊主机部署Ghost博客-part 3

Continue reading →

Set up a free ghost blog using docker on Amazon ec2 part 3

In this post you will learn how to set up an piwi statistics https://store.docker.com/images/40157634-cee7-462f-9927-27d734de3a28

Continue reading →

使用Docker在免费的亚马逊主机部署Ghost博客-part 2

.

Continue reading →