Skip to content

Instantly share code, notes, and snippets.

View andyjduncan's full-sized avatar

Andy Duncan andyjduncan

View GitHub Profile
@andyjduncan
andyjduncan / wordle.md
Last active February 2, 2022 12:58 — forked from huytd/wordle.md
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Set the number of letters:

@andyjduncan
andyjduncan / OAuth1AuthorizationUtil.groovy
Last active February 15, 2019 03:24 — forked from kyrielia/OAuth1AuthorizationUtil.groovy
Generating an OAuth1 Authorization header with HMAC-SHA1 in Groovy
import org.apache.commons.lang.RandomStringUtils
import javax.crypto.Mac
import javax.crypto.spec.SecretKeySpec
class OAuth1AuthorizationUtil {
public static String generateOAuthAuthorizationHeader(String method, String url, String consumerKey, String consumerSecret) {
generateOAuthAuthorizationHeader(method, url, consumerKey, consumerSecret, [:])