Category Archives: Uncategorized

Ansible

https://www.w3cschool.cn/automate_with_ansible/automate_with_ansible-db6727oq.html ... Read More | Share it now!

Installing Kubernetes with Minikube

Minikube is a tool that makes it easy to run Kubernetes locally. Minikube runs a single-node Kubernetes cluster inside a Virtual Machine (VM) on your laptop for users looking to try out Kubernetes or develop with it day-to-day. Minikube... Read More | Share it now!

http页面自动跳转

<meta http-equiv="refresh" content="5" url=http://google.com/">; ... Read More | Share it now!

Java相对路径读取文件

Java相对路径读取文件 不管你是新手还是老鸟,在程序中读取资源文件总会遇到一些找不到文件的问题,这与Java底层的实现有关,不能算bug,只要方法得当,问题还是可以解决的。 项目的文件夹结构: repathtest ├─src │    └─com │            └─lavasoft │                    ├─test │                    └─res ├─doc 1、在Java开发工具的project中使用相对路径 在project中,相对路径的根目录是project的根文件夹,在此就是repathtest文件夹了。 创建文件的写法是: File... Read More | Share it now!

Credit Card Number for Banks

3782 xxxxxx xxxxx = AmEx – Small Corporate Card 3787 xxxxxx xxxxx = AmEx – Small Corporate Card 37×8 xxxxxx xxxxx = AmEx Gold 37×3 7xxxxx xxxxx = AmEx Platinum 37xx xxxxxx 11xxx = AmEx issued since 1995 37xx xxxxxx xxxxx =... Read More | Share it now!

ifconfig-Centos下设置静态IP

使用VirtualBox装了很多虚拟机,默认采用的DHCP的方式,但是随着虚拟机越来越多以后,这种方式很不方便,所以需要将机器的IP都设置为静态IP 需要添加的几项内容的解释: IPADDR  ... Read More | Share it now!

What is a keytab, and how do I use one?

On this page: Introduction Creating a keytab file Using a keytab to authenticate scripts Listing the keys in a keytab file Deleting a key from a keytab file Merging keytab files Copying a keytab file to another computer Introduction A keytab is a... Read More | Share it now!

linux中shell截取字符串方法总结

shell中截取字符串的方法有很多中,可以分为两大类。第一种获取特定的字符或字符串的左边或者右边的字字符串,java中实现需要先用indexOf来确定特定字符串的位置,然后再用substring来获取结果;第二种类似java中的substring shell中截取字符串的方法有很多中, ${expression}一共有9种使用方法。 ${parameter:-word} ${parameter:=word} ${parameter:?word} ${parameter:+word} 上面4种可以用来进行缺省值的替换。 ${#parameter} 上面这种可以获得字符串的长度。 ${parameter%word}... Read More | Share it now!