Skip to content

Patrick

writing, drawing, surfing, painting

Menu

All posts by theptrk

Obsidian Vim remapping

Posted on July 17, 2023July 18, 2023Author theptrkPosted in Obsidian

How to create an “obsidian.vimrc” Step: download the plugin “obsidian-vimrc-support” (link) Step: create an “.obsidian.vimrc” file in your iCloud folder for obsidian Here are some mappings: Helpful links

GPT from scratch: Karpathy

Posted on July 13, 2023November 6, 2023Author theptrkPosted in LLM

Andrej Karpathy has an incredible video on building GPT from scratch. Here are cartoon notes covering the contents:

How to convert mov to mp4 with ffmpeg

Posted on June 15, 2023June 16, 2023Author theptrkPosted in Uncategorized

When you record on Quicktime, that saves as .mov which is a SUPER huge file size. Notes:

How to use OpenAI whisper with python

Posted on June 15, 2023July 14, 2024Author theptrkPosted in OpenAI, python

OpenAI open sourced their speech recognition model: https://github.com/openai/whisper There are 5 sizes: tiny, base, small, medium, large Note: you need to pip install openai-whisper (pypi link) Here is code to transcribe an audio file

UserWarning: FP16 is not supported on CPU; using FP32 instead
warnings.warn(“FP16 is not supported on CPU; using FP32 instead”)

Posted on June 11, 2023November 6, 2023Author theptrkPosted in python

Q: Are you trying to use whisper on your Mac instead of a Google Colab? Short answer: Example: Source: https://github.com/openai/whisper/discussions/301

Create Django Project with scaffolding from Django Cookiecutter

Posted on June 7, 2023November 4, 2023Author theptrkPosted in django, python

I use Django Cookiecutter (link) 🍪 because its awesome! Find your python version Hit the github page to see what python version it supports, you should match whichever provider support you have. Create project: use pyenv to set python version Note: if your pyenv install –list is not listing the newest versions, you’ll need to…

Read More

Python: Print all items in a directory

Posted on June 7, 2023June 7, 2023Author theptrkPosted in python

Mac and Docker Desktop: “Cannot connect to the Docker daemon”

Posted on May 13, 2023May 24, 2023Author theptrkPosted in Uncategorized

Why is this happening? Solution: Run this command to create a symbolic link inside of the “/var” directory Source: https://github.com/nektos/act/issues/1658 Deep dive: Here’s a breakdown of the command and its components:

Cache your OpenAI responses with CachedGPT

Posted on April 30, 2023Author theptrkPosted in Uncategorized

Check out this github repo: https://github.com/theptrk/cachedgpt It’s a single file server that uses FastAPI to cache your calls to save on resources while you are developing. A hidden benefit, all responses return INSTANTLY on the second call.

OpenAI ChatCompletion in Python

Posted on April 30, 2023June 16, 2023Author theptrkPosted in Uncategorized

Posts pagination

← Previous Page 1 … Page 5 Page 6 Page 7 … Page 13 Next →
  • Coding (10)
  • Command line (6)
  • databases (7)
    • postgresql (7)
  • Deployment (1)
    • heroku (1)
  • Dev Environments (1)
  • docker (5)
  • Finance (1)
  • git (2)
  • Github (2)
    • pages (1)
  • Hello World (1)
  • htmx (1)
  • iOS (5)
    • autolayout (1)
    • Core Animation (1)
      • CAShapeLayer (1)
    • project setup (1)
  • Javascript (13)
    • Browser API (1)
    • chrome extension (1)
    • express (2)
  • Mac (7)
  • Machine Learning (10)
    • Arc Prize (1)
    • LLM (4)
  • Me Database (1)
  • Obsidian (1)
  • OpenAI (2)
  • python (23)
    • django (4)
  • Rust (1)
  • Server-Client (1)
  • Shopify (1)
  • Swift (1)
  • Uncategorized (27)
  • Unix (10)
  • vim (5)

©2026 Patrick | Theme by SuperbThemes.Com