Categories
helloworld

kk <3

1108 Days!

Categories
helloworld

CentOS Stream 8 End of Builds: May 31, 2024

According to CentOS blog, after May 31, 2024, CentOS Stream 8 will be archived and no further updates will be provided.

Migration/Upgrade options:

  • Migrate to CentOS Stream 9
  • Convert to RHEL 8, there are no cost licenses for use under some conditions
  • Convert to another operating system in the Enterprise Linux ecosystem. Several projects have derived new operating systems from the CentOS and RHEL sources

However, the conversion tool doesn’t support CentOS Stream:

Conversions from CentOS Stream to RHEL are not currently possible.

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/converting_from_an_rpm-based_linux_distribution_to_rhel/con_supported-conversion-paths_converting-from-a-linux-distribution-to-rhel

This is the error you’ll get when you try convert2rhel

[root@j1 ~]# convert2rhel analyze
convert2rhel command used:
/usr/bin/convert2rhel analyze

[2024-03-21T11:57:08+1100] TASK - [Prepare: Show Red Hat software EULA] ******************************

<...snip...>

Continue with the system conversion? [y/n]: y



[2024-03-21T11:57:10+1100] TASK - [Prepare: Gather system information] *******************************
CRITICAL - Couldn't get system version from the content string: CentOS Stream release 8

Upgrading to CentOS Stream 9 isn’t available so it looks like I’m kinda stuck 🤷🏻‍♀️.

Categories
helloworld

Broken VSCode on Wayland

VSCode would not display any texts on Wayland after updating @world. I wasn’t sure if it was due to recent make.conf changes that I have made so I decided to run VSCode with –verbose.

Errors:
link failed but did not provide an info log
[59556:1108/212153.329478:WARNING:angle_platform_impl.cc(48)] ProgramGL.cpp:989 (checkLinkStatus): Program link or binary loading failed with no info log.
[59556:1108/212153.330630:ERROR:shared_context_state.cc(81)] Skia shader compilation error
------------------------
// Vertex SKSL
#extension GL_NV_shader_noperspective_interpolation: require
uniform float4 sk_RTAdjust;in float2 position;in half4 color;flat out half4 vcolor_S0;void main() {// Primitive Processor QuadPerEdgeAAGeometryProcessor
vcolor_S0 = color;sk_Position = position.xy01;}
// Fragment SKSL
#extension GL_NV_shader_noperspective_interpolation: require
flat in half4 vcolor_S0;void main() {// Stage 0, QuadPerEdgeAAGeometryProcessor
half4 outputColor_S0;outputColor_S0 = vcolor_S0;const half4 outputCoverage_S0 = half4(1);{ // Xfer Processor: Porter Duff
sk_FragColor = outputColor_S0 * outputCoverage_S0;}}
// Vertex GLSL
#version 300 es

Googling “Skia shader compilation error” leads to..

Certain Mesa version updates cause broken shader compilation leading to artifacts in application UI. The issue is tracked in issue #190437, which also contains the link to the Chromium bug report. You can identify this issue by running with --verbose and looking for the following line ERROR:shared_context_state.cc(81)] Skia shader compilation error in the logs. If you are affected by this issue, the current workaround is to delete the GPU cache located at ~/.config/Code/GPUCache.

https://code.visualstudio.com/updates/v1_82#:~:text=You%20can%20identify%20this%20issue,.config%2FCode%2FGPUCache%20.

Deleting GPUCache worked!

❯ rm -rf ~/.config/Code/GPUCache/

Categories
helloworld

Goodbye GentooLTO

https://github.com/InBetweenNames/gentooLTO/issues/883

Lastest portage update removed portageq and finally broke ltoize

Since GentooLTO has been removed from the official Gentoo Overlay, I finally decided to pull the plug as well.

Now that I have updated make.conf, should I rebuid @world?

Categories
helloworld

new domain registrar

Decided to transfer the domain before it gets transfered to Squarespace.

Had some issues with MX record but it looks like transfer has been completed successfully!

Categories
helloworld

redo / undo

vim plugin uses its own redo / undo history that vscode does not keep track of.

For some reason, I kept running into an issue where redo / undo history gets messed up on both vim plugin and vscode.

After some googling, I found coppyC’s solution suited the best for me.

    "vim.normalModeKeyBindingsNonRecursive": [
        {
            "before": ["u"],
            "commands": ["undo"]
        },
        {
            "before": ["<C-r>"],
            "commands": ["redo"]
        }
    ],
Categories
helloworld

u/RusselsTeap0t’s make.conf

CC="clang"
CXX="clang++"
LD="ld.lld"
AR="llvm-ar"
NM="llvm-nm"
RANLIB="llvm-ranlib"
STRIP="llvm-strip"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"

COMMON_FLAGS="-march=native -O3 -fomit-frame-pointer -pipe -mllvm -polly -flto=thin"

CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS} -stdlib=libstdc++"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

LDFLAGS="-stdlib=libstdc++ -fuse-ld=mold -rtlib=compiler-rt -unwindlib=libunwind -Wl,--lto-O3 -Wl,--as-needed"

RUSTFLAGS="-C debuginfo=0 -C codegen-units=1 -C target-cpu=native -C opt-level=3"

clang with polly & mold linker

Categories
helloworld

^a and ^e on vscode with vim extension

  1. Open Keyboard Shortcuts
  2. Unbind extension.vim_ctrl+a and extension.vim_ctrl+e
  3. Rebind cursorHome and cursorEnd
  4. Profit!

Categories
helloworld

lets encrypt

Recently switched the frontend to haproxy as the server was using non-standard ports for flask.

This resulted breaking lets encrypt cert renewal process as the ports used by flask were no longer exposed.

Luckily, Google domain supports DNS text records:

[root@j1 ~]# certbot -d nicewarm.coffee --manual --preferred-challenges dns certonly
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Renewing an existing certificate for nicewarm.coffee

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please deploy a DNS TXT record under the name:

_acme-challenge.nicewarm.coffee.

with the following value:

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Before continuing, verify the TXT record has been deployed. Depending on the DNS
provider, this may take some time, from a few seconds to multiple minutes. You can
check if it has finished deploying with aid of online tools, such as the Google
Admin Toolbox: https://toolbox.googleapps.com/apps/dig/#TXT/_acme-challenge.nicewarm.coffee.
Look for one or more bolded line(s) below the line ';ANSWER'. It should show the
value(s) you've just added.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Press Enter to Continue

Successfully received certificate.
Categories
helloworld

caffeine but python

Uses pyautogui module, works on Mac!

~/flatwhite via 🐍 v3.10.2 (flatwhite) 
❯ cat misc/caffeine.py
import time
from pyautogui import press

while(True):
    press('shift')
    print('shift! \n')
    time.sleep(300)
Categories
helloworld

More wallpapers

wallpapers stolen from Wolfgang’s channel