Skip to content

Instantly share code, notes, and snippets.

@technoweenie
technoweenie / github_oauth_busy_developer_guide.md
Created May 30, 2010 18:34
GitHub OAuth Busy Developer's Guide

GitHub OAuth Busy Developer's Guide

This is a quick guide to OAuth2 support in GitHub for developers. This is still experimental and could change at any moment. This Gist will serve as a living document until it becomes finalized at Develop.GitHub.com.

OAuth2 is a protocol that lets external apps request authorization to private details in your GitHub account without getting your password. All developers need to register their application before getting started.

Web Application Flow

  • Redirect to this link to request GitHub access:
@mikehaertl
mikehaertl / gist:3258427
Created August 4, 2012 15:40
Learn you a Haskell - In a nutshell

Learn you a Haskell - In a nutshell

This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.


1. Introduction

  • Haskell is a functional programming language.
@neocris
neocris / snippets.md
Last active December 28, 2019 12:30
code snippets

iterate over all user global functions

	for (w in window){if (window.hasOwnProperty(w) && typeof window[w] === 'function'){}}

convert NodeList to Array (http://davidwalsh.name/nodelist-array)

	var nodesArray = [].slice.call(document.querySelectorAll("div"));
@jjarava
jjarava / Chrome-DevTools-Net-Export-All-Session-2015-02-12_17-56-56.jpg
Last active April 19, 2024 16:50
How to *record* web Sessions for later analysis
Chrome-DevTools-Net-Export-All-Session-2015-02-12_17-56-56.jpg
@robertknight
robertknight / pywb.md
Last active July 8, 2018 22:31
PyWB live rewriting notes

pywb implementation notes

Server-side components

  • Static server-side rewriting implemented by classes in pywb/rewrite/*

    html_rewriter.py

    • Takes an HTML feed as input via feed() method, the handler_*() methods are called as the HTML
@riobard
riobard / tcpdump.txt
Last active August 12, 2022 08:19
Poem lines broadcast by my ISP-provided fiber optical modem
# My ISP-provided fiber optical modem broadcasts a line of a poem every ten seconds. Here's the tcpdump of the complete poem.
# The optical modem is made by Shanghai Nokia-Bell Co.,Ltd and its model number is G-140W-UD. It's provided by my ISP, China Unicom in Shenzhen.
$ tcpdump -i vlan10 ether proto 0x8300
15:59:00.720301 00:00:00:00:00:12 (oui Ethernet) > Broadcast, ethertype Unknown (0x8300), length 72:
0x0000: 0000 0000 e4ea 8386 d93c 5468 6520 6461 .........<The.da
0x0010: 7920 4920 6c6f 7374 206d 7920 7665 7279 y.I.lost.my.very
0x0020: 2066 6972 7374 2074 6f6f 7468 2c00 0000 .first.tooth,...
0x0030: 0000 0000 0000 0000 0000 ..........
15:59:10.740778 00:00:00:00:00:12 (oui Ethernet) > Broadcast, ethertype Unknown (0x8300), length 72: