Skip to content

Instantly share code, notes, and snippets.

@c0b41
c0b41 / gist:92d74b5a2eed703c8e3fb1ddd4482014
Created September 25, 2025 11:03
Clear Stuck Chrome Search Queries: The Manual Database Edit
This guide explains how to manually delete stuck search history entries by editing the Chrome database file using a SQLite editor.
1. Locate the History File
First, ensure Google Chrome is completely closed. Then, find the database file at this path:
C:\Users\$user\AppData\Local\Google\Chrome\User Data\Default\History
(Note: Replace **$user** with your actual Windows username.)
2. Open and Browse the Database
Use a SQLite editor (like DB Browser for SQLite) to open the History file.
@c0b41
c0b41 / clear.sh
Created September 25, 2025 10:58
How to clear github ghost notification
export now=$(date +%Y-%m-%dT%H:%M:%SZ)
export TOKEN=<INSERT GITHUB PERSONAL ACCESS TOKEN HERE>
curl -H "Authorization: bearer $TOKEN" -X PUT -H "Accept: application/vnd.github.v3+json" https://api.github.com/notifications -d '{"last_read_at":"'"$now"'"}'
​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​
​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​