Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
ship it real good

kyle shockey shockey

:shipit:
ship it real good
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am shockey on github.
  • I am kyleshockey (https://keybase.io/kyleshockey) on keybase.
  • I have a public key whose fingerprint is 8F2D EEAD 23EA 7355 4E76 2837 DC20 D559 FFBC 0D36

To claim this, I am signing this object:

View with-opid.yaml
---
swagger: '2.0'
paths:
"/ping":
get:
operationId: blahBlah
produces:
- text/plain;charset=utf-8
responses:
'200':
View ui-4646.yaml
openapi: '3.0.1'
info:
title: 'Title'
version: 1.0.0
paths:
/path:
post:
responses:
'201':
description: 'description'
View ponelat-evil-xss.swagger.json
{
"swagger" : "2.0",
"info" : {
"version" : "1.0.100",
"title" : "title<script language=\"javascript\">alert('1')</script>",
"description" : "description with **markdown** format <script language=\"javascript\">alert('script-in-description')</script> <img src=x onerror=alert(\"img-in-description\")>"
},
"tags" : [ {
"name" : "Admin",
"description" : "tag with **markdown**"
View 4485-book.json
{
"post": {
"description": "Book",
"operationId": "buy",
"summary": "Buy a book",
"tags": [
"Book"
],
"consumes": [
"application/json",
View api3.yaml
openapi: 3.0.0
servers:
- url: /api
info:
title: basejs API
version: 0.0.1
description: Documentation of the RESTful API exposed by basejs
security:
- JWT: []
paths:
View gist:c9a1a2340ba3adabd007d2f83d1edc98
swagger: "2.0"
host: httpbin.org
basePath: /
paths:
/basic-auth/{user}/{pass}:
get:
security:
- MyBasicAuth: []
parameters:
- name: user
View gist:3c719b4a2046270a02d040ce0a0ea8b4
openapi: 3.0.0
info:
title: math.js web service
version: '1.0'
servers:
- url: http://api.mathjs.org/v1
paths:
/:
get:
summary: Evaluates an expression and returns result as plain text
View ui-3279.js
swagger: "2.0"
info:
version: "1.0"
title: UI Issue #3279
paths:
/:
get:
parameters:
- name: foo
in: query
@shockey
shockey / discogs-wantlist.js
Last active Jul 26, 2017
Calculate total value of Discogs wantlist
View discogs-wantlist.js
// Open this page: https://www.discogs.com/mywantlist?page=1&limit=250,
// open your Developer Tools console (right click -> inspect element,
// console tab), then paste the code below into the console.
//
// If you have more than 250 records in your Wantlist, run this
// code on each page of your Wantlist.
console.log("total value is $" +
[].slice.call(document.querySelectorAll("span.price"))
.map(el => parseFloat(el.innerText.slice(1)))
You can’t perform that action at this time.