Skip to content

Instantly share code, notes, and snippets.

curl --location 'https://collection.consumer-internal.gopuff.com/graphql' \
--header 'X-GP-Point-Of-Sale: US' \
--header 'Accept-Language: en' \
--header 'Content-Type: application/json' \
--data '{"query":"{\n collections(keys:[\"txvxyrdV\"], locationIds:\"335,1629\", pageContextType:COLLECTION_PAGE, pageContextCollectionId:\"txe0Kwob\") {\n id\n totalProductCount\n inStockProductCount\n products(filter:{pageSize:30}) {\n totalCount\n nextPageToken\n items {\n id\n adIndex\n adTrackingId\n }\n userFilters {\n displayType\n key\n label\n multiSelect\n sections {\n choices {\n icon\n key\n label\n state\n }\n key\n label\n }\n
@ajhodges
ajhodges / validator.go
Created February 11, 2025 22:13
ERC-6492 Validator
package main
import (
"bytes"
"context"
"errors"
"fmt"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
Models GPT-4o mini SmolLM2-360M-Instruct SmolLM2-135M-Instruct
Accuracy 100.00 % 40.00 % 98.67 %
Precision 100.00 % 35.71 % 100.00 %
Recall 100.00 % 100.00 % 96.00 %
ROUGE Precision 54.73 % 46.96 % 65.48 %
ROUGE Recall 50.55 % 41.42 % 75.90 %
@will-hill
will-hill / polars_cudf.ipynb
Created February 11, 2025 22:12
Polars_cuDF.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AleksandarHaralanov
AleksandarHaralanov / DiscordWebhook.java
Last active February 11, 2025 22:12 — forked from k3kdude/DiscordWebhook.java
Java DiscordWebhook class to easily execute Discord Webhooks
import javax.net.ssl.HttpsURLConnection;
import java.awt.Color;
import java.io.IOException;
import java.io.OutputStream;
import java.lang.reflect.Array;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@BlowerPot
BlowerPot / readme.txt
Created February 11, 2025 22:12
Demolite (Puzzlescript Plus Script)
Play this game by pasting the script in https://auroriax.github.io/PuzzleScript/editor.html

Here is the Javadoc with HTML formatting for the provided Java class OperationMSA. Each method has its logic explained, and detailed Javadoc has been added to the methods for clarity:


Class-Level Documentation

/**
 * The {@code OperationMSA} class handles processing of MSA (Merchant Service Account) operations
 * involving response parsing and error handling from EDL (Enterprise Data Layer) service calls.
@valentin-nasta
valentin-nasta / 0-go-os-arch.md
Created February 11, 2025 22:11 — forked from asukakenji/0-go-os-arch.md
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android
@vadamk
vadamk / ed.code-snippets
Created February 11, 2025 22:10
vscode code-snippets
{
"Export Default": {
"scope": "javascript,javascriptreact,typescript,typescriptreact",
"prefix": "ed",
"body": [
"export { default } from \".\/${TM_DIRECTORY/.*\\/(.*)$/$1/g}\";",
""
]
}
}
@geludwig
geludwig / abuseipdb_report.sh
Created February 11, 2025 22:10
Search caddy log and report IPs to AbuseIPDB
#!/bin/bash
### ABUSEIPDB REPORT SCRIPT ###
# Run every 1 minute with crontab (or change TIMER value in this script)!
# Read caddy log (debug must be enabled)
# Extract IP from pattern: "no certificate matching TLS"
# Add ip to abuse.log and delete duplicates (keep oldest)
# Report new ips to AbuseIPDB
# Delete ips older than 14 days from abuse.log