加载中
gitolite 踩坑记

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

11/19 18:36
10
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......

10/23 11:11
6
K8S 安装

docker --version cat <<EOF > /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64 enabled=1 gp...

09/25 14:41
3
yum apt chrome 常用软件的SOCKS 代理设置

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

09/25 13:36
4
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.....

09/25 13:23
26
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...

09/01 15:44
16
Debian 9 导入Java src.zip

Example for Java 8: sudo apt-get install openjdk-8-source apt-get puts it under the relevant JDK location as src.zip: /usr/lib/jvm/java-8-openjdk-amd64/src.zip Intellij IDEA rec...

08/30 17:54
11
JDBC 之MySQL utf8mb4

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

08/13 10:02
3
module r8169

update-initramfs: Generating /boot/initrd.img-4.9.0-7-amd64 W: Possible missing firmware /lib/firmware/rtl_nic/rtl8107e-2.fw for module r8169 ......................................

07/27 13:40
16
shell rm

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

07/26 18:50
3
Shell 光标

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

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

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

07/16 09:54
8
How to Read a Thread Dump

Most Java applications developed today involve multiple threads, which, in contrast to its benefits, carries with it a number of subtle difficulties. In a single-threaded applic...

06/26 15:18
10
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...

06/19 17:26
3
rfc6749

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

06/19 17:12
7
ClassCastException

http://blog.51cto.com/winters1224/2049425

06/15 18:57
8
HK

警察熱線 電話 傳真 緊急事故 999 反詐騙諮詢熱線 18222 警察毒品舉報熱線 2527 1234 商業及電腦罪案熱線 2860 5012 有組織罪案及三合會熱線 2527 7887 中央交通違例檢控組熱線 2866 6552 無...

05/07 16:42
3
Kafka 1.1.0 Topic 管理

Kafka Topic 创建topic bin/kafka-topics.sh --zookeeper localhost:2181 --create --topic my-topic --partitions 3 --replication-factor 3 --config max.message.bytes=64000 --config fl...

04/18 11:16
147
spring boot i18n

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

03/31 14:58
14

没有更多内容

加载失败,请刷新页面

返回顶部
顶部