I hereby claim:
- I am thechriswalker on github.
- I am thechriswalker (https://keybase.io/thechriswalker) on keybase.
- I have a public key ASDIrrfPfTBrckyfliYxYnZ1FuzmlJGvUu42P-mrtAKWvQo
To claim this, I am signing this object:
| // Turn into a bookmarklet, or user-script or paste into your console. | |
| if (!wordle.extraHardMode) { | |
| wordle.extraHardMode = true; | |
| // toggle hardMode | |
| const state = JSON.parse(localStorage.gameState); | |
| state.hardMode = true; | |
| localStorage.gameState = JSON.stringify(state); | |
| const originalEvaluateRow = wordle.bundle.GameApp.prototype.evaluateRow; | |
| wordle.bundle.GameApp.prototype.evaluateRow = function extraHardMode() { |
| { | |
| async function hmac_sha256(key, str) { | |
| // encode the string key as bytes using UTF8 encoding. | |
| const keyBytes = new TextEncoder().encode(key); | |
| // generate a key for use in signing with HMAC-SHA256 | |
| const secretKey = await crypto.subtle.importKey( | |
| "raw", keyBytes, | |
| { name: "HMAC", hash: "SHA-256" }, | |
| false, ['sign'] | |
| ); |
| const { execSync } = require('child_process'); | |
| const { readFileSync, writeFileSync } = require('fs'); | |
| const { relative } = require('path'); | |
| const utf8 = { encoding: 'utf8' }; | |
| function writeJson(path, content) { | |
| writeFileSync(path, JSON.stringify(content, null, 2) + '\n', utf8); | |
| } | |
| function readJson(path) { |
I hereby claim:
To claim this, I am signing this object:
| package log | |
| import ( | |
| log "github.com/sirupsen/logrus" | |
| ) | |
| /** | |
| * You can enforce UTC on a single formatter with this wrapper | |
| */ | |
| func EnforceUTC(f log.Formatter) log.Formatter { |
| <!DOCTYPE html> | |
| <html> | |
| <head> <title>{{html .Name}}</title> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <style> | |
| * { padding: 0; margin: 0; } | |
| body { | |
| font-family: sans-serif; |
| # Should have forked https://gist.github.com/michiel/1064640, but hey | |
| location / { | |
| if ($request_method = 'OPTIONS') { | |
| add_header 'Access-Control-Allow-Origin' '*'; | |
| add_header 'Access-Control-Allow-Credentials' 'true'; | |
| add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS'; | |
| add_header 'Access-Control-Allow-Headers' 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'; | |
| add_header 'Access-Control-Max-Age' 1728000; | |
| add_header 'Content-Type' 'text/plain charset=UTF-8'; | |
| add_header 'Content-Length' 0; |