Skip to content

Instantly share code, notes, and snippets.

View robherley's full-sized avatar
curl tiny.coffee

Rob Herley robherley

curl tiny.coffee
View GitHub Profile
@robherley
robherley / hubber.go
Last active June 8, 2022 17:25
Sort by ID
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"sort"
)
@robherley
robherley / status.go
Created June 7, 2022 01:45
GraphQL Status client for microplane
const queryStatusCheckRollupState = `query($owner: String!, $name: String!, $oid: GitObjectID) {
repository(owner: $owner, name: $name) {
object(oid: $oid) {
... on Commit {
statusCheckRollup {
state
}
}
}
}
@robherley
robherley / crc64.ts
Last active April 26, 2022 23:07
crc64 investigation
import fs from 'fs'
import crypto from 'crypto'
import * as Benchmark from 'benchmark'
// When transpile target to >= ES2020 (prob after dropping node 12) these can be changed to bigint literals
// ts(2737)
// Based on 0x9A6C9329AC4BC9B5 Polynomial from Azure Storage https://github.com/Azure/azure-storage-net
const TABLE = [
BigInt("0x0000000000000000"), BigInt("0x7F6EF0C830358979"), BigInt("0xFEDDE190606B12F2"), BigInt("0x81B31158505E9B8B"),
@robherley
robherley / 🥧.md
Created April 19, 2022 01:43
🧜‍♀️
%%{init: {'theme': 'base', 'themeVariables': { 'fontFamily': 'monospace', 'pieSectionTextSize': '24px', 'darkMode': true, 'pie1': '#2da44e', 'pie2': '#dbab0a', 'pie3': '#cf222e' }}}%%
pie title 🧪 GitHubActionsTestLogger.Tests
    "Passed" : 10
    "Skipped" : 2
    "Failed" : 1
@robherley
robherley / main.go
Last active March 17, 2022 20:28
Checking Chunk Uploads
package main
import (
"crypto/md5"
"fmt"
"os"
)
const chunkSize = 8388608
@robherley
robherley / config.json
Created December 19, 2021 23:19
DDNS Config
{
"cloudflare": [
{
"authentication": {
"api_token": "<omitted>"
},
"zone_id": "<omitted>",
"subdomains": ["*"],
"proxied": false
}
According to all known laws
of aviation,
there is no way a bee
should be able to fly.
Its wings are too small to get
its fat little body off the ground.
@robherley
robherley / checker.js
Created April 6, 2021 14:19
vaccine checker
const axios = require("axios");
const _ = require("lodash");
const URL =
"https://am-i-eligible.covid19vaccine.health.ny.gov/api/get-providers";
const PAYLOAD = {
address: "11746",
applicationId: "5617632692458176706",
dob: "03/02/1997",
miles: "100",
package main
import (
"fmt"
"image"
"image/color"
"image/png"
"os"
"github.com/nfnt/resize"
package main
import (
"context"
"fmt"
"net/http"
"time"
"github.com/gorilla/websocket"
_ "github.com/joho/godotenv/autoload"