Skip to content

Instantly share code, notes, and snippets.

View asciidiego's full-sized avatar
🎄

Diego Rodriguez asciidiego

🎄
View GitHub Profile
#!/opt/homebrew/bin/python3
import sys
import urllib.parse
import subprocess
if len(sys.argv) < 2:
print("Usage: python explainshell.py [shell command as string here]")
sys.exit(1)
yes, i saw open journey. thanks.
@asciidiego
asciidiego / CLRF-issue.html
Created January 5, 2023 21:31
CLRF not being sent as a Data Transfer object
<!-- HTML Boilerplate -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Drop</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="p-4 max-w-lg">
<h1 class="font-bold">Simple DataTransfer demo</h1>
@asciidiego
asciidiego / lamen
Created September 17, 2021 23:29
RAMEN
say 'Hey, can we make the ramen now?'
@asciidiego
asciidiego / magoosh-gre-question-scraper.js
Last active December 29, 2020 00:36
Extract question answers from GRE Magoosh Review.
function scrapeQuestionsFromMagooshReviewPage() {
// I think this only works on Firefox, since they add the tbody element.
const table = $('tbody tr')
const questions = [];
for(let node of table) {
const cleanText = t => t.replace(/\n/g,'');
const parsedNode = {
correct: node.querySelector('.correct-sprite') != null,
title: node.querySelectorAll('td')[1].textContent,