Skip to content

Instantly share code, notes, and snippets.

@rambolee
rambolee / statistic_mysql_innodb_size.sql
Created October 25, 2016 09:45
统计 MySQL 表大小
SELECT CONCAT(table_schema,'.',table_name) AS 'Table Name',
CONCAT(ROUND(table_rows/1000000,2),'M') AS 'Number of Rows',
CONCAT(ROUND(data_length/(1024*1024),2),'M') AS 'Data Size' ,
CONCAT(ROUND(index_length/(1024*1024),2),'M') AS 'Index Size' ,
CONCAT(ROUND((data_length+index_length)/(1024*1024),2),'M') AS 'Total'
FROM information_schema.TABLES
WHERE table_schema='ump' order by Total desc;
@rambolee
rambolee / Instructions_Hexo_for_macOS_and_merge_data_from_wordpress.md
Last active October 25, 2016 09:51
Hexo macOS 安装 和 wordpress 配置迁移

Hexo macOS 安装 和 wordpress 配置迁移

安装 node.js 在 macOS 上

安装 nvm

$  $ brew install nvm                                                                                                                          [12:58:24]
Checking out v1.0.1 in /usr/local/Homebrew...
To checkout v1.0.1 in /usr/local/Homebrew run:
  'cd /usr/local/Homebrew && git checkout v1.0.1
@rambolee
rambolee / mtr_for_macOS.md
Last active October 25, 2016 09:53
macOS mtr 用法

macOS mtr 用法

$ brew install mtr
$ mtr
-bash: mtr: command not found

解决方法

@rambolee
rambolee / configuration_mac_laptop_env_part_1.md
Last active October 25, 2016 10:00
Mac 基础使用环境初始化(一)

Mac 基础使用环境初始化(一)

Console 相关

homebrew 安装

http://brew.sh/index_zh-cn.html
@rambolee
rambolee / git_merge_branch_checklist.md
Last active October 25, 2016 10:04
git 合并代码相关流程

git 合并代码相关流程

  • 提交本地代码(当前branch rambo)完毕。包括本地仓库和远程仓库
  • merge dev,解决与DEV的冲突,然后,提交到本地仓库和远程仓库
  • 切换到dev的branch
  • 拉取远程代码,更新本地环境到最新
  • 解决冲突(可能)
  • merge rambo, 解决与rambo的冲突,然后,提交到本地仓库和远程仓库
  • 切换到rambo,继续干活
@rambolee
rambolee / some_idea_for_replace_irvue.txt
Created October 25, 2016 10:05
irvue 代替品的一些开发思路
irvue 代替品
用swift写一个mac上驻留的服务。
获取 unsplash.com 的高清图片。然后,保存到本地的文件中
定时更换桌面,考虑兼容多屏
api:
https://unsplash.com/napi/photos/curated?page=7&per_page=12&order_by=latest
网站是react写的。挺好的
@rambolee
rambolee / what_is_php-fpm.md
Last active October 25, 2016 10:25
概念了解:CGI,FastCGI,PHP-CGI与PHP-FPM

概念了解:CGI,FastCGI,PHP-CGI与PHP-FPM

CGI

CGI全称是“公共网关接口”(Common Gateway Interface),HTTP服务器与你的或其它机器上的程序进行“交谈”的一种工具,其程序须运行在网络服务器上。

CGI可以用任何一种语言编写,只要这种语言具有标准输入、输出和环境变量。如php,perl,tcl等。

FastCGI

laravel quick start (Part I)

对应 bash 的 laravel 手册的 Guides-> Basic Task List

学习 laravel,开始根据中文文档创建了一个 laravel new blog 模板。 但是,发现入手很困难。之前团队内部的分享也忘记的差不多了。发现技术有些脱节,需要跟上新的 php 的版本和框架的节奏。

顾,从官方文档入手。 https://laravel.com/docs/5.2/quickstart 开始重新再学习update 一下。

@rambolee
rambolee / laravel_install_guide.md
Created October 25, 2016 11:20
lavarel 搭建和初步入门

lavarel 搭建和初步入门

安装 composer

composer 现在是 php 的包管理工具,这样的好处是,公用部分的 php 的库不需要自己进行维护和依赖管理。一定程度上节省了代码的维护成本。

下载 composer

官网 Link

php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php
鱼:金钱
渔:技能
娱:氛围、兴趣
欲:上升空间 想象 激情
遇:礼遇 机遇
愚:大智若愚 简单 hungry foolish
誉:认可 尊重 成就感 荣誉
宇:格局 眼界 上升空间 胸怀 超然