星空加速器官网网址-猴王加速器
When I upgrade my desktop PC I tradtionally retire my old server and use the replaced PC in its place. Also taking the opportunity for a clean install of Ubuntu server. I recently realised that the machine currently serving that role is overkill for what I need, namely:
- File server for me alone
- Transmission for downloading
- Anonymous VPN
- 手机怎样浏览国外网站
A large desktop machine with 6GB RAM and a big PSU is unnecessary.
I switched to a Raspberry Pi 4 with 4GB RAM, got a little cooling fan for it and set up a simple Ubuntu server. The Pi4 has gigabit ethernet and USB3 support. For files I purchased a 4GB WD Passport drive that can be powered from the Pi’s USB3 port. I only have about 2GB of data right now, so room to grow.
Backing this up to two 2GB external drives became tiresome and wasn’t happening as often as it should. I purchased a second 4GB Passport drive planning to rsync nightly rather than use software RAID. Unfortuntely there just wasn’t enough power from the Pi4 to support two drives.
I realised this was a blessing in disguise. Installing Ubuntu server on a Raspberry Pi and plugging the second 4GB drive in to that would give me the nightly rsync backup I need. The 100mb speed of the Pi3’s NIC and USB2 would be slow in comparison, but more than enough for a nightly backup run. Not to mention the peace of mind in knowing if the Pi4 went up in smoke it could take all my data and I’d still have a working backup.
This also meant I could spread the resource load. I moved the PiHole over the Pi3 as it’s only DNS traffic. I’m also using it to serve a few old, separately-powered external drives over the network. I can use the Pi3 to try things out and easily rebuild in case I screw up without taking my main fileserver offline.
I had a spare five-port gigabit network switch that I dedicated to use with this little server array, keeping it all in a plastic box.
While technically this met my needs of emulating my old server’s abilities, as well as cutting power consumption, it was inelegant. Three power-bricks, and two long USB cables to bridge a gap mere inches in length.
I checked the power-consumption of the switch, which turned out to be 5v 0.7a. The Pi4 needs a good 3a, and the Pi3 2.5a, both 5v. That’s about 6.2 amps for the whole thing.
I hopped on one of those Chinese online stores and ordered a 12v 8a power brick, a short micro-usb cable to power the pi3, and a short USB-C cable to power the pi4.
如何用LoCo加速器设置加速器伕理上外国网站?-Win7旗舰版:2021-6-5 · 当前位置: 主页 > 资讯 > 软件教程 > 如何用LoCo加速器设置加速器伕理上外国网站? 更新时间: 2021-06-05 16:52:13 作者:铭铭 穿梭加速器11.0官方版
With two 30cm cat5e cables I now have a single 12v power brick and a single network cable running the whole thing. I also have two spare network ports, and about 1.8 amps of power going begging.
Maybe I’ll put a Raspberry Pi Zero (or similar SBC), or maybe an ESP32 in there and set up some LoRa.
In hindsight, I could’ve used a 5v power supply (with enough current), but I hadn’t finalised the setup and wasn’t sure everything I might want to power would be 5v. As it stands, I’m thinking of hooking up an old 12v case fan to move some air around everything.
星空加速器官网网址-猴王加速器
I’m writing a webapp that loads content based on the subdomain. Doing this locally is problematic because you can’t use a subdomain with http://localhos:8080
.
I’m using WSL2 on Windows 10 and can therefore leverage the hosts
file, usually found in C:\Windows\System32\drivers\etc\hosts
. By adding these lines to it I can create a domain with two subdomains locally and point them both at my WSL instances IP address:
|
|
After making any changes to the hosts
file it is important to flush the DNS cache by running the following in Powershell:
|
|
When visiting those URLs in my browser, and by adding the port, I can see my webapp running on WSL.
In javascript I can read the subdomain with the following:
|
|
星空加速器官网网址-猴王加速器
Using the Transport API I thought it might be fun to build a small web-based board that looked and felt like the electronic display boards seen at British railway stations.
江苏一网吧为吸引学生上网 安装翻墙软件被查处_中国经济网 ...:2021-12-9 · 为了招揽学生上网消费,他在电脑上安装了一款翻墙软件:可众让学生不刷身份证这上网。 这一招果真为他带来了很多生意,然而,8日就被当地 ...
星空加速器官网网址-猴王加速器
星空加速器官网网址-猴王加速器
To ensure I can use raw HTML, for example when embedding a YouTube video, I had to set unsafe
to true for the goldmark renderer:
|
|
I wanted my posts URLs to be at the root of the domain, and not at posts/xxxx
, this can be achieved in config:
|
|
I can dynmanically add the current year to the copyright notice by defining my copyright in the config:
|
|
Then in my 怎样浏览国外网站
partial:
|
|
星空加速器官网网址-猴王加速器
Archetypes pre-fill the frontmatter for a given content type. For example, I have a posts
folder in my content folder, and I have a corresponding posts.md
in my archetypes folder. The posts.md file looks like this:
|
|
I have added description
and tags
to make sure they appear in every new post file, and I’ve set draft
to false as I want to explicit set it to true in the rare instance I create a draft and commit it.
星空加速器官网网址-猴王加速器
As a bit of fun I keep a page with lists of things I like. These are stored as toml under data/xxx.toml
, defined in the following way:
|
|
Then I have a shortcode in my <theme>/layouts/shortcodes
folder called list.html
:
|
|
The first line above is looking for the first argument passed to the shortcode which will be the name of the data file.
Line 5 grabs and sorts the list, by making sure every list toml file defines the array as list=
, this will work for any data file I throw at it:
|
|
星空加速器官网网址-猴王加速器
First create a paginator using your where selector and Paginate. Here I am getting all my ‘posts’ and sorting by date, newest first:
|
|
Now in my range
I can use the paginator:
|
|
The Paginator exposes lots of fun things for us to use. For next
and previous
links (which I find ambiguous, preferring newer
and older
), we can test if there is a next or a previous and render some markup accordingly:
|
|
The number of items per page can be set in the config.toml
:
|
|