Skip to content

Instantly share code, notes, and snippets.

View zzpwestlife's full-sized avatar

Zou Zhipeng zzpwestlife

  • FUTU
  • Shenzhen
  • 01:23 (UTC +08:00)
View GitHub Profile
@zzpwestlife
zzpwestlife / docker-compose.yml
Last active May 15, 2024 06:25
golang local docker mysql
version: '3'
services:
db:
image: ${MYSQL_IMAGE}
restart: always
container_name: ${MYSQL_CONTAINER_NAME}
ports:
- "${MYSQL_PORT}:3306"
volumes:
@zzpwestlife
zzpwestlife / Makefile
Last active May 15, 2024 06:30
golang-migrate Makefile
include .env
export $(shell sed 's/=.*//' .env)
V?=
N?=
MYSQL_DSN?="$$MYSQL_USER:$$MYSQL_PASSWORD@tcp($$MYSQL_HOST:$$MYSQL_PORT)/$$MYSQL_DATABASE?multiStatements=true"
local-db:
@ docker-compose up -d
@zzpwestlife
zzpwestlife / PhpStorm Keymap
Created May 30, 2016 01:46 — forked from ionauq/PhpStorm Keymap
PhpStorm快捷键
### Editing ###
`Ctrl + Space` 基本代码完成(任意类的,方法的或者变量的名称)
`Ctrl + Shift + Enter` 补全当前语句
`Ctrl + P` Parameter info (within method call arguments)
`Ctrl + Q` 快速查找文档
`Ctrl + 鼠标滑过` 简明信息查看
`Ctrl + F1` 在插入符号处显示错误或者警告信息
`Alt + Insert` 生成代码...(Getters,Setters,Constructors)
`Ctrl + O` 重写方法
`Ctrl + I` 实现方法
@zzpwestlife
zzpwestlife / install-php.md
Created May 18, 2016 07:51 — forked from oxUnd/install-php.md
Mac下安装php-cgi

Mac下安装php-cgi

mac下安装php-cgi有多种方法,这里只介绍比较简单的两个方法;

  • 用brew安装
  • 直接下载安装XAMPP

用brew安装

如果安装了xcode,那么推荐使用brew来安装php。详细使用方法见官网,这里只说明如何装php-cgi;