- 博客(5)
- 收藏
- 关注
原创 配置git秘钥,免密码提交代码
ssh-keygen -t rsa -C "your email" cat ~/.ssh/id_rsa.pub 将最后的输出结果粘贴到github项目秘钥处 接下来给本地git绑定账号 git config --global user.name "xiaofei" git config --global user.email "xxx@qq.com" ...
2020-04-27 22:32:20
498
2
原创 在laravel中通过jwt-auth完成api认证
公司近期打算将项目前后端分离,所以就研究了一下jwt-auth,记录下步骤 1.安装laravel:composer create-project laravel/laravel 2.laravel配置就不多说了(storage,bootstrap/cache 权限777) 3.安装jwt-auth组件:composer require tymon/jwt-auth:1.0.0-rc.3 (...
2019-01-29 15:09:07
303
原创 写一段代码输出斐波那契数列(1 , 1 , 2 , 3 , 5 , 8 ...)
$index = 0; $arr = [0,1]; while(true) { $index++; $arr[$index+1] = $arr[$index] + $arr[$index-1]; if($index<20){ echo $arr[$index]; echo "<br />"; } } ...
2018-07-18 15:37:32
5832
原创 linux 修改 ls 文件夹的颜色
1. 执行命令dircolors -p > ~/.dircolors2.打开文件,找到这一行:DIR 01;34 # directory 该成333.ok
2018-07-12 12:04:45
372
原创 安装vim插件包,支持语法高亮,行号,地址栏等功能
1. 克隆配置文件 请运行以下代码克隆配置文件git clone https://git.oschina.net/silenthill/vimrc.git ~/.vim2. 安装Vundle 此配置实用Vundle管理插件,Vundle本身并未集成在此版本库中请按照以下步骤从Github中克隆安装git clone https://github.com/VundleVim/Vundle.vim.g...
2018-04-30 09:37:49
581
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人