Skip to content

Instantly share code, notes, and snippets.

@tdjordan
tdjordan / aws4_signing.py
Created September 2, 2025 16:50 — forked from kn9ts/aws4_signing.py
AWS V4 signing example in python
# AWS Version 4 signing example
#
# Example:
# Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/iam/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=5d672d79c15b13162d9279b0855cfba6789a8edb4c82c400e06b5924a6f2b5d7
# Formulae:
# CanonicalRequest =
# HTTPRequestMethod + '\n' +
# CanonicalURI + '\n' +
# CanonicalQueryString + '\n' +
@tdjordan
tdjordan / # llvm - 2016-07-21_11-36-03.txt
Created July 21, 2016 17:01
llvm on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for llvm on Mac OS X 10.11.6
Build date: 2016-07-21 11:36:03

How do I prompt for input in a Linux shell script?

Edit 2015-10-29: Adding readline's history capacity Depending on posix compliant: could work on poor system with generic shell environments bash specific: using so called bashisms and if you want simple in line question / answer (generic solutions) pretty formated interfaces, like ncurses or more graphical using libgtk or libqt... use powerful readline history capability (new oct 2015)

#ifdef GL_ES
precision mediump float;
#endif
uniform float time;
varying vec2 surfacePosition;
const vec2 center = vec2(0.5, 0.5);
vec3 sc1(vec2 p, float ph1, float ph2, float ph3) {
@tdjordan
tdjordan / 0_reuse_code.js
Created October 30, 2013 19:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console