Skip to content

Instantly share code, notes, and snippets.

@easyrider
easyrider / package-lock.json
Created May 1, 2018 13:26 — forked from fcecagno/package-lock.json
kurento_pipelines
{
"name": "kurento-hello-world",
"version": "6.6.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"bower": {
"version": "1.8.2",
"resolved": "https://registry.npmjs.org/bower/-/bower-1.8.2.tgz",
"integrity": "sha1-rfU1KcjUrwLvJPuNU0HBQZ0z4vc=",
@easyrider
easyrider / test.js
Created August 22, 2018 20:39 — forked from owenallenaz/test.js
Difference in error handling for async/await and callbacks
const request = require("request");
const express = require("express");
const util = require("util");
const app = express();
const requestPromise = util.promisify(request);
const timeoutPromise = util.promisify(setTimeout);
const getImgUrl = function(hostname, comicId, cb) {
request(`https://${hostname}/${comicId}/info.0.json`, function(err, resp, body) {
@easyrider
easyrider / coinbase-widget-hacky.jsx
Created September 5, 2018 17:25 — forked from alanshaw/coinbase-widget-hacky.jsx
React coinbase widget
import React, { Component, PropTypes } from 'react'
class CoinbaseWidget extends Component {
constructor (props) {
super(props)
this.onMessage = this.onMessage.bind(this)
}
componentDidMount () {
window.addEventListener('message', this.onMessage, false)
@easyrider
easyrider / Dockerfile
Created October 25, 2018 07:51 — forked from juhamust/Dockerfile
Kurento Media Server with Docker and SSL support (WIP)
# stream oriented kurento
#
# VERSION 4.4.3
FROM ubuntu:14.04
MAINTAINER Patxi Gortázar <[email protected]>
RUN apt-get update \
&& apt-get -y dist-upgrade \
&& apt-get install -y wget
@easyrider
easyrider / fuzz.html
Created August 8, 2019 18:25 — forked from LiveOverflow/fuzz.html
Fuzz innerHTML vs. DOMParser
<html>
<body>
<script>
const tags = ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "math", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "section", "select", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr"]
<script\x20type="text/javascript">javascript:alert(0);</script>
<script\x3Etype="text/javascript">javascript:alert(1);</script>
<script\x0Dtype="text/javascript">javascript:alert(2);</script>
<script\x09type="text/javascript">javascript:alert(3);</script>
<script\x0Ctype="text/javascript">javascript:alert(4);</script>
<script\x2Ftype="text/javascript">javascript:alert(5);</script>
<script\x0Atype="text/javascript">javascript:alert(6);</script>
'`"><\x3Cscript>javascript:alert(7)</script>
'`"><\x00script>javascript:alert(8)</script>
<img src=1 href=1 onerror="javascript:alert(9)"></img>