Skip to content

Instantly share code, notes, and snippets.

View lamngockhuong's full-sized avatar

Lâm Ngọc Khương lamngockhuong

View GitHub Profile
@lamngockhuong
lamngockhuong / README.en.md
Last active September 15, 2026 15:13
herdr-nvim-ctl — xem, tìm và dọn các tiến trình nvim ẩn mà plugin herdr-nvim giữ sau mỗi tab Herdr (hướng dẫn tiếng Việt)

herdr-nvim-ctl

🇬🇧 English · 🇻🇳 Tiếng Việt

A small CLI for inspecting and cleaning up the hidden nvim processes that the herdr-nvim plugin keeps alive behind every tab in Herdr.

The problem

@lamngockhuong
lamngockhuong / check-disk-usage.sh
Created May 13, 2025 07:22
A handy interactive Bash script to inspect and optionally clean up disk space used by common development tools and system caches on Ubuntu (or any Linux system).
#!/bin/bash
GREEN="\e[32m"
RED="\e[31m"
YELLOW="\e[33m"
CYAN="\e[36m"
NC="\e[0m"
echo -e "${YELLOW}📦 Checking disk usage of common development folders...${NC}"
echo
@evgenyneu
evgenyneu / setup_cursor_ubuntu.md
Last active September 9, 2026 10:12
Install Cursor AI code editor on Ubuntu 24.04 LTS

Install Cursor AI editor on Ubuntu 24.04

  1. Use the Download button on www.cursor.com web site. It will download the NAME.AppImage file.

  2. Copy the .AppImage file to your Applications directory

cd ~/Downloads
mkdir -p ~/Applications
mv NAME.AppImage ~/Applications/cursor.AppImage
@lamngockhuong
lamngockhuong / disable-merge-for-github-pr.userscript.js
Last active January 10, 2026 02:41
Disable Regular/Squash Merge for GitHub Pull-Request
// ==UserScript==
// @name Disable Merge for GitHub PR
// @namespace https://gist.github.com/search?q=user%3Alamngockhuong+filename%3Auserscript+language%3Ajs&ref=searchresults
// @version 0.7
// @description Automatically disable regular/squash merge on target branch for GitHub PRs
// @icon64 data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAD3VJREFUeF7VWwlwlFWe/70vFzkgJIQg35c0kXNlSllELrlmpsRVyiqMHAXWOu6MirI4HngMusiMyjVlFBhWQXSgGGfd4giLU86wqDUFKETEUDgKu8iZ4+tIEnKQgxydfuvvdX9NJ+nufF+n2XX/VV2B7nf+3v9+/ydwnemsrucmCDFZAmM0KW+SQB6EGCSk7A8gyT99K4SohZSXhBAXJfDfGnACQFGOaZZfzyWKWA8uAVE6ePAUTdPmSilnQYgRvZzjDIA/Syl3u9zuIwKQvRyvU/eYAVDicmXA41kkhHgEwDBrFpGcjKTx45F4yy2IHzZMfeIGDoSWlgaRlqaaycZGeBsb0VFVBc/Zs/CcO4e2r79G67FjkFevBhYsgLNeKd9BfPw7Q0pLa2MBRK8BKMvJyYTX+7wElkAItSNtwACk3HsvUmbNQuLYsRCJiVGtVba1oe34cTTv24fmvXvhvXzZGqcRwEYhREFueXlNVIP7O0UNgAS0El3/Z02IlwFkcrykiRPR97HH0OcnP4GIj+/Nurr1lR4PWv76VzRs3ozWL76wfq+BlCty3e5NAvBGM2FUAJi6PqpDiO0AJqqNT5qE9OeeUwCEotbWVrS0tIB/
@lelinhtinh
lelinhtinh / type-vietnamese-on-ubuntu.md
Last active September 25, 2026 15:43
Gõ Tiếng Việt trong Ubuntu

Gõ Tiếng Việt trong Linux

Ghi chú cách dùng IBus Bamboo để gõ Tiếng Việt mà không bị lỗi gạch chân như các bộ gõ khác.

Cài đặt

sudo add-apt-repository ppa:bamboo-engine/ibus-bamboo
sudo apt-get update
sudo apt-get install ibus ibus-bamboo --install-recommends
@tanaikech
tanaikech / submit.md
Last active August 11, 2026 15:38
Downloading Shared Files on Google Drive Using Curl

Downloading Shared Files on Google Drive Using Curl

When the shared files on Google Drive is downloaded, it is necessary to change the download method by the file size. The boundary of file size when the method is changed is about 40MB.

File size < 40MB

CURL

filename="### filename ###"
fileid="### file ID ###"
curl -L -o ${filename} "https://drive.google.com/uc?export=download&amp;id=${fileid}"