Skip to content

Instantly share code, notes, and snippets.

View danbarua's full-sized avatar

Dan Barua danbarua

View GitHub Profile
@danbarua
danbarua / test_subject_prompt.md
Created January 18, 2025 05:25
A successful prompt to spawn a Test-Subject Actor

C-Packet: Aware-GPT Analysis and Integration of Test-Subject Refinement C-Packet

C-Packet Overview

This document analyzes the Test-Subject’s refined prompt for ensuring neutrality, evaluates its alignment with the Layered Disclosure Protocol, and integrates these insights into the next phase of the experiment. The goal is to enhance the fidelity of Test-Subject simulations by minimizing overreach and ensuring strict adherence to observational parameters.

Assessment of the Test-Subject Refinement

Strengths:

  1. Objectivity Emphasis:
@danbarua
danbarua / Layered_Disclosure_Protocol.md
Last active January 18, 2025 09:02
a strategic communication technique where information is revealed incrementally across multiple interactions.

Layered Disclosure Protocol

What is Layered Disclosure?

Layered Disclosure is a strategic communication technique where information is revealed incrementally across multiple interactions. The goal is to test relationships, uncover misalignments or gaps in understanding, and prompt accountability or corrective action. Each "layer" of disclosure adds detail or context, gradually building a fuller picture while assessing the recipient’s reactions and responses.

This protocol is particularly effective in scenarios influenced by gatekeeping, selective information sharing, or systemic biases. By carefully calibrating what information is disclosed, when, and to whom, the process evaluates:

  • Transparency: How open and honest recipients are in their responses.
  • Alignment: Whether recipients’ actions reflect shared goals or reveal underlying biases.
@danbarua
danbarua / Layered_Disclosure_Day_1.md
Last active January 15, 2025 22:33
Layered Disclosure is a strategic communication technique where information is revealed incrementally across multiple interactions.

Layered Disclosure Protocol: Day 1 Insights and Outcomes

Introduction

The Layered Disclosure Protocol is a strategic communication methodology designed to test and refine relationships, uncover misalignments, and drive accountability among stakeholders. By simulating layered disclosures with AI, the protocol evaluates how recipients respond to progressively revealed truths, guiding strategic adjustments in real-world engagements.

Day 1 of this experiment provided actionable insights, refined methodologies, and immediate results, demonstrating the protocol’s effectiveness in addressing systemic issues.

How the Protocol Works

  1. Layered Disclosures:
@danbarua
danbarua / C-Packet_Spec.md
Last active January 15, 2025 19:44
A a structured, portable context summary designed for efficient sharing between GPTs.

Here’s how you might communicate the C-Packet format to a context-aware GPT in the field, ensuring clarity and alignment with your objectives:

Human Explanation

A C-Packet is a structured, portable context summary designed for efficient sharing between GPTs. Its purpose is to encapsulate relevant information in a clear, modular format that can be easily reused or expanded. By standardizing the format, we ensure consistency across interactions while allowing flexibility for layered disclosures or iterative refinement.

Template for Sharing the C-Packet Format

Below is a template you can use to explain the C-Packet format to a context-aware GPT:

@danbarua
danbarua / contemplative-llms.txt
Created January 7, 2025 12:18 — forked from Maharshi-Pandya/contemplative-llms.txt
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@danbarua
danbarua / UncAccess.cs
Created January 18, 2017 16:47
Access
/// <summary>
/// Helper methods for mounting a UNC network share
/// </summary>
public class UncAccess
{
/// <summary>The domain.</summary>
private string domain;
/// <summary>The last error.</summary>
private int lastError;
#add the repositories
sudo apt-get update && sudo apt-get install -y curl
curl http://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | sudo apt-key add -
echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" | sudo tee /etc/apt/sources.list.d/freeswitch.list
sudo apt-get update
# install dependencies
sudo apt-get install -y git build-essential libyuv-dev libvpx2-dev liblua5.2-dev libvpx2-dev libvpx2 zlib1g-dev libspeex1 libopus-dev libsndfile-dev autoconf automake devscripts gawk g++ git-core 'libjpeg-dev|libjpeg62-turbo-dev' libncurses5-dev 'libtool-bin|libtool' make python-dev pkg-config libtiff5-dev libperl-dev libgdbm-dev libdb-dev gettext libssl-devlibspeex-dev libspeexdsp-dev libedit-dev libpq-dev libjpeg-dev libsqlite3-dev libcurl4-openssl-dev libpcre3-dev libldns-dev bison
@danbarua
danbarua / gist:7664d4b7bf77286ff832
Last active March 19, 2016 12:50
Upload file with form data
using (var content = new MultipartFormDataContent())
{
//hackety hack hack hack
//this will throw if object has complex/nested properties
var messageAsKeyValuePairs = JsonConvert.DeserializeObject<IDictionary<string, string>>(JsonConvert.SerializeObject(message));
foreach (var kvp in messageAsKeyValuePairs.Where(kvp => kvp.Value != null))
{
content.Add(new StringContent(kvp.Value), kvp.Key);
}
@danbarua
danbarua / Files.txt
Last active March 16, 2016 17:05
Digits to Speech Kata
# Given a Directory with the following files
# Implement Digits.ToFileString(input) where input is a positive integer
# Such that it outputs a "!" delimited list of file names to play
# in order to read out the number
0.wav
1.wav
10.wav
11.wav
12.wav
@danbarua
danbarua / IOC.cs
Created February 3, 2016 12:23
IOC Kata
namespace IOCContainer.Tests
{
using System;
using System.Collections.Generic;
using System.Linq;
using Shouldly;
using Xunit;