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
  • 15:31 (UTC +07:00)
View GitHub Profile
@chetanppatil
chetanppatil / install-postman.sh
Last active June 10, 2023 17:11
Install Native Postman On Linux
#!/bin/bash
# Download Postman
cd /tmp || exit
echo "Downloading Postman..."
wget -q https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz
# Extract and install Postman to /opt
echo "Extracting and installing to /opt..."
sudo tar -xzf postman.tar.gz -C /opt/
@jchook
jchook / unicode.js
Last active December 24, 2022 06:34
JavaScript UTF-8 Helpers
/**
* Convert a string to a unicode byte array
* @param {string} str
* @return {Array} of bytes
*/
export function strToUtf8Bytes(str) {
const utf8 = [];
for (let ii = 0; ii < str.length; ii++) {
let charCode = str.charCodeAt(ii);
if (charCode < 0x80) utf8.push(charCode);
@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

@jasny
jasny / sha256-hmac.md
Last active July 16, 2025 12:32
Hashing examples in different languages

Example inputs:

Variable Value
key the shared secret key here
message the message to hash here

Reference outputs for example inputs above:

| Type | Hash |

@cilf
cilf / Dockerfile
Last active April 19, 2025 03:00
Adminer MongoDB docker image
FROM adminer:4.7.1
# WATCH OUT WHEN UPGRADING, THE SED BELOW MIGHT STOP WORKING
MAINTAINER [email protected]
USER root
RUN apk add autoconf gcc g++ make libffi-dev openssl-dev
RUN pecl install mongodb
RUN echo "extension=mongodb.so" > /usr/local/etc/php/conf.d/docker-php-ext-mongodb.ini
@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 / 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
@brifiction
brifiction / index.html
Last active January 12, 2025 16:08
Medium-like Highlighting Tools Component
<div id="app">
<highlightable
@share="onShare"
@highlight="onHighlight"
>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eveniet at debitis deserunt, optio rem eaque obcaecati non possimus nisi assumenda architecto exercitationem dolore quo praesentium, deleniti reiciendis sed ab nihil!
</p>
</highlightable>
<p>
@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 / lamp-win.md
Last active March 15, 2020 08:23
Cài đặt LAMP server trong WSL

Cài đặt LAMP server trong WSL

Cài đặt Ubuntu

Kích hoạt WSL (Windows Subsystem for Linux) bằng cách mở PowerShell với quyền Admin (Run as administrator), và chạy lệnh:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Khởi động lại máy.