Skip to content

Instantly share code, notes, and snippets.

View MHolmes91's full-sized avatar

Mark Holmes MHolmes91

View GitHub Profile
@MHolmes91
MHolmes91 / Resume.html
Last active June 19, 2019 14:27
My Resume
<link href="https://fonts.googleapis.com/css?family=Lato:300|Roboto:300" rel="stylesheet">
<style>
#page
{
/*height:10in;
width:7.5in;
border: solid 1px;*/
font-size: 14px;
font-family: 'Lato', sans-serif;
//Use for SimplePeers wrtc property.
//Optionally, register your onStream handler here if needed. It won't return the stream, but it is when the audio/video starts playing.
//Needed for https://github.com/Temasys/AdapterJS/issues/59
(onStream) => ({
RTCPeerConnection: (() => {
//From https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection
const underlyingProperties = ["addIceCandidate", "addStream", "addTrack", "addTransceiver", "close", "createAnswer", "createDTMFSender", "createDataChannel", "createOffer", "currentLocalDescription", "currentRemoteDescription", "getConfiguration", "getLocalStreams", "getReceivers", "getRemoteStreams", "getSenders", "getStats", "getTransceivers", "iceConnectionState", "iceGatheringState", "localDescription", "onaddstream", "ondatachannel", "onicecandidate", "oniceconnectionstatechange", "onicegatheringstatechange", "onnegotiationneeded", "onremovestream", "onsignalingstatechange", "ontrack", "pendingLocalDescription", "pendingRemoteDescription",
@MHolmes91
MHolmes91 / commit-msg
Last active March 8, 2018 19:04
Add branch name to every git commit
#!/bin/sh
#
# Add branch name to every commit message.
BRANCH=$(git branch|grep '*'|sed 's/\* //')
echo "${BRANCH}: $(cat $1)" > "$1";
@MHolmes91
MHolmes91 / tldrlite.sh
Created February 15, 2018 17:00
A lite implementation of https://github.com/tldr-pages/tldr that only relies on bash and curl.
#!/bin/bash
COMMAND=$*;
COMMAND=${COMMAND// /-};
curl \
--header 'Accept: application/vnd.github.v3.raw' \
https://api.github.com/repos/tldr-pages/tldr/contents/pages/common/${COMMAND}.md?ref=master;