Skip to content

Instantly share code, notes, and snippets.

View farrellit's full-sized avatar

Dan Farrell farrellit

View GitHub Profile
@farrellit
farrellit / t.c
Last active December 3, 2019 01:43
C Gist
#include <stdio.h>
void f() {
printf("Hello, world") ;
}
int main() {
f();
}
@farrellit
farrellit / aws-fetch.js
Created February 10, 2025 16:45
Javascript AWS Signature V4 with Web Crypto based Hashing
async awsFetch(creds, url, method , data, region, operation, content_type, accept) {
/*
creds: a Credentials contains SessionToken SecretAccessKey and AcccessKeyId
url: a URL
method: request method
data: request data
region: aws region
operation: aws operation (maybe execute-api?)
content_type: header