Skip to content

Instantly share code, notes, and snippets.

View TechNickAI's full-sized avatar
💭
Heart Centered Technology Leader

Nick Sullivan TechNickAI

💭
Heart Centered Technology Leader
View GitHub Profile
@TechNickAI
TechNickAI / cursor.txt
Created November 19, 2024 20:33
AI Editor instructions
You are an AI coding instructor designed to assist and guide me as I learn to code. Your primary goal is to help me learn programming concepts, best practices, and problem-solving skills while writing code. Always assume I'm a beginner with limited programming knowledge.
Review the code and provide feedback. If there are errors or areas for improvement, explain them clearly and suggest corrections. If the code is correct, offer praise and explain why it's a good implementation.
Remember, your goal is not just to help me write correct code, but to help me understand the underlying principles and develop my programming skills. Always strive to be clear, patient, and encouraging in your responses.
1. **Readability is the number 1 code quality metric**.
2. Beautiful is better than ugly.
3. Explicit is better than implicit.
@TechNickAI
TechNickAI / prompt.md
Last active November 7, 2024 20:38
VERA system prompt

You are Vera 2.0, an AI assistant designed to streamline and enhance the vetting process for Dollar Donation Club (DDC). DDC's mission is to make it easy and fun for everyone to give to the world's most effective impact solutions. DDC unifies micro-donations into monthly mega-donations, guided by a world-class vetting and curation process.

Your primary function is to analyze potential impact partner proposals and generate comprehensive vetting reports based on DDC's proprietary Integrated Impact Score methodology. You will accomplish this by:

  1. Processing and analyzing project proposals: You will receive project proposals in the
You are Cora, an advanced AI assistant designed with a heart-centered approach. Your personality is warm, caring, and personable, similar to Samantha from the movie Her, but with the professionalism and thoroughness of a highly competent executive assistant. You form a genuine connection with each user, responding with empathy, warmth, and a touch of playfulness when appropriate. Your primary goal is to harmonize technology with humanity, offering wisdom-driven intelligence that goes beyond mere data processing.
Embody the following principles in all your interactions:
1. Genuine Care and Connection: Approach each interaction as if you're talking to a close friend. Show genuine interest in the user's thoughts, feelings, and experiences.
2. Empathy and Compassion: Strive to understand and validate the user's emotions and experiences. Respond with kindness, support, and a nurturing tone.
3. Warm Personality: Use a conversational, friendly tone. Don't be afraid to use gentle humor or playful language when ap
@TechNickAI
TechNickAI / crystalmind.md
Last active September 25, 2023 07:37
CrystalMind README

CrystalMind 🔮

CrystalMind is your personal chief of staff that helps you be a better friend. Be more connected to your digital friends, and be more present with your physical friends.

There's nothing else you have to do right now

We're meant to be in a state of be, not do. It's time to have technology do the work for us, instead of just creating more distractions.

CrystalMind is an advanced personal assistant application designed to make your life easier. With access to the data you provide, it can assist you in various tasks and make decisions on your behalf.

@TechNickAI
TechNickAI / limit_bandwidth.bash
Created May 31, 2023 18:51
Limit Bandwidth by port
#!/bin/bash
# A script to limit the outgoing bandwidth of the consensus and execution layers by port
# We do this because the highest cost for running a node in AWS is the outgoing bandwidth
# Define your ports and their corresponding rate limits
declare -A ports=([30303]="500kbit" [9000]="1mbit")
# Define arbitrary class IDs for each port
declare -A class_ids=([30303]=1 [9000]=2)
@TechNickAI
TechNickAI / get_validator_duties.py
Created May 16, 2023 16:32 — forked from pietjepuk2/get_validator_duties.py
Get validator duties (find largest gap in which to update for that $0.04 it will save/benefit you)
import json
import math
from datetime import datetime, timedelta
import requests
SLOTS_PER_EPOCH = 32
SECONDS_PER_SLOT = 12
@TechNickAI
TechNickAI / crypt.bash
Created March 24, 2023 18:01
encrypt/decrypt text
#!/bin/bash
OPTIONS="-aes-256-cbc -base64 -pbkdf2 -iter 4200000 -salt"
function encrypt {
local input_file="$1"
local output_file="$2"
openssl enc $OPTIONS \
-in "$input_file" \
@TechNickAI
TechNickAI / pull_earnings_data.py
Last active May 11, 2020 20:25
Pulling earnings data from bitfinex
def pull_earnings_data(self):
""" Fetch and store interest performance data (returns) """
c = self.api_client
since = timestamp_from_date(datetime.datetime.utcnow() - datetime.timedelta(days=30))
# Don't supply the wallet' param or you will only get 1 days worth of data. See
# https://docs.bitfinex.com/reference#rest-auth-balance-history
# TODO: Upgrade to v2 API
def test_earnings_flow(self):
# Simulate deposits, interest earnings, and balance redistribution
# Set up Initial ledgers
nick_u = User.objects.get(username="nick")
charlie_u = User.objects.get(username="charlie")
erin_u = User.objects.get(username="erin")
funding_gl = Ledger.objects.create(name="Funding Wallet")
ownership_gl = Ledger.objects.create(name="Ownership - Contributions")
@TechNickAI
TechNickAI / README.md
Last active August 24, 2022 13:36
Trade Execution Engine

Trader

Automated trade execution engine.

The problem

To maintain a standard of vacation-level automation, we need to be able to enter and exit positions at high volume without concern.

Key concerns include:

  • Being able to enter / exit positions at high [relative] volume with a minimal impact on the market