Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts and experience preferred (super rare at this point).
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."
- 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 *
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#define DYN_ARR_OF(type) struct { \ | |
type *data; \ | |
type *endptr; \ | |
uint32_t capacity; \ | |
} | |
#if !defined(__cplusplus) | |
#define decltype(x) void* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
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 > requests.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rm package-lock.json | |
$ npm i |
NewerOlder