Skip to content

Instantly share code, notes, and snippets.

View ductrung-nguyen's full-sized avatar

Duc Trung NGUYEN ductrung-nguyen

View GitHub Profile
@ductrung-nguyen
ductrung-nguyen / post.md
Created December 29, 2025 06:56 — forked from burkeholland/post.md
Prompt Files vs Custom Instructions vs Custom Agents
layout title date categories permalink
post
We need practical AI workflows
2025-11-17 08:40:00 +0000
posts
/posts/promptfiles-vs-instructions-vs-agents/

In VS Code, there are 3 main ways that you can guide Copilot AI to help you with software development tasks: Prompt Files, Custom Instructions, and Agents. Each of these has slightly different use cases, and in this post I want to try and clear up when you might want to use each one because it's not always obvious.

@ductrung-nguyen
ductrung-nguyen / setup_cursor_ubuntu.md
Created April 20, 2025 22:01 — forked from evgenyneu/setup_cursor_ubuntu.md
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
@ductrung-nguyen
ductrung-nguyen / gist:6c50d3e0634b851d91cdf152e83f1bd8
Created August 22, 2022 08:16
Good way to create a git tag
Good way to create a git tag to keep the commiter date, name and email
#!/bin/bash
tag=$1
echo "Updating $tag"
date=$(git show ${tag}^0 --format=%aD | head -1)
email=$(git show ${tag}^0 --format=%aE | head -1)
name=$(git show ${tag}^0 --format=%aN | head -1)
GIT_COMMITTER_DATE="$date" GIT_COMMITTER_NAME="$name" GIT_COMMITTER_EMAIL="$email" git tag -s -f ${tag} ${tag}^0 -m ${tag}
@ductrung-nguyen
ductrung-nguyen / rcabook-setup.sh
Created April 2, 2021 18:17 — forked from rcubetrac/rcabook-setup.sh
Roundcube LDAP Setup
#!/bin/bash
#------------configuration--------------------------------
# the url of the openldap server
server="ldap://localhost:389";
# the static config file of openldap
config="/etc/ldap/slapd.conf";
# the LDAP base suffix and admin rootdn
@ductrung-nguyen
ductrung-nguyen / clean_audio.sh
Created June 5, 2020 10:12 — forked from devoncrouse/clean_audio.sh
Using Sox (http://sox.sourceforge.net) to remove background noise and/or silence from audio files (individually, or in batch).
# Create background noise profile from mp3
/usr/bin/sox noise.mp3 -n noiseprof noise.prof
# Remove noise from mp3 using profile
/usr/bin/sox input.mp3 output.mp3 noisered noise.prof 0.21
# Remove silence from mp3
/usr/bin/sox input.mp3 output.mp3 silence -l 1 0.3 5% -1 2.0 5%
# Remove noise and silence in a single command
@ductrung-nguyen
ductrung-nguyen / sshtunnel.go
Created June 19, 2018 06:08 — forked from iamralch/sshtunnel.go
SSH tunnelling in Golang
package main
import (
"log"
"bufio"
"time"
"os"
"fmt"
"io"
"net"