From 6c549d15397e9ec0cd1692824a46e1b25b431472 Mon Sep 17 00:00:00 2001 From: eric Date: Sun, 16 Oct 2022 22:34:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=9B=BE=E5=BA=8A?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E8=84=9A=E6=9C=ACsh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- desktop/caogao.md | 19 ------------ en-homelab/test2.md | 75 --------------------------------------------- picgo_upload.sh | 6 ++++ 3 files changed, 6 insertions(+), 94 deletions(-) delete mode 100644 desktop/caogao.md delete mode 100644 en-homelab/test2.md create mode 100644 picgo_upload.sh diff --git a/desktop/caogao.md b/desktop/caogao.md deleted file mode 100644 index 34c88e1..0000000 --- a/desktop/caogao.md +++ /dev/null @@ -1,19 +0,0 @@ -keeep/yifu - -rss/ wordpress - -dingtalk. =>homelab. [linux|python] - -home stantce - - - - - -android. react native - -wechat. xposed. [gilr] - - - -twitter /reddit. [小红书/知乎] diff --git a/en-homelab/test2.md b/en-homelab/test2.md deleted file mode 100644 index e49377f..0000000 --- a/en-homelab/test2.md +++ /dev/null @@ -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` | | 174$ | TRIGKEY 199& | | -| JD.com | `konka` | | 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` - - - ---- - -## 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 - - -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 🙃 diff --git a/picgo_upload.sh b/picgo_upload.sh new file mode 100644 index 0000000..96c1ac2 --- /dev/null +++ b/picgo_upload.sh @@ -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}'