kitty

kitty kitty 是一个 GPU based terminal https://sw.kovidgoyal.net/kitty/ 快捷键 https://www.escapelife.site/posts/8e342b57.html ctrl+shift+f2, 打开配置文件 ctrl+shift+f5, reload config ctrl+shift+f6, display current config ubuntu install 1 2 3 sudo apt update sudo apt install kitty -y kitty 配置文件 ~/.config/kitty/kitty.conf

java 开发环境

java 开发环境 jdk 安装 openjdk windows https://github.com/ojdkbuild/ojdkbuild linux https://github.com/ojdkbuild/contrib_jdk8u-ci https://github.com/ojdkbuild/ojdkbuild/releases/download/java-1.8.0-openjdk-1.8.0.242-1.b08/java-1.8.0-openjdk-1.8.0.242-1.b08.ojdkbuild.windows.x86_64.msi 安装 maven https://maven.apache.org/download.cgi apache-maven-3.6.3-bin.zip 安装idea https://www.jetbrains.com/idea/download/#section=windows https://download.jetbrains.8686c.com/idea/ideaIC-2019.3.3.exe 安装 eclipse https://www.eclipse.org/downloads/packages/ Eclipse IDE for Java Developers, Windows 64-bit subclipse https://github.com/subclipse/subclipse/wiki Help>Install New Software>Add latest: https://dl.bintray.com/subclipse/releases/subclipse/latest/

Golang,Signal

Golang,Signal https://colobu.com/2015/10/09/Linux-Signals/ 信号(Signal)是Linux, 类Unix和其它POSIX兼容的操作系统中用来进程间通讯的一种方式。一个信号就

golang http

golang http get 1 resp, err := http.Get("http://example.com/") http post 1 2 3 4 5 6 7 8 9 10 11 12 13 func httpPostForm() { // params:=url.Values{} // params.Set("hello","fdsfs") //这两种都可以 params= url.Values{"key": {"Value"}, "id": {"123"}} resp, _:= http.PostForm("http://baidu.com", body) defer resp.Body.Close() body, _:= ioutil.ReadAll(resp.Body) fmt.Println(string(body)) } proxy https://www.flysnow.org/2016/12/24/golang-http-proxy.html 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Shell 判断进程是否存在

Shell 判断进程是否存在 1 2 3 4 5 6 7 8 9 #! /bin/bash function check(){ count=`ps -ef |grep $1 |grep -v "grep" |wc -l` #echo $count if [ 0 == $count ];then nohup python /runscript/working/$1 & fi } ———————————————— 版权声明: 本文为C

hyphen、en dash 和 em dash

hyphen、en dash 和 em dash https://cherysunzhang.com/2016/08/using-hyphen-and-dash-correctly/ 在 Unicode 中 hyphen-minus 与 hyphen 和 minus 都是不同的符号,但是在 ASCII 中则是用 hyphen-minus 来同时替代 hyphen 和 minus,所以这就是其名称的来源。 为了适应早期

golang init

golang init init函数的主要作用: 初始化不能采用初始化表达式初始化的变量。 程序运行前的注册。 实现sync.Once功能。 其他 init函数的主要特点

word basic

word basic 英文破折号、连接号、连字符、负号的区别 Hyphen (-) Hyphen 的 Unicode 编码是 U+2010,在 MS Word 里可以先输入 2010 再按 Alt +x。 不过在 ASCII 编码系统中,hyphen 被编

chrome os, crostini, 开发环境

chrome os, crostini, 开发环境 crostini 的Debian 对snap 支持不全, 不能使用snap 应用 terminal https://snugug.com/musings/developing-on-chrome-os/ terminal, tilix crostini默认的terminal在使用oh my zsh时,光

xxd

xxd, 以 16进制查看文件 xxd 命令用于使用二进制或十六进制格式显示文件内容,可以将指定文件或标准输入以十六进制转储,也可以把十六进制转储转换成原来的

tr command

tr command 1 2 3 4 5 6 7 8 9 10 11 12 # 转大写 echo 'hello' | tr '[:lower:]' '[:upper:]' # 转小写 echo 'HELLO' | tr '[:upper:]' '[:lower:]' # 删除文本中的换行符 tr -d '\n' < input.txt > output.txt # 删除空行 cat file | tr -s "\n" > new_file tr -s "[\012]" < plan.txt tr

ca-certificates 导入CA证书

ca-certificates 导入 CA 证书 archlinux ca-certificates update, 导入证书 https://www.archlinux.org/news/ca-certificates-update/ 1 2 3 4 # .pem rename to .crt # xxx.crt should export from sub ca sudo cp xxx.crt /etc/ca-certificates/trust-source/anchors/ sudo trust extract-compat centos 1 2 3 4 yum install -y ca-certificates update-ca-trust force-enable cp /tmp/$1.der /etc/pki/ca-trust/source/anchors/ update-ca-trust extract ubuntu import CA 1 2 cp foo.crt /usr/share/ca-certificates/ sudo dpkg-reconfigure ca-certificates 英文版出处:

golang unsigned shift, 无符号右移

‘golang unsigned shift, 无符号右移’ int32 转 uint32 再右移 https://stackoverflow.com/questions/33336336/go-perform-unsigned-shift-operation 1 2 3 4 5 6 func Test10(t *testing.T) { x1 := -100 result := uint32(x1) >> 2 fmt.Println(result) }

golang interface

golang interface interface 是一种类型 1 2 3 type foo interface { Get() int } 首先 interface 是一种类型,从它的定义可以看出来用了 type 关键字,更准确的说 interface 是一种具有一组方法的类型,这些方法定义了

mount --bind

mount –bind https://xionchen.github.io/2016/08/25/linux-bind-mount/ The bind mounts bind 是 mount 中比较特殊的用法之一,这里对一些例子进行分析和实验 bind 的意思是,把其他地方的子树再进行挂载,也就是说可以把文件系统中的某一个

sftp

sftp https://linuxize.com/post/how-to-use-linux-sftp-command-to-transfer-files/ 1 2 3 4 5 6 7 sftp remote_username@server_ip_or_hostname >sftp pwd >sftp ls >sftp cd /tmp >sftp lcd ~/tmp >sftp get foo.zip

remote jobs

remote jobs https://github.com/remoteintech/remote-jobs https://github.com/lukasz-madon/awesome-remote-job