Skip to content

Instantly share code, notes, and snippets.

View nathanp's full-sized avatar

Nathan Parikh nathanp

View GitHub Profile
@nathanp
nathanp / Ghostwriter_Agent.json
Created June 6, 2025 22:08 — forked from paoloanzn/Ghostwriter_Agent.json
Ghostwriter-Agent.json
{
"name": "Ghostwriter Agent",
"nodes": [
{
"parameters": {
"updates": [
"message"
],
"additionalFields": {
"chatIds": "7558641202"
{
"name": "Creative Director Agent",
"nodes": [
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.1,
"position": [
@nathanp
nathanp / AI_research_Agent.json
Created June 1, 2025 03:14 — forked from paoloanzn/AI_research_Agent.json
AI Research Agent n8n Workflow
{
"name": "AI research Agent",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "3b9a89f9-44f5-4759-8e46-eeb418eec7a1",
"options": {}
},
"type": "n8n-nodes-base.webhook",
{
"name": "AI-Business-Agent",
"nodes": [
{
"parameters": {
"mode": "insert",
"tableName": {
"__rl": true,
"value": "documents",
"mode": "list",
@nathanp
nathanp / Convert Custom Taxonomy to Custom Post Type
Created November 10, 2020 05:01 — forked from Strap1/Convert Custom Taxonomy to Custom Post Type
A very hacky and quick way to transfer a Custom Taxonomy to Custom Post Type and transfer associated metadata to Custom Meta Fields. Note: You can use this if it fits your needs, but it is custom to my set up. Use in a testing environment. It's a plugin with no interface, runs on activation and depending on the amount of data, may hit PHP timeou…
<?php
/*
Plugin Name: Convert Custom Taxonomy to Custom Post Type
Plugin URI: N/A
Description: A plugin to convert a Custom Taxonomy to a Custom Post Type and transfer associated metadata.
Version: 0.1
Author: Strap1
Author URI: http:/www.hiphopinenglish.com
/** Convert Taxonomy '%name%' to CPT '%name%' **/
@nathanp
nathanp / modify-post-type.sql
Created November 4, 2019 23:25
WordPress - MySQL - Update Post Types in Database
UPDATE
wp_posts
SET
post_type = 'resources'
WHERE
post_type = 'media'
@nathanp
nathanp / rock-pending-registration-payments.lava
Created May 29, 2019 19:55
Show a user their registrations with pending payments
<div class="panel panel-default">
<div class="panel-heading">Registrations</div>
<ul class="list-group list-group-panel">
{% registration where:'PersonAliasId == {{ CurrentPerson.PrimaryAliasId }}' %}
{% for reg in registrationItems %}
{% if reg.BalanceDue > 0 %}
<li class="list-group-item">
{{ reg.RegistrationInstance.Name }} <br />
Balance due - {{ reg.BalanceDue | FormatAsCurrency }} <br />
<a href="{{ 'Global' | Attribute:'PublicApplicationRoot' }}Registration?RegistrationId={{ reg.Id }}">Complete Payment</a>
{%metricvalue where:'MetricId == 990' sort:'MetricValueDateTime desc' limit:'1'%}
{% for metricvalue in metricvalueItems %}
{% capture currentWorshipAttendance %}{{ metricvalue.YValue | Format:'#,##0' }}{% endcapture %}
{% endfor %}
{% endmetricvalue %}
{%metricvalue where:'MetricId == 1117' sort:'MetricValueDateTime desc' limit:'1'%}
{% for metricvalue in metricvalueItems %}
{% capture currentChapelAttendance %}{{ metricvalue.YValue | Format:'#,##0' }}{% endcapture %}
{% endfor %}
{% endmetricvalue %}
@nathanp
nathanp / Button that links to Connect Group report.lava
Created February 12, 2019 23:06
Only visible if the current person is a leader of the group being viewed. Relies on query strings.
@nathanp
nathanp / Connect Group Follow Up.lava
Last active February 12, 2019 23:43
Follow up for Connect Group Leaders
<script src="//cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<script>
$(document).ready( function () {
$('#CGFollowUp').DataTable( {
paging: false,
"searching": false,
"order": [3, 'asc'],
"info": false
} );
} );