Skip to content

Instantly share code, notes, and snippets.

View rapidclock's full-sized avatar

Rahul Thomas rapidclock

  • Seattle, WA
View GitHub Profile
@rapidclock
rapidclock / saml_over_adfs_auth.md
Created January 13, 2026 06:44
Explains Auth - OAuth2/OIDS and Saml over ADFS

Copilot Chat Conversation Export: Using OAuth2/OIDC for REST API authentication

@rapidclock

Explain "SAML over ADFS" as an authentication mechanism for a REST API. I do NOT want code samples. I want an explanation. I know very little to nothing about auth. If my company has an ADFS server, what do I need to do on my App to leverage that for identity management? I am only interested in Authentication not Authorization.

Copilot

SAML over ADFS for REST API Authentication

@rapidclock
rapidclock / 15_python_tips.md
Created December 9, 2023 06:47 — forked from Julynx/15_python_tips.md
15 Python Tips To Take Your Code To The Next Level!
@rapidclock
rapidclock / beautiful_idiomatic_python.md
Created February 29, 2020 00:45 — forked from 0x4D31/beautiful_idiomatic_python.md
[Beautiful Idiomatic Python] Transforming Code into Beautiful, Idiomatic Python #python

Transforming Code into Beautiful, Idiomatic Python

Notes from Raymond Hettinger's talk at pycon US 2013 video, slides.

The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Looping over a range of numbers

for i in [0, 1, 2, 3, 4, 5]:
#include <stdlib.h>
int min(const int i, const int j, const int k) {
return (i < j) && (i < k) ? i : (j < k ? j : k);
}
int levenshtein_distance(const char* word1, const int len1, const char* word2, const int len2) {
if (len1 == 0) {
return len2;
} else if (len2 == 0) {
@rapidclock
rapidclock / simplechatserver.go
Created June 7, 2018 22:39
Simple socket based chat server with matching
package main
import (
"log"
"net"
"io"
"fmt"
)
// Use "nc localhost 4000" (without quotes) to log in.
@rapidclock
rapidclock / The Technical Interview Cheat Sheet.md
Last active April 4, 2018 04:10 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

Array

Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@rapidclock
rapidclock / System Design.md
Created February 21, 2018 01:06 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [