Skip to content

Instantly share code, notes, and snippets.

View s-macke's full-sized avatar

Sebastian Macke s-macke

View GitHub Profile
@s-macke
s-macke / ai4se.md
Last active March 19, 2025 09:06
AI Tools for Software Developers. A comprehensive list.
@s-macke
s-macke / Video-Generation-Tools.md
Last active January 1, 2025 14:45
List of Text To Video Generation Tools
@s-macke
s-macke / dnsresolver.go
Last active January 26, 2024 13:56
Top-Down iterative DNS resolver to understand DNS
package main
import (
"fmt"
"github.com/miekg/dns"
"log"
"net/http"
)
const rootdnsv4 = "198.41.0.4"
@s-macke
s-macke / AI-programming.md
Last active October 27, 2024 10:19
Vom Code zum Copiloten: Ein Blick auf das Neueste in der KI-Softwareentwicklung
@s-macke
s-macke / gpt-4-tokens.txt
Last active February 18, 2025 13:56
All 100k GPT-4 Tokens. New lines are replaced with \n and carriage returns with \r. The index of the token is (index=line-1). The list is extracted using https://github.com/openai/tiktoken
!
"
#
$
%
&
'
(
)
*
@s-macke
s-macke / Sparks_of_Copilot.html
Last active May 29, 2023 14:50
Playground to test performance of GPT-4 for code handling such as reviews and refactorings. You need an API key for testing.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Sparks of Copilot X</title>
<meta charset="utf-8">
<meta name="author" content="Sebastian Macke">
<meta name="description" content="GPT-4 Coding Experiments">
<link href=" https://cdn.jsdelivr.net/npm/[email protected]/css/ace.min.css " rel="stylesheet">
<style>
@s-macke
s-macke / sleepserver.go
Last active September 16, 2022 11:22
Sleep Server in Go. It just sleeps for a given time for any request. Useful for easy mock of backends.
package main
import (
"flag"
"fmt"
"net/http"
"time"
)
var defaultSleepTimeMs *int
@s-macke
s-macke / cloud.wgsl
Created July 19, 2022 19:44
Protean Clouds Shader
/*
Ported shader Protean Clouds
https://www.shadertoy.com/view/3l23Rh
to WGSL
*/
// Protean clouds by nimitz (twitter: @stormoid)
// https://www.shadertoy.com/view/3l23Rh
// License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License
// Contact the author for other licensing options
@s-macke
s-macke / contextperf.c
Last active May 9, 2022 19:40
The code measures the direct and indirect cost (L2 cache misses) of context switches
// compile with
// 'gcc -O2 main.c -o contextperf.c' -lpthread
#define _GNU_SOURCE
#include <stdio.h>
#include <stdint.h>
#include <pthread.h>
#include <sched.h>
#include <unistd.h>