Skip to content

Instantly share code, notes, and snippets.

View tridnguyen97's full-sized avatar

Tri Duc Nguyen tridnguyen97

View GitHub Profile
@kupietools
kupietools / Docker Desktop v 4.0.0 thru 4.22.1 direct download links
Last active March 15, 2026 11:31
List of Direct Download links for Docker Desktop from version 4.0.0 released 2021-08-31 thru 4.22.1 released 2023-08-24, as archived on archive.org
@nasingfaund
nasingfaund / tktest.py
Created March 31, 2023 12:39 — forked from dsh0005/tktest.py
Tkinter background threading example
#!/usr/bin/env python3
# encoding=utf-8
# vim: set nobomb:
from tkinter import *
from threading import Thread, Lock, Event
from queue import SimpleQueue
from time import sleep
from typing import List
import random
@liviaerxin
liviaerxin / README.md
Last active February 23, 2026 17:34
FastAPI and Uvicorn Logging #python #fastapi #uvicorn #logging

FastAPI and Uvicorn Logging

When running FastAPI app, all the logs in console are from Uvicorn and they do not have timestamp and other useful information. As Uvicorn applies python logging module, we can override Uvicorn logging formatter by applying a new logging configuration.

Meanwhile, it's able to unify the your endpoints logging with the Uvicorn logging by configuring all of them in the config file log_conf.yaml.

Before overriding:

uvicorn main:app --reload
@JamesDawson
JamesDawson / setup-pyenv-poetry-windows.ps1
Last active December 25, 2024 15:31
Setup python, pyenv-win and poetry on Windows
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[string] $PythonVersion
)
$ErrorActionPreference = "Stop"
$ProgressPreference = "SilentlyContinue"
Set-StrictMode -Version Latest
@JADC362
JADC362 / ROS2DebugVSCode.md
Last active December 14, 2025 16:00
Debug ROS2 C++ node on VSCode (Ubuntu)

Debug ROS2 C++ node on VSCode (Ubuntu)

Description

This is a small tutorial on how to debug a ROS2 C++ node usign VSCode.

Requeriments

This implementation was done using:

@exocode
exocode / Quadcopter.md
Created January 3, 2021 19:55
My personal cheat sheet for UAV FPV and Betaflight. Everything you need!

Quadcopter and Betaflight cheat sheet

Introduction

On my yourney though hundreds of videos, tutorials and manuals (Bardwell, UAV Tech, JohnnyFPV, Mr. Steele, Le Drib, RotorRiot (sorry, for the missed ones) and wrote down their suggestions). This is the result of my notes. It should provide the least necessary but most compressed information to start tuning and setting your Quadcopter. In my case I use the widely spread Taranis X7 remote control.

I am a freestyle pilot, so keep in mind, that these settings are in this scope (more smooth, softer flight behaviour).

Remote Control (Taranis X7)

@Icaruk
Icaruk / multipleGitProfiles.md
Last active February 16, 2026 22:44
How to have multiple profiles on git

Last update: 30-01-2024
Last view: 25-11-2025

Step 1

Go to your work folder, mine is located at: F:/Work/EnterpriseName/

And then create a .gitconfig-work with the following data:

@tigerhawkvok
tigerhawkvok / poetry-convert.py
Last active December 11, 2024 16:22
Convert a requirements.txt file to a Poetry project
#!python3
"""
Convert a requirements.txt file to a Poetry project.
Just place in the root of your working directory and run!
"""
sourceFile = "./requirements.txt"
import re
import os
@bmaupin
bmaupin / free-database-hosting.md
Last active March 11, 2026 06:33
Free database hosting
@tgmarinho
tgmarinho / exercise_of_arrays_foreach_map_filter_reduce.js
Last active March 28, 2024 14:01
Practicing Arrays, ForEach, Map, Filter and Reduce!
// Complete the below questions using this array:
const array = [
{
username: "john",
team: "red",
score: 5,
items: ["ball", "book", "pen"]
},
{
username: "becky",