Skip to content

Linuxยค

Linux ate my RAM

Linux is borrowing unused memory for disk caching. This makes it look like you are low on "free" memory, but you are not! Everything is fine!

What is disk caching? It is a way for the operating system to use unused RAM to speed up disk access. When you read a file, Linux will keep it in memory so that if you read it again, it can be accessed much faster.

Read more...

My FOSS

I finally stop running as administrator.

Thank you, FOSS!

As a way to give back to the FOSS community, I have created and maintained a Copr repository for scientific packages, coprs/thangckt/foss, to keep up-to-date builds of various cutting-edge packages for the latest RedHat based distros.

The repository includes even essential daily-use packages, such as mail client, office stuff, to critical scientific applications like Ovito, Zotero, VScodium, SSH client, and many others.

To install the packages, simply enable the Copr repository:

sudo dnf copr enable thangckt/foss
sudo dnf install ovito zotero  # or other packages

Or add repo file:

sudo dnf config-manager addrepo --overwrite --from-repofile=https://copr.fedorainfracloud.org/coprs/thangckt/foss/repo/fedora-44/thangckt-thang_foss-fedora-44.repo
sudo dnf install ovito

Some available packages:

Package Description
ovito Open Visualization Tool for Scientific data visualization and analysis
zotero Reference management software
vscodium Open-source build of Visual Studio Code
zed High-performance, multiplayer code editor built with Rust
freefilesync Folder comparison and synchronization software
freecad Open-source parametric 3D modeling software
gitbutler Modern Git-based version control interface with both a GUI and CLI built from the ground up for AI-powered workflows
rgitui A GPU-accelerated desktop Git client built with GPUI and Rust
github-desktop GitHub desktop client for version control
electerm SSH client and terminal emulator
tailscale A modern, zero-config VPN service built on the WireGuard protocol
remmina Remote desktop client supporting multiple protocols
onlyoffice Open-source office suite for document editing
goldendict-ng A feature-rich dictionary application
helium The Chromium-based web browser with a focus on privacy, unbiased ad-blocking, and minimalism
... ... and more

VSCode extension for LAMMPS script

LAMMPS Script Syntax

A minimal VSCode extension concisely for highlighting LAMMPS input files.

This extension is originally derived from lammps_vscode, which strips off uncommon features to minimizes memory usage and dependencies.

I made it to fit my personal usage and resources. If you need more features, I recommend to use the original one.

Features

  • Highlight the keywords in LAMMPS input files.
  • Recognizes *.lmp, *.lmps, *.lammps, and in.* files as LAMMPS input files.
  • Folding possible between Markers #[ and #]

Extension Settings

  • lammps.AutoComplete.Setting: Controls the behaviour of the autocompletion feature. This setting may influence the performance of the extension.
  • lammps.Hover.Detail: Control the length of the displayed description in the hover popup.
  • lammps.Hover.Enabled: Display command information in a popup when hovering over a command or keyword.
  • lammps.Hover.Examples: Display example usage in the hover popup.

Usage

Syntax Highlighting

VSCode extension for Regular Expression Alignment

Align Regex

This extension is originally based on vscode-align-by-regex

This extension aligns multiple lines of text by regular expressions. It can align anything, e.g., trailing comments, key-value pairs, or any text patterns defined by regular expressions.

Features

  • Align multiple lines of text by regular expressions.
  • Store regular expressions as templates for repeated use.
  • Run alignment from the editor context menu.
  • Support aligning multiple line selections and cursors simultaneously.

Extension Settings

  • align.regex.templates: Templates for regular expressions used for alignment. The default built-in templates are:
    {
        "align.regex.templates": {
            "Multiple signs": "=|,|:",
            "Trailing comments #": "(?<=\\S.*)\\s+#",
            "Trailing comments //": "(?<=\\S.*)\\s+//",
            "Trailing comments %": "(?<=\\S.*)\\s+%",
        }
    }
    

Usage

  • Select multiple lines or multiple cursors
  • Right-click on the editor, and choose Align Regex
  • Select templates or input Regular Expression.

Example 1