Skip to content

Instantly share code, notes, and snippets.

View asciidiego's full-sized avatar

diego asciidiego

View GitHub Profile
@asciidiego
asciidiego / add-buildx-with-colima.sh
Created January 1, 2025 05:08
Script to install the Docker `buildx` plugin when using `colima`
#!/bin/zsh
ARCH=arm64 # this is for MacBook Silicon-based (e.g. M1, M2, M3...)
VERSION="v0.19.3" # ATTOW this was the version; update if needed
curl -LO https://github.com/docker/buildx/releases/download/${VERSION}/buildx-${VERSION}.darwin-${ARCH}
mkdir -p ~/.docker/cli-plugins
mv buildx-${VERSION}.darwin-${ARCH} ~/.docker/cli-plugins/docker-buildx
chmod +x ~/.docker/cli-plugins/docker-buildx
docker buildx version # verify installation
#!/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,