Yet Another Needless Site

  • About Me

Stop /etc/resolv.conf from being updated automatically

Carrot 2023-11-18

Recently I realized that my changes to /etc/resolve.conf always got overwritten upon system reboot, after searching the web for a while I found the solution from StackExchange: Ubuntu 16.04 IfContinue reading

My first take on C++ coroutines

Carrot 2022-06-26

In this post I’ll go through the disassembly (commented inline) of the following C++ snippet: #include <concepts> #include <coroutine> class task { public: class promise_type { public: class always_suspend {Continue reading

Restart nginx on failure endlessly on Debian

Carrot 2022-06-21

Today my server experienced an outage and restarted automatically. However, my blog didn’t go online after that. With a little invesitgation it immediately got obvious that the nginx failed toContinue reading

Packing / unpacking FP32s as BFloat16s with AVX2 (truncating)

Carrot 2022-01-16

FP32 can be converted to BFloat16 simply by truncating the lower 16 bits. So we can do this with some bit operations. Internally two sets of FP32s (i.e., elements inContinue reading

Build Linux 5.10 LTS for Phicomm N1

Carrot 2021-09-03

Recently I built Linux 5.10 LTS for my N1 box. Below are the patches I needed during the building process. TEXT_OFFSET Obsolete: See comments from justin below, it’s no longerContinue reading

Patch for blocking Thunder in transmission 3.00

Carrot 2021-08-30

I wrote a blog about blocking Thunder in tranmission-daemon 2.94. The patch does not apply cleanly on Transmission 3.00, so I update it here: — a/libtransmission/peer-mgr.c 2021-08-31 03:10:20.435836776 +0800 +++Continue reading

Decrease reload interval of transmission-web-control

Carrot 2021-08-30

By default transmission-web-control forces a default reload interval of 5 seconds, and a minimum of 3 seconds. As I’m not that into reducing bandwidth, I overrode the default behavior. DefaultContinue reading

`smartctl` does not work correctly for USB-HDD on Phicomm N1

Carrot 2021-06-26

This seems to relate to a kernel change in 3.15. To workaround it I have to prevent UAS driver from binding to my HDD drive by setting usb-storage.quirks. Unfortunately, solutionContinue reading

Accelerate base64 encode using AVX2

Carrot 2021-05-22

Sort of an excersise.. The four LUTs for converting numeric values to ASCII chars is ugly. Besides, since both _mm256_shuffle_epi8 and _mm256_blendv_epi8 suffers from low throughput (1 CPI / 2Continue reading

Use address in “Routed IPv6 Prefixes” as default outbound address when using HE.net’s tunnel broker

Carrot 2019-12-01

By default Linux (randomly?) chooses “Client IPv6 Address” (given by HE.net) as source address for outbound connections. This can be inconvenient sometimes tough. To override this, it’s possible to addContinue reading

Posts pagination

1 2 3 … 7 »
Recent Posts
  • Stop /etc/resolv.conf from being updated automatically
  • My first take on C++ coroutines
  • Restart nginx on failure endlessly on Debian
  • Packing / unpacking FP32s as BFloat16s with AVX2 (truncating)
  • Build Linux 5.10 LTS for Phicomm N1
Categories
  • Linux
  • N1
  • Network
  • Programming
  • Router
  • U-Boot
  • Uncategorized
  • VPS
  • Website
Recent Comments
  • Carrot on Boot Phicomm N1 without emmc_autoscript / s905_autoscript
  • Carrot on Boot Phicomm N1 without emmc_autoscript / s905_autoscript
  • Justin on Boot Phicomm N1 without emmc_autoscript / s905_autoscript
  • Justin on Boot Phicomm N1 without emmc_autoscript / s905_autoscript
  • Anonymous on Boot Phicomm N1 without emmc_autoscript / s905_autoscript
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright 2025 Yet Another Needless Site | Designed by CodeGearThemes

Powered by WordPress