Skip to content

Instantly share code, notes, and snippets.

View ngocmanh1609's full-sized avatar

Manh Tran ngocmanh1609

  • Danang, Vietnam
View GitHub Profile
@ngocmanh1609
ngocmanh1609 / docker-compose.yml
Created June 17, 2025 07:23 — forked from hadim/docker-compose.yml
RustDesk and Traefik Docker Compose Configuration
# A minimal configuration to host a RustDesk server with Traefik v3.
#
# This configuration is based on a single Rustdesk container hosting the two hbbr and hbbs services
# instead of running two separate containers as in the official documentation.
# See https://rustdesk.com/docs/en/self-host/rustdesk-server-oss/docker/ for more information.
#
# Pay attention to the comments in the file and adapt the configuration to your needs.
# Once deployed you must configure the Rustdesk client in the Network tab to use the domain
# name of the relay server and the port 21117.
# ID server: DOMAIN_NAME:21116
#Danh sách BLACKLIST dưới đây mình đã sàng lọc, để đảm bảo nó chỉ chặn quảng cáo, không chặn nhầm các domain vô hại.
#Rút gọn từ 5,6 triệu xuống 1 triệu domain:
https://mirror1.malwaredomains.com/files/justdomains
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://raw.githubusercontent.com/bigdargon/hostsVN/master/hosts
https://raw.githubusercontent.com/AdAway/adaway.github.io/master/hosts.txt
https://blocklist.site/app/dl/drugs
https://www.malwaredomainlist.com/hostslist/hosts.txt
https://adaway.org/hosts.txt
https://pgl.yoyo.org/adservers/serverlist.php?
/// For dart 2:
///
/// ```
/// import 'package:tuple/tuple.dart';
///
/// Future<Tuple2<T1, T2>> zipAsync<T1, T2>(
/// Future<T1> future1, Future<T2> future2) async {
/// late T1 result1;
/// late T2 result2;
///
@ngocmanh1609
ngocmanh1609 / launch.json
Created May 17, 2024 08:29
Flutter launch.json file for VSCode
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
// Staging
{
"name": "easyhotel-flutter Staging (debug mode)",
"request": "launch",
@ngocmanh1609
ngocmanh1609 / bg_anti_flash_white_tiny_rounded_corner.xml
Created February 23, 2023 07:26
Create custom scrollbar for recycler view / scroll view
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/anti_flash_white" />
<corners android:radius="@dimen/radius_tiny" />
</shape>
@ngocmanh1609
ngocmanh1609 / remove_tuxera.sh
Created December 30, 2022 09:34 — forked from miguelmota/remove_tuxera.sh
Completely uninstall and remove Tuxera NTFS on MacOS (resets trial version)
sudo rm -rf /Applications/Tuxera\ Disk\ Manager.app
sudo rm -rf /Library/Application\ Support/Tuxera\ NTFS
sudo rm -rf /Library/Filesystems/fusefs_txantfs.fs
@ngocmanh1609
ngocmanh1609 / remove_accents.py
Created December 17, 2022 04:26 — forked from J2TEAM/remove_accents.py
Remove Vietnamese Accents - Xoá dấu tiếng việt in Python
s1 = u'ÀÁÂÃÈÉÊÌÍÒÓÔÕÙÚÝàáâãèéêìíòóôõùúýĂăĐđĨĩŨũƠơƯưẠạẢảẤấẦầẨẩẪẫẬậẮắẰằẲẳẴẵẶặẸẹẺẻẼẽẾếỀềỂểỄễỆệỈỉỊịỌọỎỏỐốỒồỔổỖỗỘộỚớỜờỞởỠỡỢợỤụỦủỨứỪừỬửỮữỰựỲỳỴỵỶỷỸỹ'
s0 = u'AAAAEEEIIOOOOUUYaaaaeeeiioooouuyAaDdIiUuOoUuAaAaAaAaAaAaAaAaAaAaAaAaEeEeEeEeEeEeEeEeIiIiOoOoOoOoOoOoOoOoOoOoOoOoUuUuUuUuUuUuUuYyYyYyYy'
def remove_accents(input_str):
s = ''
print input_str.encode('utf-8')
for c in input_str:
if c in s1:
s += s0[s1.index(c)]
else:
s += c
@ngocmanh1609
ngocmanh1609 / PlayStationBIOSFilesNAEUJP.md
Created November 22, 2022 15:30 — forked from juanbrujo/PlayStationBIOSFilesNAEUJP.md
Files for PlayStation BIOS Files NA-EU-JP
@ngocmanh1609
ngocmanh1609 / convert-mov-to-mp4.md
Created December 27, 2021 03:12 — forked from rudyhuynh/convert-mov-to-mp4.md
Convert MOV to MP4
brew install ffmpeg
ffmpeg -i my-video.mov -vcodec h264 -acodec mp2 my-video.mp4
@ngocmanh1609
ngocmanh1609 / import_and_run.py
Created November 4, 2021 09:35 — forked from santiycr/import_and_run.py
Run python unit tests from a different python script
import unittest
import test_example
unittest.main(module=test_example)