加载中
gitolite 踩坑记

加入.pub 文件后,不生成authorized_keys的问题,请执行: gitolite setup ,详细分析见https://serverfault.com/questions/422446/gitolite-mac-dont-add-new-user-to-authorized-keys 如果...

2018/11/19 18:36
86
Add XSS protection headers on Nginx

Add XSS protection headers on Nginx Add the following line in the http or server part of your Nginx configuration : ... # XSS Protection add_header X-Frame-Options SAMEO......

2018/10/23 11:11
607
yum apt chrome 常用软件的SOCKS 代理设置

yum 设置: 在/etc/yum.conf 增加一行,内容为: 在apt-get (apt) 上使用socks代理 chrome socks代理:

2018/09/25 13:36
195
yum 使用socks5代理

1. 请确认您的socks5服务可以连接。 telnet your_socks5_server port 2. 修改/etc/yum.conf 文件 在文件的最后加入一行: proxy=socks5://your_ip:port proxy=socks5://192.168.0.47:3333.....

2018/09/25 13:23
5.8K
google translate 的简单实现

google translate 的简单实现 const port = 3000 const fs = require('fs') const path = require('path') const spdy = require('spdy') const express = require('express') const bodyPa...

2018/09/01 15:44
200
JDBC 之MySQL utf8mb4

有时在使用jdbc连接MySQL 时会被uft8mb4这个小问题给骚扰,正确的姿势如下: 在连接字符串中使用utf8, 如果您已经使用,就无需修改。 在服务器端,修改配置 character_set_server=utf8mb4即可...

2018/08/13 10:02
362
shell rm

删除除了zh_CN目录下之外的所有文件各目录 rm -rf !(zh_CN) 在系统上删除所有文件(包含以 . 开头的隐藏文件),除了.git 目录不删除 rm -rf * !(.git)...

2018/07/26 18:50
192
Shell 光标

CTRL+K 从光标处剪切文本直至本行结束 CTRL+Y 粘贴文本 CTRL+E 将光标移到本行的末尾 CTRL+A 将光标移动到本行的开头 ALT+F 跳转到下一个空格处 ALT+B 回到前一个空格处 ALT+Backspace 删除前...

2018/07/26 17:04
220
debian 9 下 MySQLdb mysql_config not found

需要说明的是debian9 下MySQL 变成了mariadb. apt install libmariadbd18 apt install libmariadbd-dev apt install mysql-community-client......

2018/07/16 09:54
456
reuse stream

Although Java streams were designed to be operated only once, programmers still ask how to reuse a stream. From a simple web search, we can find many posts with this same issue ...

Java Comparators in a More Declarative Way

Java 8 has added many intuitive utility methods in the Comparator interface, making it easier to work with comparators in a functional way. For example, if I want to sort the li...

2018/06/19 17:26
82
rfc6749

https://tools.ietf.org/html/rfc6749#section-1.1

2018/06/19 17:12
288
spring boot i18n

https://www.javadevjournal.com/spring-boot/spring-boot-internationalization/

2018/03/31 14:58
109
Spring boot import properties

在Spring boot 项目中,我们多使用application.yml 或者application.properties . 如何在项目中使用自定义的 properties 呢,以下示例教你解决。 import lombok.Getter; import org.springf...

2018/03/27 15:27
266

没有更多内容

加载失败,请刷新页面

返回顶部
顶部