Skip to content

Instantly share code, notes, and snippets.

View whidy's full-sized avatar
🐒
east see see, west see see👀

白舜 whidy

🐒
east see see, west see see👀
View GitHub Profile
@whidy
whidy / gist:379889645f24cb4156e747faf372ab54
Created January 3, 2024 06:49
删除macos下的某个目录下所有子目录内的node_modules
find ~/webs -name "node_modules" -type d -prune -exec rm -rf '{}' +
@whidy
whidy / ToggleTouchBar.scpt
Last active January 21, 2023 12:04
Monterey touch bar toggle between Fn and App
tell application "System Preferences"
reveal anchor "keyboardTab" of pane "com.apple.preference.keyboard"
delay 0.5
tell application "System Events"
click pop up button 2 of tab group 1 of window "键盘" of application process "System Preferences" of application "System Events"
end tell
end tell
tell application "System Preferences" to quit
@whidy
whidy / gfwlist.js
Last active January 28, 2023 02:31
terrible gfw list extend (for shadowsocksR, file: gfwlist.js)
/**
* 补充一些经常受干扰网站
* 以下是代码片段
* 如果需要手动添加pac规则在其他app上,请直接在该app输入框内输入如:“||githubusercontent.com”,即可,不包含双引号,一条一行。
* PAC规则手动添加指导:https://segmentfault.com/n/1330000018325122
*/
var rules = [
"||fastly.net",
"||reddit.com",
@whidy
whidy / settings.json
Created October 25, 2019 08:02
Vue.js develop with VSCode workspace settings
{
"eslint.enable": true,
"editor.formatOnSave": false,
"files.eol": "\n",
"eslint.autoFixOnSave": true,
"eslint.validate": [
{
"language": "vue",
"autoFix": true
},
@whidy
whidy / .eslintrc.js
Created October 25, 2019 08:00
Vue.js develop with ESLint config
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parserOptions: {
parser: 'babel-eslint',
ecmaFeatures: {
legacyDecorators: true