Skip to content

Instantly share code, notes, and snippets.

View ngocleek's full-sized avatar
🎯
Focusing

Ryan Le ngocleek

🎯
Focusing
View GitHub Profile
@ngocleek
ngocleek / gist:edcfae8644c64f884df790a60b7f9132
Last active April 20, 2025 15:36
Auto Click Visible tl-completed-unit-handles
// ==UserScript==
// @name Auto Click Visible tl-completed-unit-handles
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Clicks on .tl-completed-unit-handles when it becomes visible, even after a long delay
// @author You
// @match *://*/*
// @grant none
// ==/UserScript==
@ngocleek
ngocleek / playlist.m3u
Last active February 19, 2025 04:03
M3U Playlist for xTeVe
<?xml version="1.0" encoding="UTF-8"?>
<tv>
<channel id="channel1">
<display-name>Saigon TV</display-name>
</channel>
<programme start="20250219T040023 +0000" stop="20250220T040023 +0000" channel="channel1">
<title>Live Program</title>
<desc>This is a live program.</desc>
<live>true</live>
</programme>
@ngocleek
ngocleek / playlist.m3u
Last active February 19, 2025 04:03
M3U Playlist for xTeVe
#EXTM3U
#EXTINF:-1, Saigon TV
http://tna5.tulix.tv/live/07286e18a0d8814c7984a0273eb16513/67b6a998/vchannel2.m3u8
#EXTINF:-1, Vietoday Television
http://tna5.tulix.tv/live/06522737fea386204b8a665597728ca9/67b6a999/vchannel1.m3u8
#EXTINF:-1, VSTV
http://tna5.tulix.tv/live/06522737fea386204b8a665597728ca9/67b6a999/vchannel3.m3u8
#EXTINF:-1, SET TV
http://tna6.tulix.tv/live/06522737fea386204b8a665597728ca9/67b6a999/vchannel16.m3u8
#EXTINF:-1, Viet Channels Info
@ngocleek
ngocleek / contemplative-llms.txt
Created January 10, 2025 07:29 — forked from Maharshi-Pandya/contemplative-llms.txt
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference

Using Badblocks to check new drive

  1. Locate the drive's device ID using the lsblk command
  2. Check the recommended block size using the command blockdev --getbsz /dev/<YOUR BLOCK DEVICE ID>
  3. Note the block size you got from the last command
  4. Have you ensured that the USB device does NOT have any important data on it? Running the specific badblocks command we'll use will destroy data on the drive!
  5. Fire up a new tmux session tmux new -s badblocks_<YOUR BLOCK DEVICE ID>
  6. Run the command badblocks -t random -w -s -b <YOUR BLOCKSIZE GOES HERE> /dev/<YOUR BLOCK DEVICE ID>
  7. Disconnect from the session by pressing CTRL+b then d
  8. Reconnect to the session to check on it by using tmux attach-session -t badblocks_
@ngocleek
ngocleek / playlist-tv.m3u
Last active October 29, 2023 21:07
playlist-tv.m3u
#EXTM3U url-tvg="https://gist.github.com/ngocleek/ec8b1faea638f15c3aabe7eed294e991/raw/haingoaitv.epg.xml"
#EXTINF:-1 group-title="Vietoday TV" tvg-logo="https://www.giniko.com/logos/190x110/921.png", Vietoday TV
http://192.168.50.221:34401/?regex=playfp2\(%27(.*?)%27,%27(.*?)%27,%27(.*?)%27\)&regexIndex=2&url=https://www.vietchannels.com/watch2.php?id=510
#EXTINF:-1 group-title="Little Saigon TV" tvg-logo="https://littlesaigontv.com/wp-content/uploads/2020/04/LSTV-LOGO-1.jpg", Little Saigon TV
https://media.streambrothers.com:1936/8228/8228/chunklist_w1396658220.m3u8
#EXTINF:-1 group-title="Saigon TV" tvg-logo="https://www.giniko.com/logos/190x110/922.png", Saigon TV
http://192.168.50.221:34401/?regex=playfp2\(%27(.*?)%27,%27(.*?)%27,%27(.*?)%27\)&regexIndex=2&url=https://www.vietchannels.com/watch2.php?id=426