raynix 筆記

raynix 筆記

  • Home
  • WordPress Hosting
  • Side Quests
Illustration of a bird flying.
  • Solved: Couldn’t Pick Correct Python Version in VS Code in Fedora Linux

    TL; DR: The VS Code was installed via flatpak. I purged it and re-installed it the normal way then the problem went away 🙂

    August 10, 2023
    Free software
    Fedora, VSCode
  • An Admin-Only Python Decorator for Telegram Bots

    TL; DR: Here’s a Python Decorator I wrote for Telegram Bots so certain commands can only be used by group admins.

    June 30, 2023
    Opensource, Python & Frameworks
    Python, Telegram
  • Solved: Blank Screen After Login in Gnome Shell 44

    Background: I have an old desktop computer running Fedora 36 + Gnome Shell desktop environment and upgraded to 38 recently. It was used as an archive so I left it in garage and only connect to it vis SSH or VNC. Now I moved it into my home office because I think it can act…

    June 28, 2023
    Opensource
    Gnome Shell, VNC
  • Terraform: String Manipulation for Default Domains

    Imaging when I needed to grant access to a Google storage bucket for a list of Google service accounts, I put the list in YAML like this: Assuming horizon is the default GCP project and mass-effect is a partner project and most GSAs are of course from the default project. So can this list be…

    June 16, 2023
    Systems Admin
    GCP, Terraform
  • How to Replace Characters in MongoDB

    TL; DR: As of MongoDB 6.0, this is how I learned to replace some characters in a field in all documents. In the example below all “.” characters in field_name will be replaced by “_” character: The backstory is when using MongoDB with MongoEngine, there’s an issue when a key in a dictionary field contains…

    May 30, 2023
    Systems Admin
    MongoDB
  • How to Sort Lines in YAML

    I asked myself this question and it turns out that I don’t need to write a script to do this, yq has the answer already. More on array sorting and map sorting 🙂

    April 28, 2023
    Opensource
    yaml
  • Sample Terraform Code to Manage Temporary Access to GCP

    TL; DR: This is a way to grant a temporary access to some GCP resources using Terraform’s time_static and google_project_iam_member resources. 🙂

    April 20, 2023
    Systems Admin
    GCP, IAM, Terraform
  • Solved: Uninstallation of config-connector Got Stuck in ArgoCD

    The Kubernetes Config Connector is another level of IaC(Infrastructure as Code): It wraps Google Cloud resources like a Cloud Load Balancer with Kubernetes CRDs(Custom Resource Definition) so instead of writing Terraform HCL I can write YAML to manage GCP infrastructure. However when there’s a need to uninstall a config-connector, it got stuck in ArgoCD As…

    April 11, 2023
    Systems Admin
    ArgoCD, kubernetes
←Previous Page
1 … 6 7 8 9 10 … 110
Next Page→
  • Eric Lin’s Blog
  • Eddie Wang’s Blog at WP
  • GoalKeeper’s Blog

raynix 筆記

Just another WordPress blog

  • Facebook
  • Twitter
  • Instagram

Proudly powered by WordPress