Command

1
2
3
4
5
6
hexo new <title> / hexo n <title> #生成文章,或者source\_posts手动编辑
hexo server / hexo s #本地发布预览效果
hexo generate / hexo g #生成public静态文件
hexo clean
hexo list <type>
hexo version

Build

1
2
3
4
5
6
7
install nodejs
install npm
npm install hexo-cli -g
npm install hexo --save
hexo init <folder>
cd <folder>
npm install

Publish

1
2
3
hexo clean
hexo d -g
hexo s --debug

Themes submodule

1
2
3
git clone git@github.com:bigsuperangel/hexo_md.git
git submodule init
git submodule update

Update

1
2
3
4
npm install -g hexo-cli
npm i -g npm-check-updates
ncu -u
npm install

本页基本是电脑正常运行必备软件,适合新系统快速装机

以下软件推荐搭配 Windows 10 / Windows 11 系统,请按需下载

基础软件


解压缩:BandiZip(注意:请勿升级此版本)
浏览器:Windows10 默认的 Edge Google的 Chorme mozilla的 Firefox 百分浏览器centbrowser
输入法:Windows10 默认的微软输入法 极点五笔
文档办公: WPS
文字工具:emeditor 授权码:DMAZM-WHY52-AX222-ZQJXN-79JXH
视频播放器:Windows10 默认播放器支持格式不全,可以安装 PotPlayer 补充
音乐播放器:listen1
图片处理: PhotoShop 1寸照片 2寸照片 imagine
下载工具:迅雷精简版
FTP:FileZillaFTP
密码查看器:AsteriskPassword
云硬盘:RaiDrive
谷歌翻译:https://github.com/Ponderfly/GoogleTranslateIpCheck
流程设计:EdrawMax

聊天


下面两个就不用多说了,有需要就安装
QQ:https://im.qq.com
微信:https://weixin.qq.com

影音娱乐


网盘:百度网盘 阿里云盘 天翼云盘 123云盘
看视频可以去官网在线观看或下载客户端

视频平台 官网 客户端
爱奇艺 官网 下载
优酷 官网 下载
Bilibili 官网 下载

听音乐可以去官网在线听或下载客户端

音乐平台 官网 客户端
QQ音乐 官网 下载
网易云音乐 官网 下载

电脑维护


电脑维护:Dism  geek(支持优化加速、驱动管理、杀毒防护和应用市场等功能)
杀毒安全:火绒(支持病毒查杀、电脑清理、弹窗拦截等功能)
启动项修复: EasyBCD
系统测试: aida64

远程控制


远程连接:Frp_window Frp_Linux

pre1

1
2
ssh-keygen -t rsa
ssh-copy-id -i xxx_rsa.pub root@x.x.x.x

pre2

1
github secrets add private-key example xxx_rsa

sample

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
watch:
types: [started]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn --frozen-lockfile
- run: yarn run build
- run: tar -zcvf ./dist.tar.gz ./dist
- name: deploy file
uses: wlixcc/SFTP-Deploy-Action@v1.0
with:
username: ${{ secrets.USERNAME }}
server: ${{ secrets.HOST }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.PORT }}
local_path: './dist.tar.gz'
remote_path: '/root/war'
- name: executing remote ssh commands using ssh key
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.PORT }}
script: /root/shell/default-jl.sh

GitHub Action SCP , another example

Simple GitHub Action to copy a folder or single file to a remote server using SSH. This is working with the latest GitHub Actions.

✨ Example Usage

Copy a folder recursively to a remote server

1
2
3
4
5
6
7
8
9
- name: Copy folder content recursively to remote
uses: garygrossgarten/github-action-scp@release
with:
local: test
remote: scp/directory
host: ${{ secrets.HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.PASSWORD }}

Copy a single file to a remote server

1
2
3
4
5
6
7
8
9
- name: Copy single file to remote
uses: garygrossgarten/github-action-scp@release
with:
local: test/oof.txt
remote: scp/single/oof.txt
host: ${{ secrets.HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.PASSWORD }}

1. 一键安装besttrace脚本

1
bash <(curl -sL haoduck.com/sh/besttrace.sh)

2. Linux一键安装常见/最新内核脚本 锐速/BBRPLUS/BBR2

1
bash <(curl -sL haoduck.com/sh/tcpx.sh)

3. 一键配置SSH密钥登录,禁用密码登录

1
bash <(curl -sL haoduck.com/sh/pubkey.sh) "你的公钥"

4. 一键安装Docker

1
bash <(curl -sL haoduck.com/sh/docker.sh)

5. 一键分享文本脚本(paste.ubuntu.com)

1
2
bash <(curl -sL haoduck.com/sh/paste.sh) "分享的文本"
bash <(curl -sL haoduck.com/sh/paste.sh) "$(cat /root/test.txt)"

6. 一键配置SSH启用ROOT用户密码登录

1
bash <(curl -sL haoduck.com/sh/ssh_open.sh)

7. Linux一键安装firefox浏览器

1
bash <(curl -sL haoduck.com/sh/firefox.sh

sample

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
push:
branches: [ master ]
paths:
- "doc/auto_deploy.txt"

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn -B package --file pom_github.xml -P sample_profile -Dmaven.test.skip=true
- name: deploy file
uses: wlixcc/SFTP-Deploy-Action@v1.0
with:
username: ${{ secrets.USERNAME }}
server: ${{ secrets.HOST }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.PORT }}
local_path: './target/ROOT.war'
remote_path: '/root/war'
- name: executing remote ssh commands using ssh key
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.PORT }}
script: ls -al

  1. workflow yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI

on:
push:
branches:
- master
env:
GIT_USER: bigsuperangel
GIT_EMAIL: bigsuperangel@gmail.com
THEME_REPO: bigsuperangel/jacman
THEME_BRANCH: master
DEPLOY_REPO: bigsuperangel/bigsuperangel.github.io
DEPLOY_BRANCH: master

jobs:
build:
name: Build on node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
node_version: [12.x]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Checkout theme repo
uses: actions/checkout@v2
with:
repository: ${{ env.THEME_REPO }}
ref: ${{ env.THEME_BRANCH }}
path: themes/jacman
- name: Checkout deploy repo
uses: actions/checkout@v2
with:
repository: ${{ env.DEPLOY_REPO }}
ref: ${{ env.DEPLOY_BRANCH }}
path: .deploy_git

- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}

- name: Configuration environment
env:
HEXO_DEPLOY_PRI: ${{secrets.HEXO_DEPLOY_PRI}}
run: |
sudo timedatectl set-timezone "Asia/Shanghai"
mkdir -p ~/.ssh/
echo "$HEXO_DEPLOY_PRI" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
git config --global user.name $GIT_USER
git config --global user.email $GIT_EMAIL
npm install hexo-cli -g
npm install

- name: Hexo deploy
run: |
hexo clean
hexo d

1. upgrade python2.7

1
2
wget https://gitee.com/bigsuperyu/git-test/raw/master/python2.7_for_centos6.sh
bash python2.7_for_centos6.sh

2. install pip

1
2
3
curl https://bootstrap.pypa.io/get-pip.py | python
ln -s /usr/local/bin/pip /usr/bin/pip
pip -V

3. install mycli

1
pip install mycli