0%

微信双开

open -n /Applications/WeChat.app/Contents/MacOS/WeChat

D A D #F B D (654321)open d6 tuning

EADGBE

  • 鲸 小松原俊
  • 七夕
  • 中川砂仁《the sprinter》
  • Love song 小松原俊
  • 6弦2品
  • 2、4、5弦不调
  • 3弦1品
  • 1弦2品

D A D #F A D (Open D调弦)这么调:

  • 6弦 夹 2品

  • 4、5弦不调

  • 3弦 夹 1品

  • 2、1弦 夹 2品

  • 6弦降1个全音

  • 4、5弦不调

  • 3弦降半个音

  • 2、1弦降1个全音


奇迹的山
少年的梦 https://www.bilibili.com/video/BV1x4411U7Mm

3.蒲公英 dandelion
4.November
5.绊 - Ties of mind
6.Truth 这不是 open D!!!!
7.雨降る窓辺で
8.Yesterday Once More
9.春、来る
10.少年の梦
11.All together
以上都是岸部真明的作品

12.涙そうそう(泪光闪闪)-谷本光 这首相对比较难

cgdgad(lowC调弦)

则Time travel的特殊调弦是 1=D,2=A,3=G,4=D,5=G,6=C

  • 6弦 夹 4品
  • 5弦 夹 2品
  • 3、4弦不调
  • 2弦 夹 2品
  • 1弦 夹 2品

岸部 - time travel 时间旅行
流行的云
押尾 - Promise
GIN - 願望的櫻花 愿樱
岸部真明 - Black Baccara
岸部真明 - 流星
岸部真明 - 朝の光を感して(感受清晨的阳光)https://www.bilibili.com/video/BV16a411k7W8/
中川砂仁 - hua lien
中川砂仁 - 風の伯爵夫人
走音 - you are not alone
走音 - 蝶戀花
Rusi - 菊花台
convertible

DBGDGC (和上面 lowc 差一个2弦)

El condor pasa 押尾桑(G调)

其它

标准调弦是 1=E,2=B,3=G,4=D,5=A,6=E

1
2
3
epgis.workerUrl = window.URL.createObjectURL(new Blob([workerBundleString],{
type: 'text/javascript'
}));
1
2
3
4
5
6
7
8
9
10
getImageData: function(t) {
var e = self.document.createElement("canvas")
, r = e.getContext("2d");
if (!r)
throw new Error("failed to create canvas 2d context");
return e.width = t.width,
e.height = t.height,
r.drawImage(t, 0, 0, t.width, t.height),
r.getImageData(0, 0, t.width, t.height)
}
1
2
3
4
5
6
7
8
9
10
var V, F, O = {
API_URL: "",
get EVENTS_URL() {},
FEEDBACK_URL: "https://apps.epgis.com/feedback",
REQUIRE_ACCESS_TOKEN: !0,
ACCESS_TOKEN: null,
MAX_PARALLEL_IMAGE_REQUESTS: 1600,
PROJECT_TYPE: "EPSG:3857",
VERSION: "1.5.4"
}
1
2
3
var s = this._UAParser.getDevice().type;
e.style = "mobile" == s ? "aegis://styles/aegis/Streets-Raster512" : "aegis://styles/aegis/Streets";
}

1
javascript:var%20currentsite%3Ddocument.querySelector(%22meta%5Bproperty%3D'al%3Aandroid%3Aapp_name'%5D%22)%3Fdocument.querySelector(%22meta%5Bproperty%3D'al%3Aandroid%3Aapp_name'%5D%22).content%3Awindow.location.href%3Bfunction%20isPage(b)%7Bconsole.log(b%2B%22%20%22%2Bcurrentsite.includes(b))%3Breturn%20currentsite.includes(b)%7Dfunction%20process(b)%7Bvar%20a%3Db%3BisPage(%22NYTimes%22)%26%26(document.querySelector(%22html%22).innerHTML%3Da)%3BisPage(%22Medium%22)%26%26(a%3Db.replace(%2F%3C%5C%2F%3Fnoscript%3E%2Fg%2C%22%22)%2Cdocument.querySelector(%22html%22).innerHTML%3Da)%3Bif(isPage(%22Bloomberg%22)%7C%7CisPage(%22businessinsider%22))a%3Ddocument.createElement(%22html%22)%2Ca.innerHTML%3Db%2Ca.querySelectorAll(%22script%22).forEach(function(a)%7Breturn%20a.outerHTML%3D%22%22%7D)%2Ca%3Da.outerHTML%2Cdocument.open()%2Cdocument.write(a)%2Cdocument.close()%3BisPage(%22businessinsider%22)%26%26(a%3Ddocument.createElement(%22html%22)%2Ca.innerHTML%3Db%2Ca.querySelectorAll(%22script%22).forEach(function(a)%7Breturn%20a.outerHTML%3D%22%22%7D)%2Ca.querySelectorAll(%22figure%22).forEach(function(a)%7Ba.innerHTML%3Da.querySelector(%22noscript%22).innerHTML%7D)%2Ca%3Da.outerHTML%2Cdocument.open()%2Cdocument.write(a)%2Cdocument.close())%7Dfetch(window.location.href%2C%7Bcredentials%3A%22omit%22%2Credirect%3A%22follow%22%2Cmode%3A%22no-cors%22%7D).then(function(b)%7Breturn%20b.text()%7D).then(function(b)%7Bprocess(b)%7D)%3Bvoid+0
1
var currentsite=document.querySelector("meta[property='al:android:app_name']")?document.querySelector("meta[property='al:android:app_name']").content:window.location.href;function isPage(b){console.log(b+" "+currentsite.includes(b));return currentsite.includes(b)}function process(b){var a=b;isPage("NYTimes")&&(document.querySelector("html").innerHTML=a);isPage("Medium")&&(a=b.replace(/<\/?noscript>/g,""),document.querySelector("html").innerHTML=a);if(isPage("Bloomberg")||isPage("businessinsider"))a=document.createElement("html"),a.innerHTML=b,a.querySelectorAll("script").forEach(function(a){return a.outerHTML=""}),a=a.outerHTML,document.open(),document.write(a),document.close();isPage("businessinsider")&&(a=document.createElement("html"),a.innerHTML=b,a.querySelectorAll("script").forEach(function(a){return a.outerHTML=""}),a.querySelectorAll("figure").forEach(function(a){a.innerHTML=a.querySelector("noscript").innerHTML}),a=a.outerHTML,document.open(),document.write(a),document.close())}fetch(window.location.href,{credentials:"omit",redirect:"follow",mode:"no-cors"}).then(function(b){return b.text()}).then(function(b){process(b)});void+0

mac 鼠标速度

查看

1
defaults read -g com.apple.mouse.scaling 

设置 (推荐 8 - 10)

1
defaults write -g com.apple.mouse.scaling 8

via https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#layout-line-line-miter-limit

line-cap 两头

  • butt 默认
  • round 圆角
  • square (感觉就是 butt 前进了一步)

Layout property. Optional enum. One of “butt”, “round”, “square”. Defaults to “butt”.

1
test.map.setLayoutProperty('layer_goudao','line-cap','round')

line-join 拐弯

默认是 miter

  • bevel 拐弯是直的
  • round 圆角
  • miter 默认

Layout property. Optional enum. One of “bevel”, “round”, “miter”. Defaults to “miter”.

1
test.map.setLayoutProperty('layer_goudao','line-join','round')

line-miter-limit

拐弯:修饰 尖角

Layout property. Optional number. Defaults to 2. Requires line-join to be “miter”. Supports interpolateexpressions.

Used to automatically convert miter joins to bevel joins for sharp angles.

line-round-limit

如果 line-join 是 “round” 的情况下 浅角(尖角的相反)

拐弯:修饰 浅角

Layout property. Optional number. Defaults to 1.05. Requires line-join to be “round”. Supports interpolateexpressions.

Used to automatically convert round joins to miter joins for shallow angles.

line-pattern

宽度必须偶数

Paint property. Optional resolvedImage. Transitionable.

Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, …, 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.

line-offset

(线自己的)左右偏移(像素)

Paint property.

line-translate

偏移

Paint property. Optional array of numbers. Units in pixels. Defaults to [0,0]. Supports interpolateexpressions. Transitionable.

Read more »

系统偏好设置 - 用户与群组 - 登录项

检查plist文件

1
2
3
4
5
6
~/Library/Preferences/ – (当前用户设置的进程)
~/Library/LaunchAgents/ – (当前用户的守护进程)
/Library/LaunchAgents/ – (管理员设置的用户进程)
/Library/LaunchDaemons/ – (管理员提供的系统守护进程)
/System/Library/LaunchAgents/ – (Mac操作系统提供的用户进程)
/System/Library/LaunchDaemons/ – (Mac操作系统提供的系统守护进程)

launchctl

1
2
3
4
5
6
# 查看anydesk服务名
launchctl list | grep anydesk
# 停止服务
launchctl stop com.philandro.anydesk
# 移除服务
launchctl unload com.philandro.anydesk

按修改时间排序

顺便修改 hexo butterfly 主题

在目录

themes/butterfly/source/css/_mode/

添加

gs.styl

默认是 1087(不是 1086 也不是 1089)

1
2
export http_proxy='http://127.0.0.1:1087'
export https_proxy=$http_proxy

测试地址

1
curl https://www.bbc.com/

写入 ~/.zshrc

1
alias p10='export http_proxy="http://127.0.0.1:1087";export https_proxy=$http_proxy;echo -e 已开启代理'

或者

1
2
3
4
5
6
7
8
9
10
11
function proxy(){
export http_proxy='http://127.0.0.1:1087'
export https_proxy=$http_proxy
echo " \e[41m 已开启代理"
}

function proxy_off(){
unset http_proxy
unset https_proxy
echo -e "已关闭代理"
}

注意 = 后面不能有空格!!!!

export http_proxy=这里不能有空格’http://127.0.0.1:1087'

shell 颜色语法

1
2
3
\e
\033
\x1B

tput 颜色

1
2
3
4
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
echo "${red}red text ${green}green text${reset}"
1
echo "$(tput setaf 1)Red text $(tput setab 7)and white background$(tput sgr 0)"

tput setab [1-7] # Set the background colour using ANSI escape
tput setaf [1-7] # Set the foreground colour using ANSI escape

Num Colour #define R G B

0 black COLOR_BLACK 0,0,0
1 red COLOR_RED 1,0,0
2 green COLOR_GREEN 0,1,0
3 yellow COLOR_YELLOW 1,1,0
4 blue COLOR_BLUE 0,0,1
5 magenta COLOR_MAGENTA 1,0,1
6 cyan COLOR_CYAN 0,1,1
7 white COLOR_WHITE 1,1,1

字符画

1
2
3
4
5
6
7
  ,--,   .-. .-. .---.    .---. .-. .-..-. .-.  .--.  .-. .-.  ,--,   
.' .' | | | |/ .-. ) ( .-._)| | | || | | | / /\ \ | \| |.' .'
| | __ | | | || | |(_)(_) \ | `-' || | | |/ /__\ \| | || | __
\ \ ( _)| | | || | | | _ \ \ | .-. || | | || __ || |\ |\ \ ( _)
\ `-) )| `-')|\ `-' /( `-' ) | | |)|| `-')|| | |)|| | |)| \ `-) )
)\____/ `---(_) )---' `----' /( (_)`---(_)|_| (_)/( (_) )\____/
(__) (_) (__) (__) (__)

vscode 命令行

Command+Shift+p 输入 shell

选择 install code command in path

在终端打开项目

1
code 目录名  

原理

其实是放了链接

1
/usr/local/bin

查看

1
which code

其他方式

1
open -a "Visual Studio Code"

vsode 根据项目修改颜色

https://dockyard.com/blog/2019/07/15/follow-these-steps-to-enable-vs-code-color-customization

编辑 .vscode/settings.json

1
2
3
4
5
6
7
8
9
10
{
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#a8e6cf",
"titleBar.inactiveBackground": "#a8e6cf",
"titleBar.activeForeground": "#000",
"titleBar.inactiveForeground": "#000",
"statusBar.foreground": "#000",
"statusBar.background": "#a8e6cf"
}
}

加入 .gitignore

Open Terminal

Run touch ~/.gitignore_global to create a global .gitignore file in your home directory

Run open ~/.gitignore_global to open the file

Add .vscode/ to the file

Run git config –global core.excludesfile ~/.gitignore_global

1
sudo apachectl start
1
sudo apachectl stop

配置文件路径为 /etc/apache2/httpd.conf

站点的根目录为 /Library/WebServer/Documents/

修复 git

升级 mac monterey 以后 git 坏了

1
xcode-select --install

This will download and install the Command Line Tools package and fix the problem.

You do not need Xcode, you can install only the Command Line Tools here, it is about 130Mb.

If the above alone doesn’t do it, then also run:

xcode-select –reset

  • 按住 command 直接拖动
  • 拖出删除
  • 重新出现 一般在 Dock & Menu Bar 或者 软件自己的设置中

第三方 dozer 或者 Bartender

nodejs

官网

brew

https://brew.sh

官网因墙有问题

1
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

iterm

https://makeoptim.com/tool/terminal

注意:要下载字体,否则显示问号

sublime

如果是在默认shell下,

sudo ln -s “/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl” /usr/bin/subl

使用zsh的可以使用以下命令

alias subl=”‘/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl’”
alias nano=”subl”
export EDITOR=”subl”

====

alias subl=”open -a Sublime\ Text\ 2”

保存后执行source ~/.bash_profile,然后就可以用subl打开文本了

js 异步

https://www.w3schools.com/js/js_async.asp

search()的参数是正则表达式,而indexOf()的参数只是普通的字符串。indexOf()是比search()更加底层的方法。

如果只是兑一个具体字符串来茶渣检索,那么使用indexOf()的系统资源消耗更小,效率更高;如果查找具有某些特征的字符串(例如查找以a开头,后面是数字的字符串),那么indexOf()就无能为力,必须要使用正则表达式和search()方法了。

大多是时候用indexOf()不是为了真的想知道子字符串的位置,而是想知道长字符串中有没有包含这个子字符串。若果返回索引为-1,那么说明没有,反之则有。

startsWith

startsWith endsWith includes

search find findIndex

includes

似乎比 indexOf 厉害一点

1
2
3
var arr = ['a','b', 'c', NaN];
console.log(arr.indexOf(NaN)) // -1
console.log(arr.includes(NaN)) // true
1
2
3
var arr = new Array(3);
console.log(arr.indexOf(undefined));//-1
console.log(arr.includes(undefined))//true

fill 的小问题

1
2
3
a = Array(10).fill({'hello':'goodbye'});
a[0].hello= 777
// 全部都会变
1
2
aa = Array(10).fill().map(k=>({hello:'world'}));
aa[0].hello= 777

// 只有第一个会变 // 以下皆是

1
aaa = Array.from({length:10},()=> ({'hello':'goodbye'}))
1
aaaa = [...new Array(10)].map(()=> ({'hello':'goodbye'}));

repeat

https://www.samanthaming.com/tidbits/22-2-ways-to-repeat-strings/