Skip to content

Instantly share code, notes, and snippets.

View rambothanh's full-sized avatar
🎯
Focusing

Nguyen Trong Thanh rambothanh

🎯
Focusing
View GitHub Profile
@rambothanh
rambothanh / xoa_dau.md
Created October 31, 2024 06:39 — forked from phineas-pta/xoa_dau.md
xoá dấu tiếng Việt với Python

xoá dấu tiếng Việt với Python

phương pháp nhanh hơn và không cần cài thêm package

code hoàn chỉnh:

import unicodedata

BANG_XOA_DAU = str.maketrans(
@rambothanh
rambothanh / RPIwithQEMU.md
Created April 14, 2023 02:58 — forked from plembo/RPIwithQEMU.md
Emulating a Raspberry Pi with QEMU

Emulating a Raspberry Pi with QEMU

Goal: Emulate a Raspberry Pi with QEMU in order to run the Raspbian O/S (based on Debian Linux).

The current setup is not ideal. For one thing, the maximum RAM allowed using the "versatile-pb" firmware is 256 Mb. In addition, only the most basic peripherals, a keyboard and mouse, are supported.

A number of articles have been written on this topic. Most are outdated, and the few recent ones are missing key information.

@rambothanh
rambothanh / Nextcloud-Pi3-Setup.md
Created April 13, 2023 01:25 — forked from ronau/Nextcloud-Pi3-Setup.md
Nextcloud on Raspberry Pi 3 Setup

Nextcloud on Raspberry Pi 3 Setup

This manual describes how to setup a Raspberry Pi 3 with nginx, PHP 7.0, MariaDB and use it as a Nextcloud server. Strong TLS encryption with Let's Encrypt certificates is also used. Of course, Owncloud can be used instead of Nextcloud. As of February 2017, the installation instructions are basically the same.

Useful links and knowledge sources for this step-by-step manual

@rambothanh
rambothanh / default.nginx
Created August 4, 2022 06:56 — forked from movibe/default.nginx
Parse Server Nginx default
# HTTP - redirect all requests to HTTPS
server {
listen 80;
listen [::]:80 default_server ipv6only=on;
return 301 https://$host$request_uri;
}
# HTTPS - serve HTML from /usr/share/nginx/html, proxy requests to /parse/
# through to Parse Server
server {