This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
OS_CODE="linux_amd64" | |
# TODO: check the OS and architecture and make this work across platforms | |
VERSION="v2.2.0" | |
# TODO: scrape the GitHub README for the latest version | |
TARGET=~/bin | |
# TODO: accept command line options, and prompt if nothing is specified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIST_DEPS=0 | |
CENTOS_DEPS=0 | |
GCONF_COMPILE=0 | |
GCONF_INSTALL=0 | |
PIXBUF_INSTALL=0 | |
PIXBUF_COMPILE=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Paste in console | |
var getThings = function(){ | |
var divs = [...document.querySelectorAll("#manufacture__container > div")] | |
var things = divs.map(function(e){ | |
var result = {e}; | |
var spans = [...e.getElementsByTagName("span")] | |
spans.map(function(s){ | |
var str = s.innerText.replace(/[^/.0-9]/g, ''); | |
var a = str.split("/"); | |
var num = +a[0]; |