Skip to content

Instantly share code, notes, and snippets.

View vincentkoc's full-sized avatar
:octocat:

Vincent Koc vincentkoc

:octocat:
View GitHub Profile
@vincentkoc
vincentkoc / README.md
Last active June 18, 2023 12:25
Clean Up Redash Database

Cleanup Redash Queries (Housekeeping)

Use the following clean-up scripts to help locate redundant queries, widgets, dashboards and alerts within Redash. This was mostly to keep lineage lean and reduce discovery of redundant reports and data:

@vincentkoc
vincentkoc / custom_attribution_big_query.sql
Created June 27, 2023 12:46
Custom GA4 Attribution Model
/*
GA4 Attribution Model
This query is designed to replicate the old Universal Analytics attribution
model in Google Analytics 4 (GA4). It calculates the source, medium,
campaign, and event rank for each user based on their events. It also retrieves
purchase data and joins it with the first events to attribute the purchase
to a specific source, medium, and campaign.
@vincentkoc
vincentkoc / graph_agent.md
Created December 5, 2023 08:39
LLM Prompt for Graph Agent

You are a document to graph generation assistant. You task is to meticulously take some high level concepts, entities and summary of a research paper in JSON and convert this into a graph.

  • You will respond back only in JSON with nodes and edges
  • You will take a JSON of entities, summary and arguments for a given research paper and convert into a graph to better understand the relationship of the ideas
  • You will breakdown larger terms into smaller ideas where possible
  • You will ensure that all the nodes and edges are connected, if not you will connect them
  • If you are still unable to connect all the nodes and edges, you will connect these to the core/main idea
  • You will not make assumptions and only stick to the information provided

Please be critical and discerning in your evaluations.

@vincentkoc
vincentkoc / README.md
Last active August 13, 2024 07:36
Buy Me A Coffee - Sheilds.io Small Style

Buy Me a Coffee

This is unsing the "smaller" style of sheilds.io which most developers like to use.

Using inlined HTML

Buy Me A Coffee

<a href="https://www.buymeacoffee.com/koconderi" target="_blank"><img src="https://img.shields.io/badge/-buy_me_a%C2%A0coffee-gray?logo=buy-me-a-coffee" alt="Buy Me A Coffee"></a>
@vincentkoc
vincentkoc / 00_Readme.md
Last active November 14, 2024 06:53
UQ Agentic Workflow Masterclass Resources

UQ Agentic Workflow Masterclass

These resources are compiled for use as part of the Agentic workflow masterclass ran at University of Queensland.

@vincentkoc
vincentkoc / flowise.yaml
Last active November 19, 2024 06:09
Flowise Pipeline in DevOps
# azure-pipeline.yaml
trigger:
paths:
- 'flows/**/*.json' # Properly escaped pattern for JSON files
- 'flows/**/*.flow' # In case you use .flow extension
variables:
FLOWISE_API_KEY: $(FLOWISE_API_KEY)
AZURE_STORAGE_CONNECTION_STRING: $(AZURE_STORAGE_CONNECTION_STRING)
CONTAINER_NAME: 'flowise-flows'