Skip to content

Instantly share code, notes, and snippets.

View lelinhtinh's full-sized avatar
🤤
Slimming failure

Thành Thân Thiện lelinhtinh

🤤
Slimming failure
  • Da nang, Vietnam
  • 23:23 (UTC +07:00)
View GitHub Profile
@lelinhtinh
lelinhtinh / multi-processes.sh
Last active September 22, 2019 16:53
Chạy nhiều tiến trình cùng lúc
#!/bin/bash
cd ~/mmm/announcement;npm start & \
cd ~/mmm/jEpub;npm start
@lelinhtinh
lelinhtinh / del-ubuntu.md
Last active June 30, 2025 11:30
Những tùy chỉnh và ứng dụng Ubuntu mình đang dùng
@lelinhtinh
lelinhtinh / type-vietnamese-on-ubuntu.md
Last active August 8, 2025 08:58
Gõ Tiếng Việt trong Ubuntu

Gõ Tiếng Việt trong Linux

Ghi chú cách dùng IBus Bamboo để gõ Tiếng Việt mà không bị lỗi gạch chân như các bộ gõ khác.

Cài đặt

sudo add-apt-repository ppa:bamboo-engine/ibus-bamboo
sudo apt-get update
sudo apt-get install ibus ibus-bamboo --install-recommends
@lelinhtinh
lelinhtinh / grant-none-shim.js
Created September 8, 2019 08:19 — forked from arantius/grant-none-shim.js
Greasemonkey "@grant none" compatibility shim.
/*
The MIT License (MIT)
Copyright (c) 2014 Anthony Lieuallen
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
@lelinhtinh
lelinhtinh / README-Template.md
Created September 8, 2019 08:19 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@lelinhtinh
lelinhtinh / crontab-wsl.md
Created August 25, 2019 16:32
Sử dụng Crontab trong WSL (Windows Subsystem for Linux)

Crontab trong WSL

Hướng dẫn cài đặt và sử dụng Crontab của Ubuntu trong Windows 10.

Cài đặt Ubuntu

Kích hoạt WSL bằng cách mở PowerShell (Admin) và chạy lệnh:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
@lelinhtinh
lelinhtinh / ebook-reader-pc.md
Last active June 29, 2022 01:19
Một số trình đọc eBook trên máy tính

Một số trình đọc EPUB trên máy tính

Danh sách này chỉ được kiểm nghiệm giới hạn trên Windows 10, và vài distro Linux gồm: Ubuntu (và các distro dựa trên nó), Manjaro (Arch Linux). Các trình đọc dựa trên tiêu chí chính là: hoạt động tốt với eBook lớn (>5MB), và xếp thứ tự theo hiệu suất, tính năng.

* Nên cài thêm font Roboto Slab.

AlReaderX

  • Ưu: Tốt nhất trên Windows, có phiên bản Android, hỗ trợ đồng bộ. Giao diện đẹp, nhiều tùy chỉnh, có chế độ 2 trang, chuyển đổi dark/light.
@lelinhtinh
lelinhtinh / xperia-xz-omni.md
Last active August 26, 2019 12:14
Cách flash OmniROM cho Sony Xperia XZ

OmniROM cho Sony Xperia XZ

Cách truy cập các chế độ

Các chế độ này đều yêu cầu tắt nguồn mới truy cập, tuy nhiên khi thực hiện liên tiếp thì máy luôn tắt nên chỉ cần rút cáp kết nối ra là được.

Flashmode

  • Tắt nguồn điện thoại.
  • Giữ nút giảm âm lượng khi kết nối với máy tính, khi đèn báo trạng thái sáng màu xanh lá là được, thả nút âm lượng ra.
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
@="Edit with VS Code"
"Icon"="C:\\laragon\\bin\\code\\Code.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"C:\\laragon\\bin\\code\\Code.exe\" \"%1\""
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\vscode]
@lelinhtinh
lelinhtinh / lamp-server.md
Last active October 6, 2019 15:56
Ubuntu 18.04 - Apache 2.4 - MySQL 5.7 - PHP 7.2

Cài đặt LAMP trên Ubuntu 18.04

Đầu tiên phải cập nhật hệ thống trước.

sudo apt update && sudo apt upgrade

Cài đặt bằng Tasksel

sudo apt install tasksel

sudo tasksel install lamp-server