Skip to content

Instantly share code, notes, and snippets.

View schappim's full-sized avatar
💤
Sleeping . +10GMT

Marcus S schappim

💤
Sleeping . +10GMT
View GitHub Profile
@schappim
schappim / deep_research.rb
Created February 9, 2025 09:39
A recreation of OpenAI's Deep Research feature in Ruby
#!/usr/bin/env ruby
# deep_research.rb
require 'openai'
require 'json'
require 'net/http'
require 'uri'
require 'timeout'
require 'time'
require "openai"
# Initialise the OpenAI client
client = OpenAI::Client.new(access_token: ENV["OPENAI_API_KEY"])
# Helper method to call the API with a given model and prompt.
def call_llm(client, model:, prompt:, temperature: 0.7)
response = client.chat(
parameters: {
model: model,
@schappim
schappim / finding_publication.graphql
Created January 31, 2025 00:13
Publishing a product w/ GraphQL on Shopify
query {
publications(first: 10) {
edges {
node {
id
name
}
}
}
}
@schappim
schappim / 00_background.md
Last active August 3, 2025 11:07
Y Combinator Startup School Playlist Summarized.

This is a summary of video content on Y Combinator Startup School, available on YouTube.

@schappim
schappim / prompt_to_generate_customer_interview_questions.md
Last active January 24, 2025 02:25
Prompt to Generate Customer Interview Questions

1. Interview Structure w/ Examples

  1. Kick-Off Questions

    • Purpose: Break the ice, understand the interviewee’s background and how they arrived in their current role.
    • Example: “Can you tell us a little about yourself and your organisation?”
  2. Organisation Structure

    • Purpose: Understand the size and scope of the company.
    • Example: “How many people in your company?” / “How many cattle do you manage?”
#!/usr/bin/env python3
import os
import time
device_id = None
temperature = None
i = 0
delay = 3
@schappim
schappim / main.py
Created January 11, 2025 06:00
Turn the Raspberry Pi Pico WH LED on.
import machine
led = machine.Pin("LED", machine.Pin.OUT)
led.off()
led.on()
@schappim
schappim / The Ultimate Guide to High-Performance Sales and Startup Growth.md
Created January 5, 2025 22:51
The Ultimate Guide to High-Performance Sales and Startup Growth - This guide consolidates all hints, tips, statistics, and rules of thumb into a single coherent roadmap. It covers sales best practices, mindset, marketing fundamentals, operational strategies, and more—without repeating the same points multiple times. All spelling follows en-AU co…

These are my notes from Alex Hormozi's videos (in the form of a quick guide).


The Ultimate Guide to High-Performance Sales and Startup Growth

This guide consolidates all hints, tips, statistics, and rules of thumb into a single coherent roadmap. It covers sales best practices, mindset, marketing fundamentals, operational strategies, and more—without repeating the same points multiple times. All spelling follows en-AU conventions.


Table of Contents

@schappim
schappim / profile.zsh
Created January 4, 2025 01:38
Quickly edit & reload your Zsh config with this handy function! 🛠️ Open your ~/.zshrc in your editor, save, and apply changes instantly. ✨
function profile() {
/usr/local/bin/zed -w ~/.zshrc
if [[ $? -eq 0 ]]; then
echo 'Sourcing ~/.zshrc...'
source ~/.zshrc
echo '~/.zshrc updated and sourced successfully!'
else
echo 'Failed to edit ~/.zshrc.'
fi
}
@schappim
schappim / summarize_youtube.rb
Created January 3, 2025 00:57
A ruby script to summarize YouTube videos
#!/usr/bin/env ruby
# frozen_string_literal: true
# This script downloads the English auto-generated subtitles for a YouTube video,
# converts them to a single text block, and sends them to OpenAI for summarization.
# Requirements:
# - yt-dlp (brew install yt-dlp)
# - OpenAI Ruby gem (gem install 'ruby-openai')
# - An OpenAI API key set as an environment variable (export OPENAI_API_KEY=your-api-key)