Compare commits

...

2 Commits

Author SHA1 Message Date
e018df63e0 Rename 2024-01-21 15:45:45 +08:00
33b475a3a0 Rename 2024-01-21 15:44:48 +08:00
23 changed files with 12 additions and 4 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
public public
resources resources
.hugo_build.lock .hugo_build.lock
themes/*

View File

@@ -15,6 +15,8 @@ draft: false
enableComment: true enableComment: true
--- ---
<!--more-->
## 恢復備份 ## 恢復備份
- `%userprofile%/.config` - `%userprofile%/.config`
- `%userprofile%/.ssh` - `%userprofile%/.ssh`
@@ -24,6 +26,7 @@ enableComment: true
- `%userprofile%/.vimrc` - `%userprofile%/.vimrc`
## 安裝 Chocolatey ## 安裝 Chocolatey
先安裝 [Chocolatey](https://chocolatey.org/) ,根據 [https://chocolatey.org/install](https://chocolatey.org/install) ,用 Administrator 權限打開 Terminal ,輸入以下指令安裝: 先安裝 [Chocolatey](https://chocolatey.org/) ,根據 [https://chocolatey.org/install](https://chocolatey.org/install) ,用 Administrator 權限打開 Terminal ,輸入以下指令安裝:
```powershell ```powershell
@@ -31,7 +34,9 @@ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManage
``` ```
## 安裝需要的軟體 ## 安裝需要的軟體
接著就可以安裝需要的工具了。 接著就可以安裝需要的工具了。
```shell ```shell
choco install powertoys 7zip vscode hxd sublimetext4 androidstudio intellijidea-community git winmerge freefilesync freedownloadmanager gsudo firacode cascadiacode sourcecodepro delta googlechrome googledrive enpass.install sharex win32diskimager k-litecodecpackmega --yes choco install powertoys 7zip vscode hxd sublimetext4 androidstudio intellijidea-community git winmerge freefilesync freedownloadmanager gsudo firacode cascadiacode sourcecodepro delta googlechrome googledrive enpass.install sharex win32diskimager k-litecodecpackmega --yes
``` ```
@@ -39,6 +44,7 @@ choco install powertoys 7zip vscode hxd sublimetext4 androidstudio intellijidea-
可以在 [https://community.chocolatey.org/packages](https://community.chocolatey.org/packages) 找到其他工具,再加到清單後面即可。 可以在 [https://community.chocolatey.org/packages](https://community.chocolatey.org/packages) 找到其他工具,再加到清單後面即可。
上面的指令安裝了下列的軟體,可以依自己需求增刪: 上面的指令安裝了下列的軟體,可以依自己需求增刪:
- [powertoys](https://community.chocolatey.org/packages/powertoys) - [powertoys](https://community.chocolatey.org/packages/powertoys)
- [7zip](https://community.chocolatey.org/packages/7zip) - [7zip](https://community.chocolatey.org/packages/7zip)
- [vscode](https://community.chocolatey.org/packages/vscode) - [vscode](https://community.chocolatey.org/packages/vscode)
@@ -63,6 +69,7 @@ choco install powertoys 7zip vscode hxd sublimetext4 androidstudio intellijidea-
- [k-litecodecpackmega](https://community.chocolatey.org/packages/k-litecodecpackmega) - [k-litecodecpackmega](https://community.chocolatey.org/packages/k-litecodecpackmega)
## 升級軟體 ## 升級軟體
```shell ```shell
choco upgrade all -y choco upgrade all -y
``` ```

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

Before

Width:  |  Height:  |  Size: 484 KiB

After

Width:  |  Height:  |  Size: 484 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
../../bin/0.100.1_extend/hugo.exe ../../bin/0.100.1_extend/hugo.exe
ssh -t root@192.168.1.30 "rm -rf /var/www/html/*" ssh -t awin@awinpi4 "rm -rf /home/awin/docker/blog/data/*"
scp -r ./public/* root@192.168.1.30:/var/www/html/ scp -r ./public/* awin@awinpi4:/home/awin/docker/blog/data/
ssh -t root@192.168.1.30 "systemctl restart apache2" ssh -t awin@awinpi4 "sudo docker compose -f /home/awin/docker/blog/docker-compose.yml down ; sudo docker compose -f /home/awin/docker/blog/docker-compose.yml up -d"