Typlog 3.1 (https://typlog.com)<![CDATA[Pubs of Yuwei®]]>https://work.yba.dev/https://i.typlog.com/ibigbug-lab/8311002158_042213.png?x-oss-process=style/sl<![CDATA[Pubs of Yuwei®]]>https://work.yba.dev/Tue, 17 Mar 2026 05:34:58 +0000<![CDATA[What's The Time In Tokio?]]>https://work.yba.dev/what-s-the-time-in-tokiohttps://work.yba.dev/what-s-the-time-in-tokioSun, 10 Sep 2023 12:58:59 +0000TL;DR - Use std::slice::Chunks when you'd like to measure a slightly more accurate execution time of each future in a big batch of futures. Problem Lately I've been working on a small project that I needed to measure how long it takes for a......

READ MORE

]]>
<![CDATA[Setting Up IPv6 with Superloop on RouterOS]]>https://work.yba.dev/setting-up-ipv6-with-superloop-on-routeroshttps://work.yba.dev/setting-up-ipv6-with-superloop-on-routerosThu, 10 Aug 2023 14:45:39 +0000It took me a while to figure out the simplest way to enable IPv6 for my home network with Microtik routers. TL;DR - You don't need the complicated DHCPv6 Server, a quick DHCP Client setup would be enough. I'm with Superloop when I'm writing......

READ MORE

]]>
<![CDATA[Permission Issue with Setting Up Proxmox Backup Server with Synology NFS]]>https://work.yba.dev/permission-issue-with-setting-up-proxmox-backuphttps://work.yba.dev/permission-issue-with-setting-up-proxmox-backupThu, 27 Jul 2023 12:41:06 +0000NFS permission issue has always been annoying to me since I started to use my Synology as the main storage provider of my homelab running Docker Swarm, which can be made easier by supplying block storage to the Docker host machine with iSCS......

READ MORE

]]>
<![CDATA[Upgrade to Windows 11 on PVE]]>https://work.yba.dev/upgrade-pve-windows-11https://work.yba.dev/upgrade-pve-windows-11Sun, 10 Oct 2021 04:54:53 +0000If you are trying to freshly install Windows 11 on PVE, you can follow this post: https://dannyda.com/2021/10/08/how-to-install-windows-11-on-proxmox-ve-pve-without-workarounds/ If you are like me who wants to add TPM 2.0 and Secure Boot su......

READ MORE

]]>
<![CDATA[Setting up Clash as Second Gateway for LAN]]>https://work.yba.dev/best-practice-for-setting-up-clash-as-second-gatewayhttps://work.yba.dev/best-practice-for-setting-up-clash-as-second-gatewayTue, 30 Mar 2021 02:01:35 +0000Prerequisite comzyh/clash Open sourced tun support Debian 10 Proxy provider Shadowsocks or whatever supported by clash, Dler Cloud for example Steps 1 Setup Tun TUN_NAME=clash0 sudo ip tuntap add mode tun user clash name $TUN_NAME sudo ip l......

READ MORE

]]>
<![CDATA[My HomeLab Setup]]>https://work.yba.dev/my-homelab-setuphttps://work.yba.dev/my-homelab-setupThu, 02 Jan 2020 21:20:17 +0000Hardware Compute PowerEdge R720 - PVE virtualization Networking ER-X - Gateway UAP-AC-LITE - Wireless AP TL-SG1016DE - 16 Part Switch TL-SG1005P - 5 Port Switch Storage DS 918+ Devices Laptop/PC Mobile Devices Multimedia(TV, Game Console, M......

READ MORE

]]>
<![CDATA[Dell R720 PowerEdge Server Hardware Monitoring in ELK]]>https://work.yba.dev/dell-r720-poweredge-server-hardware-monitoringhttps://work.yba.dev/dell-r720-poweredge-server-hardware-monitoringFri, 27 Dec 2019 12:03:52 +0000Story Recently I bought a refurbished Dell R720 PowerEdge Server on eBay and started setting up my HomeLab. I'm pretty happy with it hosting several VMs for me over PVE. Right after installing a graphics card(NVIDIA RTX 750 TI from my old P......

READ MORE

]]>
<![CDATA[Publish a Scoop Package]]>https://work.yba.dev/how-to-publish-a-scoop-packagehttps://work.yba.dev/how-to-publish-a-scoop-packageThu, 14 Nov 2019 07:37:24 +0000I developed a tool PowerSession using CSharp and wanted to make it easy to be installed and used. The way of distributing command line tools in CSharp community is not as easy as it in Python/Node/Go or whichever has an official support to ......

READ MORE

]]>
<![CDATA[Announcing PowerSession v1.0.0]]>https://work.yba.dev/powersession-initial-releasehttps://work.yba.dev/powersession-initial-releaseMon, 07 Oct 2019 16:10:05 +0000What is it If you are a fan of command line tools like me you might've heard of asciinema which you can use to record and share a command line session(amazing!). And PowerSession is the tool that you use to share your command line sessions ......

READ MORE

]]>
<![CDATA[How to scan QRCode with SwiftUI]]>https://work.yba.dev/how-to-scan-qrcode-with-swiftuihttps://work.yba.dev/how-to-scan-qrcode-with-swiftuiThu, 25 Jul 2019 10:57:25 +0000Xcode version: 11.0 beta 4 macOS version: 10.15 Beta Prerequisites Interfacing with UIKit This blog post is a demo for integrating a custom UIViewController with SwiftUI using the Coordinator pattern, which I think is really awesome - with ......

READ MORE

]]>
<![CDATA[SoftU2F for Window]]>https://work.yba.dev/softu2f-for-windowshttps://work.yba.dev/softu2f-for-windowsSun, 14 Jul 2019 12:45:41 +0000TL;DR Do I need this software? Likely No - if you are a normal Windows user Microsoft will officially implement a FIDO2 authenticator as a feature of Windows Hello to improve the security by going password less Maybe Yes - if you are intere......

READ MORE

]]>
<![CDATA[Read Golang MemsStats the Hard Way]]>https://work.yba.dev/read-golang-memsstats-the-hard-wayhttps://work.yba.dev/read-golang-memsstats-the-hard-waySat, 02 Sep 2017 00:00:00 +0000There is an interesting struct definition named runtime.MemStats which keeps the program runtime memory metris and stats. The definition somehow explains how Golang runtime manage runtime heap/stack/os memory usage. Normally we can use runt......

READ MORE

]]>
<![CDATA[How to write solid cron jobs]]>https://work.yba.dev/how-to-write-solid-cron-jobshttps://work.yba.dev/how-to-write-solid-cron-jobsThu, 29 Jun 2017 00:00:00 +0000Recently I migrate pypi-mirrors from Vultr VPS to Rancher stack, which is a pure container environment. Everything work fine, though it took me some time to setup the cron job in container correctly. And here is a short summary which might ......

READ MORE

]]>
<![CDATA[Do you really know named return value in Golang ?]]>https://work.yba.dev/do-you-really-know-named-return-value-in-golanghttps://work.yba.dev/do-you-really-know-named-return-value-in-golangSun, 02 Oct 2016 00:00:00 +0000Intro Recently, I'm writing some golang tools and have found that functions of golang have a feature called named return value, which cannot be found in other common programming languages like Python, Javascript or Java. It cannot also be e......

READ MORE

]]>