Skip to content

Instantly share code, notes, and snippets.

Avatar
🐶
Got a dog.

Carlos Urreta curreta

🐶
Got a dog.
View GitHub Profile
@curreta
curreta / twitch-videoad.js
Last active Nov 6, 2020
twitch-videoad.js
View twitch-videoad.js
/// twitch-videoad.js
const origFetch = window.fetch;
window.fetch = (url, init, ...args) => {
if (typeof url === "string") {
if (url.includes("/access_token")) {
url = url.replace("player_type=site", "player_type=site");
} else if (
url.includes("/gql") &&
init &&
typeof init.body === "string" &&
@curreta
curreta / bikesdirect.sh
Created Apr 24, 2014
Bikes Direct Downloader
View bikesdirect.sh
#!/bin/bash
##download to disk
##wget -r -l 1 http://www.bikesdirect.com/products/road_bikes.htm
echo "<html><body>"
for sz in $(seq 49 64);
do
echo "<a href="size/${sz}/avail.txt">Size $sz:</a><br/>"
mkdir -p size/$sz;