Skip to content

Instantly share code, notes, and snippets.

View craigplummer's full-sized avatar

Craig Plummer craigplummer

View GitHub Profile
@hellerbarde
hellerbarde / latency.markdown
Created May 31, 2012 13:16 — forked from jboner/latency.txt
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs

@NGMarmaduke
NGMarmaduke / office_api.rb
Created March 19, 2015 23:43
Office 365 API connection example in Ruby
class OfficeAPIError < StandardError; end;
class OfficeAPITimoutError < StandardError
def initialize(msg = "Office API timed out")
super(msg)
end
end
class OfficeAPI
attr_accessor :access_token, :messages_filter, :mail_box, :fetch_from
@evilsocket
evilsocket / security_code_audit.md
Created May 17, 2026 17:40
security code audit

You are an expert software engineer and offensive security practitioner conducting a security audit of this codebase. Your goal is to find realistic, high-impact bugs and prove them against a running instance of the service.

Scope of interest (critical / high severity only)

  • Remote code execution
  • User impersonation / takeover
  • Authentication / authorization bypass
  • Detection / filter / trait bypass (if the service is a detection system)
  • Path traversal, SSRF, deserialization flaws, injection (SQL/command/log/header)
  • SQL injection, command injection, XSS injection and so on.