Windows 如何安装 Docker (2023更新)
本文介绍了 Windows 在不安装 Docker Desktop 的情况下,在 WSL 下安装 Docker 并且 WSL 和 Windows 都能直接运行 docker 命令。
15 minutes ago
Install Docker without Docker Desktop in WSL (2023)
Without installing Docker Desktop, this page introduces how to install Docker in WSL, and is able to run docker cli in both Windows and WSL.
15 minutes ago
Install docker-cli without Docker Desktop
Download and install docker-cli without Docker Desktop/Docker Engine/Docker Daemon in Windows
a day ago
How to mount Maven settings.xml in Docker build
This page tells you how to mount Maven's settings.xml in Docker build without copying settings.xml into build context.
a month ago
awk cheatsheet
awk cheatsheet Split Split and get nth words Split and get last nth words Split by separator other…
2 months ago
bash cheatsheet
定义变量 执行命令 条件语句 Functions 条件判断 变量展开 表达式 结果 => => => 参考: Brace expansion 变量展开 基础 替换 Code…
3 months ago
grep cheatsheet
命令 基础参数 参数 功能 -i 不区分大小写 -v 输出不符合表达式的文本 -c 输出打印了多少行文本 -l 输出打印了多少行文本 -n 打印行号 常用命令 命令 说明 grep 'foo\|bar…
3 months ago
Using perf to debug CPU usage issue
This page covers installing and using the perf command line tool, and generating a flame graph to see perf output.
4 months ago
Kubernetes Troubleshooting Cheatsheet
List all tools that I used for troubleshooting K8s issue
4 months ago
JDK16 Pattern Matching for instanceof
Pattern Matching for instanceof References JEP 394: Pattern Matching for instanceof
5 months ago
JDK14 Switch 表达式(Switch Expression)
JDK14 Switch 表达式(Switch Expression) 在 JDK14 中,Switch 语法被进一步完善,变得更加现代,方便易用。 Switch 语法一个一直被诟病的问题是,case…
6 months ago
Nginx 无法读取证书文件,错误日志显示 Permission denied
证书文件权限没有问题,但是 Nginx 读取文件时还是报告 Permission denied 错误。
6 months ago
Netty 源代码分析
Netty 源代码分析 启动 Netty Bootstrap Sequence Diagram 接受请求 Netty Accept Connection Sequence Diagram…
8 months ago
Compare Performance Test Tools
Compare Performance Test Tools Tool HTTP2 HTTP2 Cleartext gRPC Server Percentile GUI JMeter X X X X…
8 months ago
Java 运行 JavaScript 代码 - JavaScript Array
使用 GraalVM JavaScript Engine 运行并解析 JavaScript Object
9 months ago
Java 运行 JavaScript 代码 - JavaScript Object
使用 GraalVM JavaScript Engine 运行并解析 JavaScript Object
9 months ago
N/A
10 months ago
How does JVM bootstrap an uber jar/fat jar/executable jar
How does JVM bootstrap an uber jar/fat jar/executable jar
10 months ago
CLion report Cannot get compiler information when opening openjdk project
CLion report Cannot get compiler information when opening openjdk project
a year ago
CLion 打开 openjdk 源码项目后报 Cannot get compiler information
CLion 打开 openjdk 源码项目后报 Cannot get compiler information
a year ago
N/A
a year ago
k6 HTTP Authentication 登录验证
k6 如何登录验证,Basic Authentication, Digest authentication, NTLM authentication, AWS Signature v4 authentication
a year ago
How to declare language in Gatsby
This post describes how to declare language in Gatsby using helmet plugin
a year ago
mitmproxy
mitmproxy Installation Kubernetes Run to see the architecture for your system. And download correct…
a year ago
Istio
Istio References Istio 架构解析 Istio 中的 Sidecar 注入与流量劫持详解 Sidecar 的自动注入过程详解 Transparent proxy and…
a year ago
package configuration for libffi is not found
package configuration for libffi is not found
a year ago
How to ensure istio sidecar for running before other containers
Use "holdApplicationUntilProxyStarts" to ensure that istio sidecar is ready before other containers
a year ago
Kubernetes 网络性能压测工具 - fortio
Kubernetes 网络性能压测工具 - fortio fortio 是 Istio 推出的一款网络压测工具。 非常方便地,fortio 自带了 HTTP 服务,对于单独测试 Kubernetes…
a year ago
Java Heap Dump
Java Heap Dump jcmd (首选) jmap Heap dump on exit (必选) Arthas (推荐) heapdump — Arthas 3.5.…
a year ago
如何用 Jackson 处理 yaml 数据
如何用 Jackson 处理 yaml 数据 本文介绍了如何用 Jackson 这个非常流行的 JSON 解析库,把 yaml 数据解析成 Java 对象。 又或者反过来把 Java…
a year ago
Java AtomicIntegerFieldUpdater, AtomicLongFieldUpdater 和 AtomicReferenceFieldUpdater
Java FieldUpdater例子
a year ago
Java Flight Recorder
Java Flight Recorder Java Flight Record(JFR) 是 Oracle 发布的一款 JVM 监控工具。 JFR 不仅提供了远比其他工具详尽和全面的 JVM…
a year ago
Java Flight Recorder(JRF) 常用命令
Java Flight Recorder(JRF) 常用命令 1. 延迟10秒后启动 JFR,记录10分钟 2. 持续记录 3. 退出时自动执行
a year ago
Gradle jacoco 如何排除指定文件
Gradle jacoco 如何排除指定文件 下方代码段展示了在使用 Gradle 管理项目的时候,如何配置 jacoco 插件,已排除部分不必要的代码/类/文件。
a year ago
群晖如何搭建私有 npm 仓库
群晖如何搭建私有 npm 仓库 本文演示了如何利用群晖 NAS 搭建私有的 npm 仓库。 1. 配置国内镜像仓库 (可选) 由于众所周知的原因,你可能没法顺利拉去 Docker…
a year ago
如何保存 Prometheus 历史数据
有时候想把某段时间的指标保存起来方便日后查看,还挺麻烦的。 特别是压测的时候,半天测试可能就产生了几 GB 的原始数据,保存原始数据的成本实在太高。 在不追求精确的情况下,把 Prometheus…
a year ago
Java 如何创建不可变 ArrayList
Java 如何创建不可变 ArrayList Immutable/Unmodifiable ArrayList 用于保证外部代码不会意外修改列表内容。 JDK Collections Java…
a year ago
Gatsby - GraphQLError Enum "ImageFormat" cannot represent value "auto"
Gatsby - GraphQLError: Enum "ImageFormat" cannot represent value: "auto" 根源没有细看,但是表面原因是 gatsby-image…
a year ago
JavaScript 如何检查字符串是否包含特定字符
JavaScript 如何检查字符串是否包含特定字符 ECMAScript 6 String.prototype.includes() IE 浏览器或者 ECMAScript…
a year ago
如何回滚一个 git 提交
如何回滚一个 git 提交 第1步的操作负责回滚最近一次提交。该操作只会修改提交记录,而不会回滚本地的文件的内容 第4步的操作把修改提交到 ORIG_HEAD。 git reset…
a year ago
HTTP Performance Test Tool Set
HTTP Performance Test Tool Set wrk https://github.com/wg/wrk K6 K6 可以通过 JavaScript…
a year ago
如何修改 Java Mission Control(JMC) 显示语言为中文
JMC 在中文下 UI 渲染有点异常。另外很多术语用中文讲有点陌生... Java 系的工具都可以通过 来指定用户语言。 1. jmc.ini 通过在 文件中添加 参数来指定 JMC…
a year ago
Java ThreadPoolExecutor 实现浅析
Java ThreadPoolExecutor 实现浅析 本文基于 openjdk17+35 (https://github.com/openjdk/jdk/tree/jdk-17+3…
a year ago
Java ScheduledExecutorService 浅析
Java ScheduledExecutorService 浅析 实现 ScheduledExecutorService 基于 ThreadPoolExecutor 实现。 建议先移步 https…
a year ago
Windows Git Bash 如何安装 SDKMAN
Windows Git Bash 如何安装 SDKMAN 由于 SDKMAN 的安装脚本需要使用 zip 来解压缩各种 SDK 的安装包。然而 Git Bash 并没有自带 zip…
a year ago
How to trigger build from other builds in TeamCity
How to trigger build from other builds in TeamCity Get Access Token Add a New Step to Trigger Builds
a year ago
How to set registry to NPM and Yarn
How to set registry to NPM and Yarn If you're in China and encounted a problem that it's too slow or…
a year ago
取消/禁用 Windows Terminal 中的提示音
取消/禁用 Windows Terminal 中的提示音 当 Bash 遇到 BEL 字符,系统会 "哔~" 一声。但是每次按 Tab…
a year ago
何如在 Windows Terminal 中使用 Git Bash
何如在 Windows Terminal 中使用 Git Bash 最新版本的 Git 已支持自动添加 Git Bash 到 Windows Terminal Screenshot of Git…
a year ago
Windows Terminal 如何双击选中整个单词
Windows Terminal 如何双击选中整个单词 刚使用 Windows Terminal 的朋友可能有点不适应其双击规则。在 Windows Terminal…
a year ago
Java Performance Tuning Cheatsheet
Java Performance Tuning Cheatsheet GC Enable GC Log Print GC info jstat - Java Virtual Machine…
a year ago
如何使用 JMH 进行 Java 基准性能测试(benchmarking)
如何使用 JMH 进行 Java 基准性能测试(benchmarking) 本文介绍了如何使用 Java Microbenchmark Harness(JMH) 来测试 Java…
2 years ago
《风色幻想6》 代码功能列表
《风色幻想6》 代码功能列表 《风色幻想6》称号、刻纹、技能代码 称号代码 代码 称号 移动 攻击 刻纹 物品 备注 00 FY测试员 100 100 100 100 01 职务猎人 35 3…
2 years ago
Kubernetes 容器内部如何捉 tcpdump
Kubernetes 容器内部如何捉 tcpdump 与普通场景下捉 tcpdump 不一样,部署在容器内部的应用程序无法直接在服务器上捉取流量。捕获应用程序流量要相对麻烦。 Sidecar…
2 years ago
Apache MINA SSHD - How to change password if current password expired
Apache MINA SSHD - How to change password if current password expired For security reason, some SSH…
2 years ago
WireShark 如何捉包 gRPC 消息
WireShark 如何捉包 gRPC 消息 自 WireShark 3.4.0, WireShark 提供了 gRPC 协议的支持。本文将简述如果捕获并分析 gRPC…
2 years ago
利用 Grafana 和 ElasticSearch 搭建一个最简单的监控系统
利用 Grafana 和 ElasticSearch 搭建一个最简单的监控系统 本文假设你已经对 Grafana 和 ElasticSearch…
2 years ago
如何安装 JITWatch
如何安装 JITWatch JITWatch 是一款用于分析和可视化 HotSpot JIT Compiler 的工具。JITWatch 是基于 JavaFX 开发的。而 202…
2 years ago
在 TeamCity 中构建 Docker 镜像并推送到阿里云容器镜像服务
在 TeamCity 中构建 Docker 镜像并推送到阿里云容器镜像服务 添加阿里云私有仓库 到项目设置页面,切换到 Connections 设置页面,点击 “Add Connection…
2 years ago
如何安装 JITWatch
如何安装 JITWatch JITWatch 是一款用于分析和可视化 HotSpot JIT Compiler 的工具。JITWatch 是基于 JavaFX 开发的。而 202…
2 years ago
cron 表达式
cron 表达式 什么是 cron 和 cron 表达式 cron 是 Unix-based 系统上一款被广泛应用的定时任务工具。例如,运维工程师通过 cron…
2 years ago
用 Wireshark 监控 HTTP/2 流量
用 Wireshark 监控 HTTP/2 流量 相比 HTTP/1.1,HTTP/2 支持多路复用、支持服务端、支持 HTTP Header…
2 years ago
JVM 基础参数一览
JVM 基础参数一览 Xms 和 Xmx Xms 和 Xmx 可谓是 Java 性能调优中最基础、最常用也最重要的参数。 Xms 指定堆的最小大小,也即初始大小。 Xmx…
2 years ago
创建 Kubernetes Cron 定时任务
创建 Kubernetes Cron 定时任务 cron 是开发中常用的定时任务工具。cron 表示式由于其强大的表达能力,能满足各种条件的定时计划。但是单机的 cron 工具(例如 crontab…
2 years ago
在 Kubernetes 集群中如何部署 frpc
在 Kubernetes 集群中如何部署 frpc 本文假设: 你已经成功部署 frps。 假设 frps 部署在 frps.example.com:7000 你已经部署了可用的 Kubernetes…
2 years ago
快速解决 Kubernetes "no route to host"
如果你遇到 Pod 无法解析 DNS,coredns 日志显示 "no route to host",尝试 flush iptables 看能否解决问题。
2 years ago
Ubuntu 20.04 如何安装 Google Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && sudo apt install ./google-chrome-stable_current_amd64.deb
2 years ago
Maven 如何解决某些类库没有提供 source jar 和 javadoc jar 的问题
运行 "mvn source:jar javadoc:jar install" 手动安装类库的 source jar 和 javadoc jar
2 years ago
macOS 下如何编译 hsdis
macOS 下如何编译 hsdis 要顺利使用 Java 的 "-XX:+PrintAssembly" 参数,需要手动编译(其实下载也行)和安装 "hsdis-amd64.dylib…
2 years ago
N/A
2 years ago
HTTP/1.1, HTTP/2 和 HTTP/2 Server Push 的网页加载速度对比
HTTP/1.1, HTTP/2 和 HTTP/2 Server Push 的网页加载速度对比 本文会演示 HTTP/1.1, HTTP/2 和 HTTP/2 Server Push…
2 years ago
Comparison among HTTP/1.1, HTTP/2 and HTTP/2 Server Push
Comparison among HTTP/1.1, HTTP/2 and HTTP/2 Server Push This page aims to explore the theoretical…
2 years ago
创建 Kubernetes Cron 定时任务
创建 Kubernetes Cron 定时任务 cron 是开发中常用的定时任务工具。cron 表示式由于其强大的表达能力,能满足各种条件的定时计划。但是单机的 cron 工具(例如 crontab…
2 years ago
dh key too small
dh key too small Today I encoutered the issue when running curl and wget commands. And most of the…
2 years ago
Everything 下载
Everything 下载 链接: https://pan.baidu.com/s/1EK6nr8POl12tDhH6xCTvKA 提取码: 6t7i Everything 1.4.1.935
2 years ago
下载 Windows 10 ISO
下载 Windows 10 ISO 链接: https://pan.baidu.com/s/14SmtgAVYH4AVrtj4EQZBDA 提取码: 1iqs Win10_1903_V…
2 years ago
Shall I avoid Exclamation Mark(!) in If-Statement in Java
Shall I avoid Exclamation Mark(!) in If-Statement in Java Today I read a post that we should not use…
2 years ago
How to force a program use HTTP proxy in Linux
How to force a program use HTTP proxy in Linux Download the latest release: https://github.com/rofl…
2 years ago
格式化字符串攻击(Format String Attack)
格式化字符串攻击(Format String Attack) 本文为 Format string attack 的中文翻译。遵守 署名-相同方式共享 4.0 国际 (CC BY-SA 4.…
2 years ago
函数注入(Function Injection)
函数注入(Function Injection) 本文为 Function Injection - OWASP 的中文翻译。遵守 署名-相同方式共享 4.0 国际 (CC BY-SA 4.…
2 years ago
为 Next.js 应用生成 robots.txt 和 sitemap.xml
为 Next.js 应用生成 robots.txt 和 sitemap.xml 为了优化 SEO,生成 robots.txt 和 sitemap.xml 是必不可少的功能。 Next.js…
2 years ago
Generate robots.txt and sitemap.xml in Next.js
Generate robots.txt and sitemap.xml in Next.js For the SEO optimization, it’s necessary to support…
2 years ago
git rev-parse HEAD alternative command in JGit
git rev-parse HEAD alternative command in JGit JGit does not provide extractly the same interface…
2 years ago
Java Stream API 实现详解
Java Stream API 实现详解 自 Java 8 后,Stream API 成为了开发中必不可少的元素。相比于原始的 for-loop 循环,Stream API…
2 years ago
How to serve one jersey resource or jetty servlet for different path
How to serve one jersey resource or jetty servlet for different path Today I'm trying to make an…
2 years ago
HTTP POST
HTTP POST Compare to HTTP GET, there is a few differences in HTTP POST. Declare POST instead of GET…
2 years ago
Inspect HTTP/2 in Wireshark
Inspect HTTP/2 in Wireshark This page will demonstrate how to inspect HTTP/2 request in WireShark…
2 years ago
在 macOS 上通过 Kubenetes 安装 wiki.js
在 macOS 上通过 Kubenetes 安装 wiki.js wiki.js 是一款完全由 JavaScript 技术栈创建的百科应用。前端由 Vue.js 开发,而后台为 Node.js…
2 years ago
Install wiki.js via Kubenetes on macOS
Install wiki.js via Kubenetes on macOS Create wikijs.yml with below content And then run By default…
2 years ago
Nginx Permission denied while connecting to upstream 解决办法
Nginx Permission denied while connecting to upstream 解决办法 今天配置新服务器的时候,发现 Nginx…
2 years ago
Java 中的软引用(SoftReference)、弱引用(WeakReference)和虚引用(PhantomReference) 解析和实际用例
Java 中的软引用(SoftReference)、弱引用(WeakReference)和虚引用(PhantomReference) 解析和实际用例 在一般的 Java GC 中,JVM GC…
2 years ago
Remote Debugging for Java Application
Remote Debugging for Java Application It's an important feature that JVM provided and I'm so…
2 years ago
How to set environment variable to a Docker container
How to set environment variable to a Docker container Use parameter:
2 years ago
在群晖上搭建 Nexus 私有仓库
在群晖上搭建 Nexus 私有仓库 最近在做的项目不能把包上传到公有仓库,而私有仓库不仅收费,而且类型单一。想到自己的群晖自带了 Docker…
2 years ago
How to split string into array in Bash
How to split string into array in Bash A snippet to split string into an array. And shows you how to…
2 years ago
Vagrant CentOS 国内镜像
Vagrant CentOS 国内镜像 导入镜像 百度网盘 (https://pan.baidu.com/s/1b-rv15xtB-aRt4T1JBhnkw)[https://pan.baidu…
2 years ago
Why we need to disable TRACE method and how to disable TRACE in Embedded Jetty
Why we need to disable TRACE method and how to disable TRACE in Embedded Jetty This page show you…
2 years ago
使用 OWASP ZAP 扫描网页/API漏洞
使用 OWASP ZAP 扫描网页/API漏洞 OWASP ZAP 是一款开源、免费和跨平台的网站/API安全漏洞扫描工具。 提供了基于 GUI 和 Command Line (Headless…
2 years ago
《风色幻想6》全支线任务攻略
《风色幻想6》全支线任务攻略 http://www.yxdown.com/gonglue/279383_1.html 《风色幻想6》中有哪些隐藏支线?要怎么完成任务?下面小编为大家带来《风色幻想…
2 years ago