Skip to content

Instantly share code, notes, and snippets.

View trungnt13's full-sized avatar
:octocat:
Coding, coding, ... and still coding

Trung Ngo trungnt13

:octocat:
Coding, coding, ... and still coding
View GitHub Profile
@trungnt13
trungnt13 / convert_cursor_keybindings_windows.py
Created May 3, 2026 07:09
convert_cursor_keybindings_windows.py
#!/usr/bin/env python3
import argparse
import json
from pathlib import Path
DEFAULT_SOURCE = Path("/Users/trungnt13/Library/Application Support/Cursor/User/keybindings.json")
DEFAULT_OUTPUT = Path("/Users/trungnt13/Downloads/keybindings.windows.json")
@trungnt13
trungnt13 / Cursor.md
Last active May 3, 2026 07:21
Cursor

Cursor

Keybindings Windows

[
  {
    "key": "alt+1",
    "command": "workbench.action.focusFirstEditorGroup"
  },
@trungnt13
trungnt13 / Mac Disable Default Hotkeys.sh
Last active October 14, 2024 08:50
Mac Disable Default Hot Key
#!/bin/bash
# Disable Shift + Command + D
defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 70 '<dict><key>enabled</key><false/></dict>'
@trungnt13
trungnt13 / Cursor Keyboard Mac.json
Last active October 13, 2024 20:28
Cursor Keyboard Mac
[
///////////////////////////////////// Cursor
{
"key": "ctrl+=",
"command": "aichat.close-sidebar",
},
{
"key": "cmd+backspace",
"command": "editor.action.inlineDiffs.cancelPromptBar",
"when": "editorTextFocus && hasActivelyGeneratingPromptBarDiff"
@trungnt13
trungnt13 / VSCode Keyboard Mac.json
Last active October 14, 2024 07:41
VSCode Keyboard Mac
[
// TODO:
// "cmd+t" is empty
{
"key": "cmd+v",
"command": "workbench.action.terminal.paste",
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
},
{
"key": "cmd+c",
@trungnt13
trungnt13 / xrandr.sh
Created September 13, 2024 22:40 — forked from debloper/xrandr.sh
Add system unrecognized but monitor supported resolution in X
#!/bin/bash
# Copyright (c) 2021 Soumya Deb <debloper@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@trungnt13
trungnt13 / example.rs
Created April 21, 2024 11:53 — forked from emmatyping/example.rs
Example using pickling in pyo3
#![feature(arbitrary_self_types)]
use pyo3::prelude::*;
use pyo3::pyclass::PyClassShell;
use pyo3::types::{PyBytes, PyTuple};
use pyo3::ToPyObject;
use bincode::{deserialize, serialize};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
@trungnt13
trungnt13 / UbuntuLinux.md
Last active December 24, 2023 09:01
[CheatSheet] Ubuntu Linux
@trungnt13
trungnt13 / tmux_linux.conf
Last active April 10, 2026 09:07
tmux_linux.conf
# tmux.conf for Linux — multi-agent coding sessions
# v4 — 10Apr26
# v3 — 17Feb26
#
# ╭─────────────────────── QUICK START ───────────────────────╮
# │ │
# │ INSTALL: │
# │ brew install tmux │
# │ cp tmux_macos.conf ~/.tmux.conf │
# │ tmux source-file ~/.tmux.conf # reload if running │