Skip to content

Instantly share code, notes, and snippets.

View dstrockis's full-sized avatar
💭
Part time identity nerd, part time data nerd

Danny Strockis dstrockis

💭
Part time identity nerd, part time data nerd
View GitHub Profile
@dstrockis
dstrockis / web-servers.md
Created October 29, 2018 20:19 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@dstrockis
dstrockis / fiddler2stack.md
Last active February 28, 2017 18:48
How to generate & post a Fiddler Trace to Stack Overflow for Azure AD & MSA

Instructions for posting a Fiddler trace to Stack Overflow

  1. Install Fiddler if necessary from http://www.telerik.com/fiddler
  2. Run Fiddler, and capture a web trace reproducing your problem. If possible, we recommend dragging the Any Process selector to your browser window, so that only traffic from that browser tab is captured.
  3. Intelligently prune the resulting Fiddler trace of any excess sessions. You should remove any requests/responses for static content, tunneling requests, requests for telemetry, and so on. The interesting sessions are those between to the URI/URL of your application (where the host is like myapp.com), and the URLs of Azure AD & MSA. Specifically, you should keep any sessions with a host of login.windows.net, login.microsoftonline.com, login.live.com, or anything similar. To remove a session, simply click on it, and hit the Delete key.
  4. Once you've pruned any excess sessions, click through each remaining session. Almost every trace includes important HTML docum