Skip to content

Instantly share code, notes, and snippets.

@jalakoo
jalakoo / docker_cli_example.txt
Created February 5, 2026 07:37
Neo4j Docker CLI Command - For running in terminal for a basic instance w/ persistent data folders
docker run \
--name neo4j-docker \
-p 7474:7474 -p 7473:7473 -p 7687:7687 \
-e NEO4J_AUTH=neo4j/password \
-e NEO4J_PLUGINS='["apoc","apoc-extended", "bloom","graph-data-science","genai"]' \
-e NEO4J_ACCEPT_LICENSE_AGREEMENT=yes \
-v $HOME/neo4j/docker/data:/data \
-v $HOME/neo4j/docker/logs:/logs \
-v $HOME/neo4j/docker/plugins:/plugins \
@jalakoo
jalakoo / docker-compose.yml
Created February 5, 2026 07:35
Sample Neo4j Docker Compose File - includes volumes for persistent data
services:
neo4j:
image: neo4j:2025.09.0-enterprise-bullseye
container_name: neo4j
restart: unless-stopped
ports:
- "7474:7474" # Neo4j Browser (HTTP)
- "7473:7473" # Bloom (HTTPS)
- "7687:7687" # Bolt protocol
environment:
@jalakoo
jalakoo / move2japan_default_config.json
Created November 24, 2025 23:00
move2japan default config
[
{
"name": "Moving to Japan from the US",
"description": "A comprehensive guide for relocating from the United States to Japan, covering visa requirements, financial planning, housing, and cultural integration",
"iso_639_1": "en",
"icon_url": "",
"image_url": "",
"updated_at": "2024-11-24T00:00:00Z",
"tasks": [
{
@jalakoo
jalakoo / move2japan_initial_config.json
Last active November 24, 2025 06:12
move2japan initial config
[
{
"Moving to Japan from the US": [
{
"Phase 1: Before Moving (3-6 months before)": [
{
"Visa and Legal": [
{
"name": "Determine the correct visa type and obtain Certificate of Eligibility (COE)",
"links": [
@jalakoo
jalakoo / move2japan_from_us.json
Last active November 24, 2025 05:55
move2japan test json
{
"Moving to Japan from the US": {
"Phase 1: Initial Planning & Legal Requirements (6-12 months before)": {
"Visa and Immigration": {
"tasks": [
{
"name": "Determine the correct visa type (work, spouse, student, highly skilled professional, etc.)",
"links": [
{
"title": "Ministry of Foreign Affairs of Japan",
@jalakoo
jalakoo / app.py
Created August 23, 2025 15:33
Simple Neo4j GraphRAG Sample App
#!/usr/bin/env python3
"""
Simple Neo4j GraphRAG implementation using OpenAI embeddings and LLM
Installation instructions:
python -m venv venv
source venv/bin/activate
pip install neo4j 'neo4j-graphrag[openai]'
"""
@jalakoo
jalakoo / app.py
Created August 20, 2025 22:33
Neo4j Intro To Python Code
from neo4j import GraphDatabase
# Read-only credentials
URI = "neo4j+s://demo.neo4jlabs.com"
USERNAME = "goodreads"
PASSWORD = "goodreads"
DATABASE = "goodreads"
def main(query, params):
with GraphDatabase.driver(URI, auth=(USERNAME, PASSWORD)) as driver:
@jalakoo
jalakoo / create_data_with_prompts.md
Created May 30, 2025 01:13
Prompts to create synthetic graph data with Claude Desktop + Neo4j Cypher MCP

Setup & Add Products

Lets create some data to my neo4j database.

Add a list of 6 Products for a smart glasses company with the properties:
- id (integer starting from 1)
- name (a simple name of the product)
- msrp_usd (sale price of the product in USD)
@jalakoo
jalakoo / csv_prompts.md
Created May 21, 2025 22:06
Sample LLM Prompts for creating interconnected .csv data

Agents

Generate a .csv listing 6 customer service agents with the following column headers: id (single integer starting with 1), name, email, bio (short description of professional history and technical background), hired_at (use an ISO 8601 compatible datetime string for UTC / GMT 0)

Customers

Generate a .csv listing 12 customers with the following column headers: id (single integer starting with 1), name, email, customer_since (use an ISO 8601 compatible datetime string for UTC / GMT 0)

Tickets

Generate a .csv listing 24 customer tickets detailing issues clients are having with a company's software product. Use the following column headers: id (single integer starting with 1), title, content (short description of problem), customer_id (random integer between 1 and 12 using normal distribution / bell curve), assiged_to (random integer between 1 and 6 with a normal / bell curve distribution), opened_at (use an ISO 8601 compatible datetime string for UTC / GMT 0), resolved_at (use an ISO 8601 compat

@jalakoo
jalakoo / app.py
Created May 13, 2025 03:30
BAML to Graph Data Example
import streamlit as st
from st_cytoscape import cytoscape
from baml_client import b
import json
# Set page config
st.set_page_config(layout="wide")
def process_graph_result(result):
"""Convert BAML graph result to cytoscape elements format"""