Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View theodesp's full-sized avatar
🦄
Jumping over Rainbows...

Theofanis Despoudis theodesp

🦄
Jumping over Rainbows...
View GitHub Profile
@theodesp
theodesp / normcore-llm.md
Created August 28, 2023 12:01 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads
@theodesp
theodesp / ai-research-science-self-study.md
Created June 2, 2023 14:27 — forked from TikkunCreation/ai-research-science-self-study.md
openai self study / deep neural network learning

Sam Altman: "I think if you have a smart person who has learned to do good research and has the right sort of mindset, it only takes about six months to make them, you know, take a smart physics researcher and make them into a productive AI researcher. So we don't have enough talent in the field yet, but it's coming soon. We have a program at open AI that does exactly this. And I'm astonished how well it works."

Types of roles at AI companies

  • Software Engineer (not the focus of this Gist): Build customer-facing features, optimize applications for speed and scale, use AI APIs. Prompt engineering expertise is generally helpful, but AI experience beyond using the APIs or using ChatGPT like an expert is generally not needed. This Gist isn't aimed at this role.
  • Machine Learning Engineer: Build pipelines for data management, model training, and model deployment, to improve models (not the focus of this Gist). And/or implement cutting-edge research papers (a focus of this Gist).
  • Research Engineer (a *
@theodesp
theodesp / Dockerfile
Last active May 13, 2023 15:50
Custom Admission Controller K8s
# build stage
FROM golang:1.20 AS build-env
RUN mkdir -p /app
WORKDIR /app
COPY . .
RUN useradd -u 10001 webhook
RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o webhook
FROM scratch
COPY --from=build-env /app .
@theodesp
theodesp / json.zig
Created April 4, 2023 16:52 — forked from mitchellh/json.zig
Streaming JSON decoder for Zig (NOT COMPLETE!)
const std = @import("std");
const builtin = @import("builtin");
const assert = std.debug.assert;
const Allocator = std.mem.Allocator;
const ArenaAllocator = std.heap.ArenaAllocator;
const StreamingParser = std.json.StreamingParser;
const Token = std.json.Token;
const TokenTag = std.meta.FieldEnum(Token);
/// Field options are options that can be set per-field on a struct at
@theodesp
theodesp / dyn_arr.h
Created March 1, 2023 11:47 — forked from nicebyte/dyn_arr.h
dyn_arr
#pragma once
#define DYN_ARR_OF(type) struct { \
type *data; \
type *endptr; \
uint32_t capacity; \
}
#if !defined(__cplusplus)
#define decltype(x) void*
@theodesp
theodesp / Vagrantfile
Last active February 15, 2023 12:20
Docker Swarm Vagrant Setup
# -*- mode: ruby -*-
# vi: set ft=ruby :
$install_docker_script = <<SCRIPT
sudo apt-get update
sudo apt-get install -y docker.io
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker vagrant
SCRIPT
@theodesp
theodesp / vectors.md
Created October 3, 2022 12:12 — forked from susam/vectors.md

Recon and Attack Vectors from My Logs

This document contains excerpts from my web server logs collected over a period of 7 years that shows various kinds of recon and attack vectors.

There were a total of 37.2 million lines of logs out of which 1.1 million unique HTTP requests (Method + URI) were found.

$ sed 's/^.* - - \[.*\] "\(.*\) HTTP\/.*" .*/\1/' access.log &gt; requests.txt
@theodesp
theodesp / animate.ts
Created May 15, 2020 15:28
Animate Element
const easeInOutSin = (time: number): number => {
return (1 + Math.sin(Math.PI * time - Math.PI / 2)) / 2;
};
interface AnimateElementByPropArgs {
propToAnimate: string;
element: Element;
moveTo: number;
duration?: number;
}
@theodesp
theodesp / gist:8e6972aa0714522f843a98219bf52e3a
Last active April 28, 2020 11:01
Graphics Programming Resources
## Beginner
### Ray Casting
* https://en.wikipedia.org/wiki/Ray_casting
* https://lodev.org/cgtutor/raycasting.html
* https://github.com/permadi-com/ray-cast
* https://rosettacode.org/wiki/Ray-casting_algorithm
* https://permadi.com/1996/05/ray-casting-tutorial-table-of-contents/
* https://courses.pikuma.com/courses/raycasting
* https://people.cs.clemson.edu/~dhouse/courses/405/notes/raycast.pdf
@theodesp
theodesp / gist:dd44f1debc24cf7b35d715308413846d
Created April 6, 2020 10:55
recreate package-lock.json
$ rm package-lock.json
$ npm i