Skip to content

Instantly share code, notes, and snippets.

View tudoanh's full-sized avatar

Đỗ Anh Tú tudoanh

View GitHub Profile
@tudoanh
tudoanh / aistudio-gemini-3-pro.md
Last active November 19, 2025 02:43
Compare models

Based on the research, the answer is yes, but it depends on the specific minor version of Rocky Linux 8 you are running.

The "default kernel" for Rocky Linux 8 is version 4.18.0, which is technically older than the official minimum (5.8+) required for the modern eBPF driver. However, Red Hat (and thus Rocky Linux) has extensively backported the necessary BPF features to later updates of this kernel.

Here is the detailed breakdown:

1. It works on recent Rocky Linux 8 versions (e.g., 8.7+)

If you are running a fully updated Rocky Linux 8 system (e.g., 8.7, 8.8, 8.9, or 8.10), the default kernel (currently 4.18.0-5xx) includes the two critical features required for the modern eBPF probe:

  • BTF (BPF Type Format): Enabled in RHEL/Rocky 8 kernels starting roughly around version 8.2/8.3.
  • BPF Ring Buffer: Backported in later RHEL/Rocky 8 releases (verified present in 8.7+ release notes).
/* BootyPrint - A lightweight Bootstrap alternative for WeasyPrint */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-family: sans-serif;
line-height: 1.15;
@tudoanh
tudoanh / models.json
Last active December 3, 2025 08:59
CoFounder Model List
{
"chat_models": {
"gpt-4.1": {
"display_name": "GPT-4.1",
"description": "The top GPT-4.1 model, built for complex tasks. Excellent at following detailed instructions, advanced coding, and understanding very long documents. Choose this for the toughest jobs.",
"litellm_name": "azure/gpt-4.1",
"cli": "opencode"
},
"gpt-5": {
"display_name": "GPT-5",
@tudoanh
tudoanh / hunyuan_test_1.json
Created January 16, 2025 04:24
hunyuan_test_1.json
{
"last_node_id": 83,
"last_link_id": 236,
"nodes": [
{
"id": 16,
"type": "KSamplerSelect",
"pos": [
484,
751
(function() {
'use strict';
function collectUrls() {
const urlPattern = /^https:\/\/www\.linkedin\.com\/company\/[a-zA-Z0-9-]+\/?$/;
const links = document.querySelectorAll('a');
const matchingUrls = [];
links.forEach(link => {
const href = link.href;
@tudoanh
tudoanh / run_llama3.py
Created April 22, 2024 02:54
Run Llama 3 8B with Llamafile
import requests
import subprocess
import os
import signal
def download_file(url, target_path):
response = requests.get(url, stream=True)
with open(target_path, "wb") as f:
for chunk in response.iter_content(chunk_size=8192):
f.write(chunk)
@tudoanh
tudoanh / commands.sql
Created April 4, 2024 00:32 — forked from anhtran/commands.sql
Cách tạo cấu hình cho tiếng Việt trong PostgreSQL (stopwords, ispell)
CREATE TEXT SEARCH DICTIONARY public.vietnamese (
TEMPLATE = pg_catalog.simple,
STOPWORDS = vietnamese
);
CREATE TEXT SEARCH CONFIGURATION public.vietnamese (
COPY = pg_catalog.english
);
ALTER TEXT SEARCH CONFIGURATION public.vietnamese
import pandas as pd
from io import StringIO
import datetime
def to_df(table_data):
df = pd.read_csv(table, delimiter=",")
return df
@tudoanh
tudoanh / bad_words.txt
Last active April 6, 2024 06:29
bad words list
4r5e
5h1t
5hit
a55
anal
anus
ar5e
arrse
arse
ass
@tudoanh
tudoanh / douyin.py
Last active June 3, 2023 09:54
Douyin get video url without watermark
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.common.by import By
def get_douyin_video(url):
options = webdriver.ChromeOptions()
chrome_options = {