分类:技术
-
阿里云登录报错 Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
vim /etc/ssh/sshd_config
PasswordAuthentication yes
重启服务器
-
Mac OSX 升级系统后 Git 出现 Error Running Git
Mac 更新系统后 Git 不能用,提示信息如下:
errors while executing git -- version. exitCode=1 errors: xcrun: error : invalid active developer path(/Library/Developer/CommandLineTools),missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决办法:
xcode-select --install
-
使用 go 命令升级至 go1.9beta2
从 go1.9beta2 运行 go 命令。
若要安装 go1.9beta2,请运行:
$ go get golang.org/x/build/version/go1.9beta2 $ go1.9beta2 download
-
在项目中使用强大的持续集成工具 Jenkins
-
在开源项目中使用 Travis 进行持续集成测试
-
升级 Windown 10 内置 Ubuntu 子系统
-
CentOS 安装 PHP7
yum --enablerepo=remi-php70 install php-opcache php-mbstring php-mysql php-gd php-xml php-json php-devel php-pear ImageMagick-devel
-
Windows 10 Linux 子系统安装 php 环境
准备必要的源
sudo add-apt-repository ppa:ondrej/php sudo add-apt-repository ppa:jonathonf/vim sudo apt update sudo apt upgrade
安装必备软件
apt-get install zsh
apt-get install php5 php5-mysql php5-gd php5-curl php5-cli mysql-server apache2 silversearcher-ag make
安装 vim
sudo apt install vim // 卸载方法 apt remove vim add-apt-repository --remove ppa:jonathonf/vim
安装 tmux
apt-get install libevent-dev apt-get install ncurses-dev wget https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz tar xzvf tmux-2.3.tar.gz ./configure && make mv tmux /usr/bin/
修改 ~/.minttyrc
Locale=zh_CN Charset=UTF-8 Font=DejaVu Sans Mono for Powerline Term=xterm-256color RightClickAction=paste CursorType=block ClicksTargetApp=no BoldAsFont=no BoldAsColour=no CopyAsRTF=no Scrollbar=none ForegroundColour=131,148,150 BackgroundColour=0,43,54 CursorColour=220,50,47 Black=7,54,66 BoldBlack=0,43,54 Red=220,50,47 BoldRed=203,75,22 Green=133,153,0 BoldGreen=88,110,117 Yellow=181,137,0 BoldYellow=101,123,131 Blue=38,139,210 BoldBlue=131,148,150 Magenta=211,54,130 BoldMagenta=108,113,196 Cyan=42,161,152 BoldCyan=147,161,161 White=238,232,213 BoldWhite=253,246,227 FontWeight=400
.tmux.conf
# 设置默认shell和terminal set -g default-shell /usr/bin/zsh set -g default-terminal "screen-256color" # 支持自动更新标题 setw -g automatic-rename on set -g set-titles on set -g set-titles-string 'Tmux - #S:#W' # 滚动时使用vi模式 setw -g mode-keys vi # 设置窗口和面板索引 set -g base-index 1 set -g pane-base-index 1 # 打开鼠标模式 set -g mouse on # 选择 pane bind-key k select-pane -U bind-key j select-pane -D bind-key h select-pane -L bind-key l select-pane -R # 扩展 pane bind H resize-pane -L 10 bind L resize-pane -R 10 bind K resize-pane -U 5 bind J resize-pane -D 5 # 复制模式 bind-key -t vi-copy 'v' begin-selection bind-key -t vi-copy 'C-v' rectangle-toggle bind-key -t vi-copy 'y' copy-selection # 状态条定制 set -g status-left-length 30 set -g status-right-length 100 set -g status-fg white set -g status-bg colour234 set -g window-status-activity-attr bold set -g pane-border-fg colour245 set -g pane-active-border-fg colour39 set -g message-fg colour16 set -g message-bg colour221 set -g message-attr bold set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour252,bg=colour238,nobold]#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]' set -g window-status-format "#[fg=colour234,bg=colour238]#[fg=colour245,bg=colour238,bold] #I #W#F #[fg=colour238,bg=colour234,nobold]" set -g window-status-current-format "#[fg=colour234,bg=colour39]#[fg=colour25,bg=colour39,noreverse,bold] #I #W#F #[fg=colour39,bg=colour234,nobold]" set -g status-right '#T %F %A %H:%M ' set -g window-status-separator ''
-
使用 unoconv 将 PPT 转换成 PDF
-
Composer 安装时报错 "Internal Error [ERR_INVALID], exit code 0"
修改
php.ini
extension_dir = "\xampp\php\ext"
改为
extension_dir = "D:\xampp\php\ext"
browscap = "\xampp\php\extras\browscap.ini"
改为
browscap = "D:\xampp\php\extras\browscap.ini"
文章归档
2024 年 04 月
11
2019 年 11 月
1
2019 年 10 月
1
2019 年 07 月
2
2019 年 01 月
3
2018 年 12 月
5
2018 年 11 月
1
2018 年 10 月
1
2018 年 09 月
1
2018 年 08 月
3
文章日历
2024 年 04 月 | ||||||
---|---|---|---|---|---|---|
日 | 一 | 二 | 三 | 四 | 五 | 六 |
29 | 01 | 02 | 03 | 04 | 05 | 06 |
07 | 08 | 09 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
29 | 30 | 01 | 02 | 03 | 04 | 05 |
文章标签
- Linux
- Go
- Yii
- 新浪
- CentOS
- PHP
- Git
- WSL
- Composer
- Mac
- 入职
- Bootstrap
- China
- UCenter
- 厦门
- 出差
- 长沙
- 湖南卫视
- 微博
- Tengine
- YUI
- 泰国
- pecl
- 优化
- GitLab
- 迁移
- rootless
- 年会
- 生日
- Tengin
- RedHat
- Sphinx
- cygwin
- Windows
- Tmux
- Zsh
- 升级
- MySQL
- sql_mode
- Shadowsockets
- 面向对象
- HTTP
- 状态码
- grep
- unoconv
- PPT
- Nginx
- htpasswd
- golang