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
  • 03:01 (UTC +07:00)
View GitHub Profile
@lelinhtinh
lelinhtinh / docker-compose.yml
Created June 2, 2017 11:41
Sử dụng Docker để cài đặt Wordpress trên Linux Mint 18
version: "2"
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx:/etc/nginx/conf.d
@lelinhtinh
lelinhtinh / shy-users-finder.js
Created May 25, 2017 18:02
Tìm thành viên không có tên trong nhóm Facebook
if (document.getElementById('fb-memberlist-hidden') === null) {
var head = document.head,
style = document.createElement('style');
style.type = 'text/css';
style.id = 'fb-memberlist-hidden';
style.appendChild(document.createTextNode('._51m-{display:none}.mtm{margin-top:0}'));
head.appendChild(style);
}
function shyUserFinder() {
@lelinhtinh
lelinhtinh / Download-Audio-from-YouTube.md
Last active January 12, 2025 16:41
Tải nhạc từ Youtube dùng Youtube-DL

Tải nhạc từ Youtube

Cài đặt

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo apt install ffmpeg

Sử dụng

@lelinhtinh
lelinhtinh / OpenWithSublimeText3.bat
Last active March 24, 2017 09:08 — forked from roundand/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f
@lelinhtinh
lelinhtinh / fake_random-org.js
Last active May 29, 2022 11:31
F12 > Console (Firefox: Ctrl+Shift+K, Chrome: Ctrl+Shift+J)
(function() {
var setResult = [11, 22, 33, 44, 55, 69],
total = setResult.length,
count = 0,
iframe = document.getElementById('homepage-generator').getElementsByTagName('IFRAME')[0],
iframeDocument = iframe.contentDocument || iframe.contentWindow.document,
generator = iframeDocument.getElementById('true-random-integer-generator-button'),
@lelinhtinh
lelinhtinh / GarenaMinus.bat
Last active August 25, 2017 00:30
Toggle Garena+ Plugin Host Service
:: Open this bat-file to toggle Garena+ Plugin Host Service
:: Written by Zzbaivong - baivong.github.io
:: 24/08/2016
:: Note! Updating the directory path depending on your game folder location
@ECHO OFF
TASKLIST /FI "IMAGENAME eq ggdllhost.exe" 2>NUL | find /I /N "ggdllhost.exe">NUL
@lelinhtinh
lelinhtinh / wp-query-ref.php
Last active March 23, 2017 12:35 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
@lelinhtinh
lelinhtinh / Default (Windows).sublime-mousemap
Last active August 1, 2016 08:33 — forked from kendellfab/goto-sublime
Put in Packages\User
[
{
"button": "button1",
"count": 1,
"modifiers": ["ctrl"],
"press_command": "drag_select",
"command": "goto_definition"
},
{
"button": "button2",
self.addEventListener('message', function (e) {
self.importScripts(e.data.libs);
var zip = new JSZip();
zip.file('Hello.txt', e.data.content);
zip.generateAsync({
type: 'blob'
@lelinhtinh
lelinhtinh / webWorkerInUserscript-withLibs.user.js
Last active June 21, 2025 04:15
Web worker trong Userscript với thư viện đính kèm
// ==UserScript==
// @name Web Worker in Userscript
// @namespace http://baivong.github.io
// @version 2.0.1
// @description Use Web Worker in Userscript with libraries
// @author Zzbaivong
// @match https://github.com/baivong
// @require https://greasyfork.org/scripts/18532-filesaver/code/FileSaver.js?version=128198
// @resource jszip https://greasyfork.org/scripts/19855-jszip/code/jszip.js?version=126859
// @resource worker https://gist.githubusercontent.com/baivong/e8a13c341a4814e726653d1f9fce02c2/raw/75e747879d1fab98708b08112d228e4acd3dec35/worker-withLibs.js