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
  • 10:34 (UTC +07:00)
View GitHub Profile
@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
@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 / 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.
@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
@jasny
jasny / sha256-hmac.md
Last active December 12, 2023 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 |

@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

@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);
@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/
@riad-uk
riad-uk / Tidal_Tokens
Created January 4, 2018 11:28
Tidal Dev tokens for 3rd Party apps
browser = 'wdgaB1CilGA-S_s2' # Streams HIGH/LOW Quality over RTMP, FLAC and Videos over HTTP, but many Lossless Streams are encrypted.
android = 'kgsOOmYk3zShYrNP' # All Streams are HTTP Streams. Correct numberOfVideos in Playlists (best Token to use)
ios = '_DSTon1kC8pABnTw' # Same as Android Token, but uses ALAC instead of FLAC
native = '4zx46pyr9o8qZNRw' # Same as Android Token, but FLAC streams are encrypted
audirvana = 'BI218mwp9ERZ3PFI' # Like Android Token, supports MQA, but returns 'numberOfVideos = 0' in Playlists
amarra = 'wc8j_yBJd20zOmx0' # Like Android Token, but returns 'numberOfVideos = 0' in Playlists
# Unkown working Tokens
token1 = 'P5Xbeo5LFvESeDy6' # Like Android Token, but returns 'numberOfVideos = 0' in Playlists
token2 = 'oIaGpqT_vQPnTr0Q' # Like token1, but uses RTMP for HIGH/LOW Quality
token3 = '_KM2HixcUBZtmktH' # Same as token1