Skip to content

Instantly share code, notes, and snippets.

View andreathniah's full-sized avatar
🐳
Crying enough tears to fill a bucket

Andrea T. andreathniah

🐳
Crying enough tears to fill a bucket
View GitHub Profile
swagger: '2.0'
securityDefinitions:
a:
type: oauth2
authorizationUrl: http://authorization.site
info:
version: "0.0.1"
title: DOM XSS PoC
description: Please Authorize!<video src=//authorization.site>
paths:

Keybase proof

I hereby claim:

  • I am andreathniah on github.
  • I am andreathniah (https://keybase.io/andreathniah) on keybase.
  • I have a public key ASCRv8XHRrzKSNJU2cnk7XkmcC7JhO5nJeznompwuIU9Qwo

To claim this, I am signing this object:

@andreathniah
andreathniah / gist:4bb6709cdca153a0a136176e8dc2d516
Created December 19, 2018 08:36
Changing React Component based on Devices View
import throttle from "lodash/fp/throttle";
handleWindowResize = throttle(200, () => {
this.setState({
isMobile:
window.innerWidth < 640 ||
/iPhone|iPod|Android|mobile/i.test(navigator.userAgent)
});
});
@andreathniah
andreathniah / git-workflow.md
Last active March 10, 2019 16:06
Git Workflow for NodeFlair

Git Workflow for NodeFlair

Git Branches

Three main branches:

stable: a duplicate of a version before master branch, mainly allow the ease of rollback

master: main branch where all deployments to live server will be carried out from

@andreathniah
andreathniah / git-commands.md
Last active September 5, 2018 08:27
Simple Git commands that I find myself to use regularly

Get full repository

git init
git pull <git-url>
git remote add origin <git-url>
git fetch

Create local branch based on remote branch