Skip to content

Instantly share code, notes, and snippets.

View strongme's full-sized avatar
🏠
Working from home

Shiwei Yang strongme

🏠
Working from home
View GitHub Profile
@islishude
islishude / k8s-install.md
Last active June 20, 2024 16:26
k8s-国内源安装

MOVE TO HERE

注意以下命令,需要切换到 root 后运行

安装 docker

首先确定已经安装完成 docker,如果没有安装可以使用以下脚本快速安装并配置:

# Redis configuration file example.
#
# Note that in order to read the configuration file, Redis must be
# started with the file path as first argument:
#
# ./redis-server /path/to/redis.conf
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
@BorzdeG
BorzdeG / Spring.Boot.Server.Random.Port.java
Created September 15, 2015 11:53
Spring Boot :: set random server port
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.web.ServerPropertiesAutoConfiguration;
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.context.annotation.Configuration;
import java.io.IOException;
import java.net.ServerSocket;
@Configuration
@strongme
strongme / data.json
Created August 30, 2012 02:59
JSON Test
[
{"name":"Jack","age":23},
{"name":"Mary","age":33}
]