Skip to content

Instantly share code, notes, and snippets.

View hashtagchris's full-sized avatar
💭
I may be slow to respond.

Chris Sidi hashtagchris

💭
I may be slow to respond.
View GitHub Profile
@hashtagchris
hashtagchris / posttest-config.json
Last active May 20, 2024 13:36
posttest script config that can by applied to package.json using https://www.npmjs.com/package/impose
{
"scripts": {
"posttest": "npm run lint && npm run style"
}
}
// Example usage: node gunzip_http_response.js http://www.httpbin.org/gzip
const http = require('http');
const zlib = require('zlib');
const url = process.argv[2];
console.log(`Requesting ${url}...`);
const req = http.request(url);
@hashtagchris
hashtagchris / azureDevOpsPRCommentSearch.js
Last active April 4, 2024 20:12
Quick and dirty script to search comment threads in Azure DevOps pull requests.
// Script pre-reqs
// 1. Install nodejs and npm
// 2. Run `npm install`
// 3. Set the AZURE_DEVOPS_PAT environment variable, or create a .env file and assign a value (AZURE_DEVOPS_PAT=...)
// TODO: Retrieve multiple pages of PRs, threads.
require("dotenv").config();
const request = require('request-promise-native');