04 2021 档案

摘要:https://stackoverflow.com/questions/42453683/how-to-reject-in-async-await-syntax 阅读全文
posted @ 2021-04-27 11:22 hh9515 阅读(209) 评论(0) 推荐(0)
摘要:在Bettertouchtool中设置使用触摸板激活context快捷键一直无效,换一个思路,使用applescript来激活是可以的 tell application "System Events" to keystroke space using control down 资料: https:/ 阅读全文
posted @ 2021-04-24 19:25 hh9515 阅读(231) 评论(0) 推荐(0)
摘要:man bash 这个叫做parameter expansion ${parameter:=word} :=如果parameter是unset或者null 后面的值会赋给parameter,然后使用word的值 阅读全文
posted @ 2021-04-24 17:43 hh9515 阅读(124) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-04-24 14:22 hh9515 阅读(142) 评论(0) 推荐(0)
摘要:shell 分为 bourne shell 和 C shell, sh 一般是指bourne shell bash 是bourneshell again 资料: https://unix.stackexchange.com/questions/145522/what-does-it-mean-to- 阅读全文
posted @ 2021-04-23 18:35 hh9515 阅读(205) 评论(0) 推荐(0)
摘要:https://stackoverflow.com/questions/3427872/whats-the-difference-between-and-in-bash [[ 相比 [ 有一些优点: 1.[[]] 内部的变量会自动handle好space [ "$file"] [[ $file]] 阅读全文
posted @ 2021-04-23 18:08 hh9515 阅读(416) 评论(0) 推荐(0)
摘要:https://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html man bash /conditional 阅读全文
posted @ 2021-04-23 17:11 hh9515 阅读(127) 评论(0) 推荐(0)
摘要:https://askubuntu.com/questions/606378/when-to-use-vs-in-bash 答案一和答案二都写得很棒 圆括号(parentheses): list内的东西会被在子shell中执行,不会影响到当前的shell环境 花括号(braces): list 会在 阅读全文
posted @ 2021-04-23 00:04 hh9515 阅读(505) 评论(0) 推荐(0)
摘要:https://stackoverflow.com/questions/51111419/what-is-the-difference-between-1-and-1-in-bash-script 带""的会将连带""内空格的内容一起处理为一个参数 不带""的会从空格分开处理为不同的参数 阅读全文
posted @ 2021-04-22 23:56 hh9515 阅读(418) 评论(0) 推荐(0)
摘要:https://coderwall.com/p/85jnpq/bash-built-in-variables I found the $#, $@ & $? bash built-in variables very useful since I knew linux and today I woul 阅读全文
posted @ 2021-04-22 23:52 hh9515 阅读(64) 评论(0) 推荐(0)
摘要:Shell Variables and Environment Variables 每个unix 进程都运行在一个特定的环境(environment)中,environment是由一个包含了environment varialbes 的table组成每隔variable都有被指定好的值。 当你登录( 阅读全文
posted @ 2021-04-22 00:51 hh9515 阅读(272) 评论(0) 推荐(0)
摘要:https://raven-js.readthedocs.io/en/stable/ https://docs.sentry.io/clients/javascript/usage/#raven-js-recording-breadcrumbs https://docs.sentry.io/clie 阅读全文
posted @ 2021-04-21 19:11 hh9515 阅读(450) 评论(0) 推荐(0)
摘要:https://www.zhihu.com/question/22007235/answer/402261894 阅读全文
posted @ 2021-04-21 12:59 hh9515 阅读(40) 评论(0) 推荐(0)
摘要:默认快捷键是 在shortcut中修改这个的快捷键(它的menu title叫 Paste and Match Style): 普通的复制叫做Paste 阅读全文
posted @ 2021-04-20 23:27 hh9515 阅读(107) 评论(0) 推荐(0)
摘要:资料一:login shell与 non-login shell的区别: 当你到家目录并且点用户图标,输入密码回车的时候, 背景其实有一个叫login shell的东西在运行 当你使用su命令切换用户的时候也是 1. /etc/profile2. ~/.bash_profile 如果有的话就对他进行 阅读全文
posted @ 2021-04-20 23:23 hh9515 阅读(193) 评论(0) 推荐(0)
摘要:-- 是用来表示option结束,结束后面对option的处理, 比如说 什么时候用: 当我们的非option参数以-开始的时候,我们就要使用 阅读全文
posted @ 2021-04-20 18:14 hh9515 阅读(160) 评论(0) 推荐(0)
摘要:所以代码中 这种只会读取一行,第一行 阅读全文
posted @ 2021-04-20 18:06 hh9515 阅读(70) 评论(0) 推荐(0)
摘要:https://stackoverflow.com/questions/40076573/adding-timestamp-to-each-line-on-zsh 阅读全文
posted @ 2021-04-20 17:37 hh9515 阅读(148) 评论(0) 推荐(0)
摘要:都是拉丁语的简写 i.e. that is “My friend david is a vegan, i.e. he only eats ...” e.g. for example etc. and other similar things. It is used to avoid giving a 阅读全文
posted @ 2021-04-17 20:12 hh9515 阅读(46) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-04-12 11:37 hh9515 阅读(440) 评论(0) 推荐(0)
摘要:总结: 这些被叫做shell操作符 shell operator 主要分为 control operators和redirection operators <<: 这个被称作here document, 通常用来 打印多行string command会接收任何东西直到它找到下一个WORD(标记),T 阅读全文
posted @ 2021-04-08 03:18 hh9515 阅读(150) 评论(0) 推荐(0)
摘要:对于string trigger,因为需要用户花时间输入, 所以更适合对应处理响应速度稍慢一些的任务,比如跳转一个连接,请求一个网页地址,而这个网页链接的速度并不快,那么如果我使用快捷键,按完快捷键以后,浏览器打开了新tab开始跳转,其实用户的手的操作和思路就立刻被终止住了。这种感觉对人是不愉悦的, 阅读全文
posted @ 2021-04-08 02:35 hh9515 阅读(73) 评论(0) 推荐(0)
摘要:1.快捷键 快捷键也分为一个按键触发和多个按键触发,按键越少,越省力,同时要注意手指在键盘上的位置, 离得太远也会不舒服 2.typed string(也叫 string trigger) 直接输入字符串,触发 3.触摸板手势 在触摸板上绑定更多触发方式(不同的手势) 4. 按住一个键或多个键一定时 阅读全文
posted @ 2021-04-08 01:50 hh9515 阅读(126) 评论(0) 推荐(0)
摘要:set -e 如果有任意一个命令返回了非0就退出 -u 未赋值的变量会认为是错误,并且会向stderr写一个错误 https://ss64.com/bash/set.html http://www.ruanyifeng.com/blog/2017/11/bash-set.html 阅读全文
posted @ 2021-04-07 22:46 hh9515 阅读(802) 评论(0) 推荐(0)
摘要:cut -d ' ' -f 2 -d 是指delimiter 分隔符 -f是 field,也就是用' ' 分隔开之后的每一行的第二个 阅读全文
posted @ 2021-04-07 16:48 hh9515 阅读(95) 评论(0) 推荐(0)
摘要:unzip -Cj kubeless.zip "bundles/kubeless_linux-amd64/kubeless" -d /usr/local/bin -C 是case sensetive -j 是不创建垃圾目录 -d是移动文件 阅读全文
posted @ 2021-04-07 11:19 hh9515 阅读(919) 评论(0) 推荐(0)
摘要:bigsur 降级 catalina,无法在sound里找到关闭按钮了,需要运行终端命令 To turn it on:sudo nvram StartupMute=%00To turn it off:sudo nvram StartupMute=%01 阅读全文
posted @ 2021-04-07 01:36 hh9515 阅读(219) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-04-06 15:20 hh9515 阅读(36) 评论(0) 推荐(0)
摘要:https://www.bjsubway.com/ https://map.bjsubway.com/ 包括线路图都可以在这里下载到 有时间可以研究一下把svg地图抓出来 阅读全文
posted @ 2021-04-06 11:41 hh9515 阅读(777) 评论(0) 推荐(0)
摘要:https://validator.w3.org/feed/ https://www.npmjs.com/package/rss 今天研究了一下rss相关知识, 核心目标是希望搭建自己接收信息的一个workflow。 目前自己在用的是feedly,为了可定制化,想自己研究一下定制rss, 目前想法是 阅读全文
posted @ 2021-04-06 02:02 hh9515 阅读(86) 评论(0) 推荐(0)
摘要:https://www.zhihu.com/column/commandline http://www.skywind.me/blog/ 阅读全文
posted @ 2021-04-05 21:26 hh9515 阅读(25) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-04-04 21:25 hh9515 阅读(307) 评论(0) 推荐(0)
摘要:https://developer.chrome.com/docs/extensions/ https://developer.chrome.com/docs/extensions/mv3/architecture-overview/ 今天学习了chromeextension开发,开发了一个插件,主 阅读全文
posted @ 2021-04-03 23:51 hh9515 阅读(235) 评论(0) 推荐(0)
摘要:trackpad 阅读全文
posted @ 2021-04-03 14:19 hh9515 阅读(116) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-04-03 14:06 hh9515 阅读(69) 评论(0) 推荐(0)
摘要:1.ocr G bring window to front copy with karabiner ` copy with touchpad left cut with karabiner(cut with touchpad left) set Textedit position: (注意,这里使用 阅读全文
posted @ 2021-04-03 13:47 hh9515 阅读(144) 评论(0) 推荐(0)
摘要:总结: sh是POSIX standard的一个编程语言标准(specification bash是他的一个实现, /bin/sh是一个hard link 连接到当前linux系统下的一个实现 What is sh sh (or the Shell Command Language) is a pr 阅读全文
posted @ 2021-04-03 13:41 hh9515 阅读(498) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/070185201136 阅读全文
posted @ 2021-04-03 04:07 hh9515 阅读(172) 评论(0) 推荐(0)
摘要:http://www.splook.com/Software/ 名字叫 Simple Floating Clock 阅读全文
posted @ 2021-04-03 03:09 hh9515 阅读(134) 评论(0) 推荐(0)
摘要:筛选最近的图片 创建方法: 1.在menubar中选择new smart foler 然后可以把他拖到finder左侧: 并进行一些设置: 这里设置的是最近3个月的图片 mac的mail中也有类似的smart mailbox功能 阅读全文
posted @ 2021-04-03 02:48 hh9515 阅读(98) 评论(0) 推荐(0)