feat: 增加图床上传脚本sh

This commit is contained in:
eric
2022-10-16 22:34:09 +08:00
parent dc691ebef7
commit 6c549d1539
3 changed files with 6 additions and 94 deletions

View File

@@ -1,19 +0,0 @@
keeep/yifu
rss/ wordpress
dingtalk. =>homelab. [linux|python]
home stantce
android. react native
wechat. xposed. [gilr]
twitter /reddit. [小红书/知乎]

View File

@@ -1,75 +0,0 @@
## Start tossing my homelab
> The initial reason
I want to start tossing `homelab` is because the cost of cloud servers is relatively expensive. As an individual user, without a business model, I want to save my budget as much as possible and use open source Github works to build a service for my own use.
After learning about `frp`, an open source intranet penetration tool, I tried it and found that it can well resist the interference and idleness of broadband operators. Wait for the non-dedicated server hardware to be used effectively.
---
## Hosting and configuration
> I purchased 3 mini hosts of about 145$.
The mac mini and desktop hosts at home are productivity tools and cannot be used as servers, but professional servers , and there are power and noise problems, so focus on `mini pc`:
- cpu performance can be used,
- memory preferably > 16gb
- hard disk capacity is best 512gb
On Chinese e-commerce sites, there have been many years like this I bought a total of 3 mini pcs, and the table is organized as follows:
| Website | Brand | Pictures | Price | Amazon Price | Aliexpress Price |
| ------------- | ----------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------ | ---------------- |
| Xiaomi Youpin | `Ningmei` | <img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202209041500584.png" title="" alt="" width="197" > | 174$ | TRIGKEY 199& | |
| JD.com | `konka` | <img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202209041502087.png" title="" alt ="" width="202"> | 145$ | KAMRUI 199$ | GK3V 125$ |
| Taobao | si.myqcloud.com/202209041504005.png" title="" alt="" width="212"> | 159$ | Beelink 239$ | Belink 249$ | |
---
## openwrt router
router's e-commerce website in China `Taobao` bought an openwrt router: `sft1200` travel router of `gl-inet`
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202209041520749.png " title="" alt="" width="170">
---
## Server deployment
For linux server, I choose a web control panel: `aapanel`[^1], this is the Chinese company `pagoda panel` The international version
will be replaced someday in the future, after all, there may be privacy issues, or other indescribable surveillance
![](https://hackrobot-1258475618.cos.ap-shenzhen-fsi .myqcloud.com/202209041517846.png)
---
## Build a wordpress blog
> Record the building and use process
of homelab Purchased a domain name in `namecheap`: homelabbity.org, and then performed the following operations:
- dns points to `cloudfare`
- apply ssl certificate: `Let's Encrypt`, encrypt website
- self-hosted wordpress: download zip file, run/proxy with `php+nginx`
- choose a suitable blog theme
- install seo plugin
<img src="https:// hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202209041526134.png" title="" alt="" width="244">
xx
---
## Finally
![](https://hackrobot -1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202209041529285.png)
It is a fun thing to be able to access servers in other countries and servers in your own home through ssh at any time 🙃

6
picgo_upload.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
source /etc/profile
export LANG="en_US.UTF-8"
img="$(~/.npm-global/bin/picgo u $1)"
echo $img | awk '{print $NF}'