This file contains hidden or 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
// ==UserScript== | |
// @name NYT Spelling Bee QOL | |
// @namespace http://tampermonkey.net/ | |
// @source https://gist.github.com/beaulac/6611fc1f0a7a88e0481fb103998a4eee | |
// @version 0.2 | |
// @description Small NYTimes spelling bee improvements; rough WIP | |
// @author github.com/beaulac | |
// @match https://www.nytimes.com/puzzles/spelling-bee | |
// @icon https://www.google.com/s2/favicons?domain=nytimes.com | |
// @grant none |
This file contains hidden or 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 | |
set -euo pipefail; | |
## | |
# NETLIFY VARS | |
# (https://docs.netlify.com/configure-builds/environment-variables/#read-only-variables) | |
## | |
PUBLIC_URL="${URL}"; | |
if [[ -z "${PUBLIC_URL}" ]]; then |
This file contains hidden or 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
/* | |
!/packages/* | |
/packages/babel-core | |
/packages/babel-standalone | |
/packages/babel-preset-env-standalone | |
/packages/babel-parser | |
/packages/babel-types | |
/packages/babel-polyfill | |
/packages/babel-plugin-transform-runtime |
This file contains hidden or 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 | |
set -euo pipefail; | |
IP_RANGE=${1-}; | |
if [[ -z "${IP_RANGE}" ]]; then | |
echo "Must specify network range to scan, e.g. 192.168.2.0/24"; | |
exit 1; | |
fi |
This file contains hidden or 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 | |
# SAFEMODE | |
set -euxo pipefail; | |
## | |
# Instructions from: https://www.openproject.org/download-and-installation/ | |
## | |
# 1. Import the packager.io repository signing key | |
wget -qO- https://dl.packager.io/srv/opf/openproject-ce/key | sudo apt-key add - |
This file contains hidden or 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 | |
SRC=$(realpath ${1}) | |
DST=$(realpath ${2}) | |
find ${SRC} -type f -exec sh -c 'ln -s "{}" "'${DST}'/$(basename "{}")"' \; |
This file contains hidden or 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 | |
FILE=$(realpath ${1}); | |
OLD=$2; | |
NEW=$3; | |
# Default fuzz: 25% | |
FUZZ=${4:-25}; |
This file contains hidden or 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
'use strict'; | |
const fs = require('fs'); | |
const readline = require('readline'); | |
const [, , filename] = process.argv; | |
if (!filename) { | |
throw Error('NO FILENAME SPECIFIED'); | |
} |
This file contains hidden or 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
'use strict'; | |
const fs = require('fs'); | |
const readline = require('readline'); | |
const [, , filename] = process.argv; | |
if (!filename) { | |
throw Error('NO FILENAME SPECIFIED'); | |
} |
This file contains hidden or 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
(function () { | |
const headerRow = 'product_handle,state,rating,title,author,email,location,body,reply,created_at,replied_at'; | |
const escapeQuotes = s => s.replace('"', '\\"'); | |
const fillTemplate = ({ rating, title, author, body, created_at }) => `zenstone-professional-rapid-stone-warmer,published,${rating},"${escapeQuotes( | |
title)}","${escapeQuotes(author)}",[email protected],,"${escapeQuotes(body)}",,"${escapeQuotes(created_at)}",`; | |
function parseReview(review) { | |
const ratingContainer = review.querySelector('[data-hook="review-star-rating"]'); | |
const starClass = Array.from(ratingContainer.classList).find(cls => cls.match(/a-star-(\d)/)); |
NewerOlder