config/配置
Taylor007
这个作者很懒,什么都没留下…
展开
-
linux 中文文件 vim 乱码,cat 正常
.vimrc 在当前用户家目录下 .vimrc 文件中添加 set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8 .bashrc 在当前用户家目录下 .bashrc 文件中添加或修改 export LC_ALL="zh_CN.UTF-8" ...原创 2019-06-20 18:19:20 · 1005 阅读 · 0 评论 -
Mac 服务管理之 Supervisor
安装 brew安装 brew install supervisor 安装提示 ==> supervisor To have launchd start supervisor now and restart at login: brew services start supervisor Or, if you don't want/need a background service y...原创 2018-10-25 19:26:24 · 680 阅读 · 0 评论 -
brew 安装 phpredis 扩展
18年3月, homebrew/php 这个tap不在维护了,扩展全部转移到 homebrew-core 或者 delete, php70-redis 这个扩展被删除了,安装需要源码安装,记录一下 php 使用的安装 brew install php@7.1 redis 使用的安装 brew install redis 源码安装 phpredis 下载 wget https://n...原创 2018-10-31 17:39:10 · 1671 阅读 · 0 评论 -
Git 设置
用户名密码设置 设置git用户名/邮箱 git config --global user.name [username] git config --global user.email [email] 保存用户名密码 echo "[credential]" >> .git/config echo " helper = store" >>原创 2018-09-26 19:18:59 · 220 阅读 · 0 评论 -
php 编译详解
phpize 在源码目录执行 phpize 官方自带的,生成可执行配置文件 configure,依托于当前目录config.m4,调用autoconf 生成configure脚本 ./configure 检测系统版本,是否支持 eventfd、epoll、 kqueue等,生成Makefile make 检测c 的源文件,会在module 下生成 .so 文件 make install 将扩展...原创 2018-11-20 23:44:53 · 216 阅读 · 0 评论 -
Go 设置多路径出现带冒号的文件夹
问题描述 go 增加多个 GOPATH 目录后编译后不再当前的bin的目录,而是新建了其他目录(带冒号) 具体及解决 bash_profile 写入 export GOPATH="/Users/xxxxx/go:/Users/xxxxx/projects/go" path 输出 PATH=$PATH:${GOPATH//://bin:}/bin source 执行 echo $PATH 得...原创 2018-11-19 10:40:21 · 743 阅读 · 0 评论 -
jupyter notebook 安装 php、go kernel
安装 php kernel 全局安装 Composer curl -sS https://getcomposer.org/installer | php 安装系统库 brew install zeromq 安装php扩展 git clone git://github.com/mkoppanen/php-zmq.git 安装 jupyter-php-installer.phar //下载 wge...原创 2018-12-17 13:54:11 · 1850 阅读 · 0 评论 -
git 的忽略文件--.gitignore
忽略根目录下的 config 目录,除了内部的example.conf文件 /config/* !/config/example.conf 注:不能去掉 config 后的 *,否则父目录被前面的规则排除掉了。 文件忽略 bin/: #表示忽略当前路径下的bin文件夹,该文件夹下的所有内容都会被忽略,不忽略 bin 文件 /bin: #表示忽略根目...原创 2019-01-06 16:50:42 · 180 阅读 · 0 评论 -
brew 切换 go 版本
安装 brew install go 查看所有版本 方式一 brew info go 方式二 brew ls --versions | grep go 切换 brew switch go 1.11 清理旧版本 brew cleanup go 参考:https://jpuyy.com/2019/01/brew-切换-go-版本.html ...转载 2019-02-17 23:15:08 · 4735 阅读 · 0 评论
分享