Skip to content

Instantly share code, notes, and snippets.

@jedi4ever
jedi4ever / openai_realtime.py
Last active October 7, 2024 16:55
openai realtime azure python example
import asyncio
import websockets
import json
import os
from dotenv import load_dotenv
import pyaudio
import numpy as np
import base64
import time
@jedi4ever
jedi4ever / keynote_appkit.py
Last active July 24, 2024 16:31
Appscript to create & read Keynote files
#!/usr/bin/env python
import appscript
import os
from contextlib import closing
import itertools
# appscript
# https://appscript.sourceforge.io/py-appscript/index.html
# https://github.com/HBehrens/pyKeynoteTweet/blob/ba17624a8ae5ee51013541c1d0aa705602d002a1/pyKeynoteTweet.py#L77
# https://github.com/shaunabanana/SquashNote/blob/1a2dfb9143ee9ef6df0505b7a83d5b297b678266/squash.py#L97
@jedi4ever
jedi4ever / dev.Dockerfile
Last active August 4, 2023 20:20
improved devcontainer for langchain
# This is a Dockerfile for running unit tests
# Use the Python base image
FROM python:3.11.2-bullseye
# install bash completion - to make make work
RUN apt-get update && apt-get install -y bash-completion
# Install nodejs & yarn (for docs)
@jedi4ever
jedi4ever / .vscode-settings.json
Last active August 4, 2023 21:34
Make Langchain and pytest working
python@9cc8ee288f2f:~/.vscode-server/data/Machine$ more settings.json
{
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": [
"--disable-socket",
"--allow-unix-socket",
"tests/unit_tests"
],
"python.poetryPath": "/opt/poetry/bin/poetry",
"python.testing.cwd": "/workspaces/libs/langchain"
@jedi4ever
jedi4ever / gist:4f05c6ddc3e965ca80689f37f1e03f29
Last active March 28, 2022 07:43
Synthetic media - humans as code (draft abstract)
I've done my fair share of automating computers and deploy processes.
Many things have been said and written and after reading the conference schedule I wasn't sure what to add.
Lately though, I've become intrigued on how computers are automating humans , that is , the creation of photorealistic humans
and virtual environments also known as 'synthetic media' .
I will take you on a tour across lipsynching, face swapping , voice cloning and capturing 3d modelling humans.
How close are we at generating humans as code and what does it mean for our society?
From hollywood VFX over virtual production to AI generated humans via GAN models and deepfakes,
I'd like to explain the topics in a technical engineering way to inspire people on this exciting new field.
@jedi4ever
jedi4ever / main.cpp
Created April 28, 2021 09:05 — forked from metalinspired/main.cpp
TMC2209 UART
/**
* Author Milan Divkovic
*
* You can control the motor with following commands:
* 0: Disables the motor
* 1: Enables the motor
* + or -: Increase or decrease speed in respect to rotation direction
*/
#include <Arduino.h>
@jedi4ever
jedi4ever / ffmpeg-to-vmix.png
Created April 18, 2021 08:46 — forked from mhanney/ffmpeg-to-vmix.png
Stream webcam and audio source from PC to remote IP address using mpegts encapsulation and encoded with h264 and aac
ffmpeg-to-vmix.png
@jedi4ever
jedi4ever / feedback.md
Last active July 26, 2020 09:17
Pulimi feedback

Installation

  • did brew install pulumi, installed 1.0.0 , running it keeps nagging about brew upgrade to 1.0.1
  • I wonder if there is a phone-home option, then it needs an optional opt-out
  • I'd expect pulumi init instead of new
  • pulumi needs documentation on the bootstrap for the state bucket (correct permissions)
  • pulumi login defaults to the saas platform, and says alternative logins available. not too clear , a select local would be nice
  • also the path where is stores the files should be asked for during installation
  • pulumi new --secrets-provider=passphrase (default I assume) has no way to initialize the secret from the CLI (like reading it from stdin or file)
  • why is bin in .gitignore (because typescript compiles in ./bin)
@jedi4ever
jedi4ever / patrick-unomaly.md
Last active February 22, 2019 09:40
Impression of 1 week exchange

I had a long overdue holiday planned. For many people this would mean going somewhere and relax. Turns out I'm not the sight-seeing person , I'm more of a people-seeing person: talking to people and exchanging new ideas is what makes me tick. Having been a consultant for several years, you learn the most from new environments. Interns would have that opportunity to apply , but why can't people with more experience?

So I launched on twitter the idea of what company is willing to do an exchange. After receiving several replies I got invited by Ramon Van Alteren from Unomaly and deciced to take a leap of faith.

It felt like the excitement of starting a new job. Scary , because you don't know what to expect.

@jedi4ever
jedi4ever / feedback.md
Last active October 8, 2018 14:04
Datadog logging feedback

Some feedback on datadog log explorer:

07 Oct 2018:

  • the pricing is per event , all usual log saas are per GB , it is hard for me to guess how much it would cost

  • it is not 100% clear that when I use exclusion that it will count as an event or not

  • it wasn't clear that I needed the latest of the version 6 , I had latest of 5 dd-agent (took me an hour to realize)

  • in log explorer headers should stay on top (like a freeze row in google docs) + sidebar stays visible

  • in log explorer I'd like to change the column order , not just last added at the end

  • if I specify a metric that is in ms, why show 1 ms as 1000ns