-
Sort Case Sensitive
LC_COLLATE=C sort
This variable governs the collation rules used for sorting and regular expressions. Setting the value to C can for example make the ls command sort dotfiles first, followed by uppercase and lowercase filenames
-
Terminated Pod
delete pod 卡在 “I0911 18:34:01.334912 825565 kubelet_pods.go:979] Pod “xxxx(689dec0e-6057-4221-aa29-d9618c20d3c7)” is terminated, but some volumes have not been cleaned up”。
mount grep 689dec0e 看到有一些相关的 mount 需要 umount。
-
Parameter Substitution
Advanced Bash-Scripting Guide: Manipulating Variables
${parameter-default} and ${parameter:-default} are almost equivalent. The extra : makes a difference only when parameter has been declared, but is null.
#!/bin/bash # param-sub.sh # Whether a variable has been declared #+ affects triggering of the default option #+ even if the variable is null. username0= echo "username0 has been declared, but is set to null." echo "username0 = ${username0-`whoami`}" # Will not echo. echo echo username1 has not been declared. echo "username1 = ${username1-`whoami`}" # Will echo. username2= echo "username2 has been declared, but is set to null." echo "username2 = ${username2:-`whoami`}" # ^ # Will echo because of :- rather than just - in condition test. # Compare to first instance, above. # # Once again: variable= # variable has been declared, but is set to null. echo "${variable-0}" # (no output) echo "${variable:-1}" # 1 # ^ unset variable echo "${variable-2}" # 2 echo "${variable:-3}" # 3 exit 0
-
自洽
自洽未必是好人,但他至少是逻辑上讲的通的,也就是不能有矛盾。那这个必须基于一些大家都普遍认可的观点,比如“我不允许别人做这件事,就默认代表了我自己也不会做;如果我做了一件事,默认代表我也允许别人做这样的事。”
我和不自洽的人相处就非常难受。
-
Disk Benchmark
只读(随机读占大部分)不写的情况下, 70% 的饱和度
如果再有写的时候,读被压缩,util 升到100%
r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util 1753.00 0.00 85020.00 0.00 97.00 3.79 2.20 2.20 0.00 0.40 70.90 956.00 1600.00 55700.00 1383128.00 1125.84 39.20 13.17 8.60 15.90 0.38 96.30 111.00 901.00 7440.00 795104.00 1586.06 164.88 147.85 231.57 137.54 0.99 100.00
-
Kafka Fix No Leader
-
reassign
-
pre
-
wait some time, remove /controller if needed
-
-
结扎
今天她说,“你去结扎吧。但结扎不可逆。”
-
Gevent Monkey Patch
from gevent import monkey monkey.patch_all()
-
Mount Nofail
External devices that are to be mounted when present but ignored if absent may require the nofail option. This prevents errors being reported at boot. For example:
/etc/fstab /dev/sdg1 /media/backup jfs nofail,x-systemd.device-timeout=1ms 0 2
The nofail option is best combined with the x-systemd.device-timeout option. This is because the default device timeout is 90 seconds, so a disconnected external device with only nofail will make your boot take 90 seconds longer, unless you reconfigure the timeout as shown. Make sure not to set the timeout to 0, as this translates to infinite timeout.
-
洞
以前不知道智齿已经这么大一个洞了,所以相安无事
自从知道以后,就老是想去舔,但是里面有被吃的东西堵住了,就特别难受。以后需要随身带着水牙线了。。