Skip to content

Instantly share code, notes, and snippets.

View BoWang816's full-sized avatar
🎯
Focusing

恪晨 BoWang816

🎯
Focusing
View GitHub Profile
@BoWang816
BoWang816 / meituan.js
Created September 19, 2022 06:10
美团外卖青龙
/*
美团外卖领红包
环境变量,名称:MT_TOKEN,值:xxxxx
关于MT_TOKEN获取方法,打开http://i.meituan.com 登录后,f12 > Application > Cookies > 找到http://i.meituan.com 然后找到token的值
定时规则每天9点执行:0 0 9 * * *
[task_local]
#美团外卖领红包
0 0 9 * * *
[Script]
@BoWang816
BoWang816 / update chrome
Created April 14, 2022 01:21
[Chrome无法自动更新]
Close all open Chrome windows.
Open Terminal, enter the following and press enter:
$ sudo rm -rf /Library/Google && sudo rm -rf ~/Library/Google
Open Chrome. It may show you a yellow bar to turn on auto updates. Click that and enter your password as normal.
You should now be able to go back into Chrome settings and update successfully.
@BoWang816
BoWang816 / publish-npm.yaml
Created April 8, 2022 01:57
[npm auto publish by github action]
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
# need to set npmToken in settings-secrets-actions
name: Node.js Package
on:
push:
branches:
- master
@BoWang816
BoWang816 / .zsh
Created April 6, 2022 14:13
[my oh-my-zsh config]
export PATH="${PATH}:${HOME}/.local/bin"
source /Users/wangbo/.oh-my-zsh/plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/wangbo/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
@BoWang816
BoWang816 / autocomplete.txt
Last active April 6, 2022 14:12
[oh-my-zsh install autocomplete]
1、将插件放置在oh-my-zsh的默认插件目录:
cd /User/wangbo/.oh-my-zsh/plugins;
git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git
2、编辑.zsh添加zsh-autocomplete.plugin.zsh:
vim ~/.zsh
可以直接在最上面添加即可,添加内容为:
source /User/wangbo/.oh-my-zsh/plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh;
3、添加结束后保存;
@BoWang816
BoWang816 / deploy_nest.js
Last active October 27, 2021 07:44
deploy nest.js by github action
https://itnext.io/deploy-nest-js-on-zeit-now-with-github-actions-86bc226e7371
https://hyper-text.org/archives/2021/07/nextjs_vercel_deploy.shtml
https://aaronfrancis.com/2021/the-perfect-vercel-github-actions-deployment-pipeline
https://www.eliostruyf.com/deploy-site-vercel-github-actions-releases/
@BoWang816
BoWang816 / vercel.json
Created October 27, 2021 03:14
deploy nest.js project
{
"version": 2,
"name": "blog-server",
"builds": [
{
"src": "dist/main.js",
"use": "@vercel/node"
}
],
"routes": [
@BoWang816
BoWang816 / cdn.json
Created October 9, 2021 03:25
[常用CDN配置]
{
react: 'window.React',
'react-dom': 'window.ReactDOM',
'crypto-js': 'window.CryptoJS',
classnames: 'window.classNames',
echarts: 'window.echarts',
moment: 'window.moment',
antd: 'window.antd',
lodash: 'window._'
}
@BoWang816
BoWang816 / webstorm快捷键
Created September 18, 2021 01:21
webstorm快捷键
rcc + tab键 - - 用ES6模块系统创建一个React组件类
rccp + tab键 - - 创建一个带有PropTypes和ES6模块系统的React组件类
rcfc + tab键 - - 创建一个带有PropTypes和所有生命周期方法以及ES6模块系统的React组件类
rcjc + tab键 - - 用ES6模块系统创建一个React组件类(无导出)
下面的自己可以尝试一下哦,笔者只是做了介绍就不放图了哈~
rdp + tab键 - - 快速生成defaultProps
@BoWang816
BoWang816 / ipadApp
Created September 18, 2021 01:20
ipad App
kindle、iDaily、开眼、乐趣、Spotify、onedrive、Documents、坚果云、youtube、Picsew、文件、Pixelmator Photo、欧路英语词典、生命线、NBA篮球、Pico