Skip to content

Instantly share code, notes, and snippets.

View ikakey's full-sized avatar

Ika Key ikakey

View GitHub Profile
@Manojbhat09
Manojbhat09 / extract_conversations_prompts.py
Created April 14, 2025 08:56
Cursor SQLite Data Extractor: Windows Conversations and Prompts. Python scripts to scan SQLite database files (`state.vscdb` and `state.vscdb.backup`) used by Cursor for extracting conversation history and text-based prompts. If conversation data is not available, the scripts fall back to extracting prompts (e.g., `textDescription` fields). Outp…
#!/usr/bin/env python3
# wsl
import sqlite3
import json
from pathlib import Path
from datetime import datetime
# path to WorkspaceStorage on Windows or any paths with folders and state.vscdb inside
ENTRY_PATH="/mnt/c/Users/manoj/AppData/Roaming/Cursor/User/workspaceStorage"
@firexcy
firexcy / readme.md
Last active July 26, 2025 06:41
DIY a Rewind.ai

This Gist provides a solution to periodically capture screenshots of your Mac, and create therefrom a searchable PDF archive so that you can always get an answer to the “what, when, and where” questions about your usages.

To use these scripts:

  1. Download the shell script rewind, then:
    1. put it under ~/bin (or other fixed path you prefer);
    2. execute
@thesuhu
thesuhu / how-to-build-and-install-latest-curl-version-on-centos.md
Last active March 26, 2025 15:19
How to Build and Install Latest cURL Version CentOS

How to Build and Install Latest cURL Version on CentOS

# Written by The Suhu (2021).

# Tested on CentOS 7 and CentOS 8

Previously I've written about How to Build and Install Latest cURL Version on Ubuntu. In this article in this article explain how to build and install latest cURL version on CentOS.

@AlecSchneider
AlecSchneider / python_on_iphone.sh
Last active November 18, 2024 16:18
How to install apk and Python on your iPhone using the iSH Shell
cd
# you can do this all in one command
wget -qO- http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86/apk-tools-static-2.10.5-r1.apk | tar -xz sbin/apk.static && ./sbin/apk.static add apk-tools && rm sbin/apk.static
apk add python3
@proxium
proxium / Whatsapp-Android-To-iOS-Importer.md
Last active January 10, 2025 11:26
How do I transfer WhatsApp from Android to iOS without phone rooting? [verified method 24-Oct-2020]

Initially based on https://github.com/residentsummer/watoi

Migrate Whatsapp chats history from Android to iOS.

Caveats

Media files and shared locations are not imported (got placeholders instead)

Messages from contacts that changed ids (phone numbers) are not linked

@daehahn
daehahn / wsl2-network.ps1
Last active September 28, 2025 12:00
WSL 2 TCP NETWORK FORWARDING
# WSL2 network port forwarding script v1
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell,
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter.
# written by Daehyuk Ahn, Aug-1-2020
# Display all portproxy information
If ($Args[0] -eq "list") {
netsh interface portproxy show v4tov4;
exit;
}
@vortex7
vortex7 / fastapi-install.sh
Last active March 22, 2024 16:30
FastAPI Linux Install
apt install --yes python3
apt install --yes python3-pip
pip3 install fastapi
pip3 install uvicorn
@MarioHewardt
MarioHewardt / enable_ebpf_on_wsl2
Last active August 18, 2025 11:48
Enable EBPF on WSL2
By default, EBPF programs will not run on WSL2 due to required kernel modules missing. The following example error is an
indication of this problem:
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.19.84-microso
ft-standard/modules.dep.bin'
modprobe: FATAL: Module kheaders not found in directory /lib/modules/4.19.84-microsoft-standard
chdir(/lib/modules/4.19.84-microsoft-standard/build): No such file or directory
To fix this you need to rebuild the WSL2 kernel with the missing kernel modules. The below instructions are for Ubuntu 18.04 WSL2.
1. git clone https://github.com/microsoft/WSL2-Linux-Kernel.git
@bakura10
bakura10 / microdata-schema.liquid
Last active July 21, 2025 07:34
This is the last microdata-schema for our Shopify themes
{%- comment -%}
This snippet structures the micro-data using JSON-LD specification. Please note that for Product especially,
the schema often changes. We try to output as much info as possible, but Google may add new requirements over time,
or change the format of some info
LAST UPDATE: May 10th 2023 (we added the "hasMerchantReturnPolicy" and "shippingDetails" to include the shipping and
return policy if they have been specified as store policies).
{%- endcomment -%}
{%- if request.page_type == 'product' -%}