date command

date command 输出指定时区的时间 shell 支持在 date 命令前,指定 TZ 参数,即指定时区,这样 dat e输出将会输出指定时区的时间。TZ 是 timezone 的缩写。 1 TZ=0 date date 打印的日期格式 默

linux seq

linux seq seq命令用于产生从某个数到另外一个数之间的所有整数。 seq [选项]… 尾数 seq [选项]… 首数 尾数 seq [选项]&hel

keepassxc

keepassxc win10 install win32 openssh https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH download and install openssh, OpenSSH-Win64.zip https://github.com/PowerShell/Win32-OpenSSH/releases/ install powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1 New-NetFirewallRule -Name sshd -DisplayName ‘OpenSSH Server (sshd)’ -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 net start sshd Set-Service sshd -StartupType Automatic https://github.com/rupor-github/wsl-ssh-agent https://github.com/jstarks/npiperelay https://blog.wiloon.com/?p=13028&embed=true#?secret=RVVrbehtY9 https://keepassxc.org/

算法效率, 算法分析

算法效率, 算法分析 https://blog.csdn.net/zolalad/article/details/11848739 https://www.zhihu.com/question/21387264 算法的时间复杂度和空间复杂度 通常,对于一个给定的算法,我们要做两项分析。第一是从数学上证明算法的正确性,这一步主要用到

elasticsearch

elasticsearch 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #查看索引 GET /_cat/indices?pretty curl -X GET "localhost:9200/_cat/indices?v" GET /index-2018.09.29/_stats GET /_cat/indices?pretty # elasticsearch 重启后用以下命令观察集群状态。 watch -n 1 -d curl -XGET http://localhost:9200/_cluster/health\?pretty curl -X GET "localhost:9200/_cluster/allocation/explain?pretty" -H 'Content-Type: application/json' -d' { "index": "myindex", "shard":

archlinux kde, config

archlinux kde, config 1 2 3 4 5 6 7 8 9 10 11 12 sudo pacman -S xorg xorg-xinit sudo pacman -S plasma-desktop echo "exec startplasma-x11" > ~/.xinitrc sudo pacman -S konsole dolphin kate startx sudo pacman -S sddm sudo pacman -S breeze-gtk breeze kde-gtk-config sudo pacman -S kdeplasma-addons sudo pacman -S kwalletmanager # start kwalletmanager and disactive kwallet 登录后启动kde 1 2

X11 forwarding

X11 forwarding https://wiki.archlinux.org/title/OpenSSH 1 2 3 4 5 6 7 8 9 10 11 12 pacman -S xorg-xauth xorg-xhost /etc/ssh/sshd_config X11Forwarding yes AllowTcpForwarding yes X11UseLocalhost yes X11DisplayOffset 10 systemctl restart sshd pacman -S xorg-xclock https://gist.github.com/vietlq/8b20d09fdfe5f02f8b511c7847df39ee win 10 xserver, x11forward Install VcXsrv Windows X Server Download and install: https://sourceforge.net/projects/vcxsrv/ Check that VcXsrv runs and right-click, get logs to find DISPLAY=127.0.0.1:0.0 Note down the value of $DISPLAY and pass it ot PuTTY Configure PuTTY Navigate to SSH => X11 => Tick Enable X11 forwarding Pass the value of $DISPLAY (which is 127.

rancher

rancher https://rancher.com/docs/rancher/v2.6/en/ RKE: Rancher Kubernetes Engine EKS: Amazon EKS (Elastic Kubernetes Service) GKE: Google Kubernetes Engine https://github.com/rancher/rancher https://helm.sh/ https://k3s.io/ k3s k3s 将安装 Kubernetes 所需的一切打包进仅有 XXMB 大小的二进制文件中。并且,为了减少运行 k8s 所需的内存,删除了很多不必要

Remote IP Valve, X-Forwarded-For等http头字段

Remote IP Valve, X-Forwarded-For等http头字段 http://www.10tiao.com/html/308/201702/2650076434/1.html http://tomcat.apache.org/tomcat-8.0-doc/api/org/apache/catalina/valves/RemoteIpValve.html X-Forwarded-For等http头字段与Tomcat的 Remote IP Valve (Valve源码

Linux oom killer

‘Linux oom killer’ https://blog.csdn.net/GugeMichael/article/details/24017515 Linux - 内存控制之oom killer机制及代码分析 2014年04月18日 15:04:29 阅读数: 28048 最近,线上一些内存占用比较敏感的应用,在访问峰值的时

java onerror

java onerror http://hllvm.group.iteye.com/group/topic/40211 -XX:OnError="jstack -F %p >/opt/com/test/threaddump.log”

Java诊断工具 - btrace

Java诊断工具 - btrace https://github.com/btraceio/btrace/releases 打印慢调用 创建一个java类 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 // MethodDuration_redis.java import com.sun.btrace.annotations.*; import static com.sun.btrace.BTraceUtils.*; import java.util.Date; @BTrace public class MethodDuration_redis{ private static int i=0; @OnMethod(clazz = "com.wiloon.package0.Class0",method = "method0",location=@Location(Kind.RETURN)) public static void printMethodRunTime(@ProbeClassName String

Java Flight Recorder, jfr

Java Flight Recorder, jfr 1 2 3 4 5 6 7 8 9 jcmd 40019 VM.check_commercial_features jcmd 40019 VM.unlock_commercial_features jcmd 40019 JFR.check jcmd 40019 JFR.start name=jfr0 delay=10s duration=10s filename=jfr0.jfr

kafka, rabbitmq

kafka, rabbitmq http://www.infoq.com/cn/articles/kafka-vs-rabbitmq?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global

SSH 密钥类型 RSA, DSA, ecdsa, ed25519

SSH 密钥类型 RSA, DSA, ecdsa, ed25519 rsa ecdsa ed25519 ed25519 是目前最安全、加解密速度最快的 key 类型, 优先选择 ed25519 rsa 兼容性最好, 小于 1024 位密钥长度的 RSA 已经有被攻破的记录, 建议长度 2048, 3072

chrome os recover

chrome os recover https://support.google.com/chromebook/answer/1080595?hl=zh-Hans open chrome and install Chromebook Recovery Utility 第 3 步: 进入恢复模式 在出现错误的 Chromebook 上: 如果您在这台 Chromebook 上连接了任何设备 (例如鼠标或外部硬盘) ,请将其取下。 进入恢复模式:

chromeos linux, crostini

‘chromeos linux, crostini’ 1 2 3 4 5 vmc start dev run_container.sh -container_name=stretch -user=wiloon -shell switch to dev channel, chrome os version >=67 chrome os will start to download an update update and restart Launch crosh (ctrl-alt-t) Create crostini VM vmc start dev. This’ll download the termina component, and open a shell. Launch a container run_container.sh -container_name=stretch -user=wiloon -shell https://www.youtube.com/watch?v=s9mrR2tqVbQ Crostini 101 from Crostini https://github.com/lstoll/cros-crostini/blob/master/README.md https://support.google.com/chromebook/answer/1086915?hl=en

eval command

eval command 语法: eval cmdLine eval 会对后面的 cmdLine 进行两遍扫描, 如果第一遍扫描后, cmdLine 是个普通命令, 则执行此命令;如果 cmdLine 中含有变量的间接引用, 则保证间接引用的语义。

mbr, gpt

mbr, gpt http://www.cnblogs.com/zhaojiedi1992/p/zhaojiedi_linux_039_fdisk_gdisk_parted.html 两种分区结构简介 MBR分区 硬盘主引导记录MBR由4个部分组成 主引导程序 (偏移地址0000H-0088H) ,它负责从活动分区中装载,并运