Skip to content

Instantly share code, notes, and snippets.

// Full article published here:
// http://dezoito.github.io/2020/05/16/node-asynchronous-list-searches-with-bing-api.html
// Bing Search Configs
const CognitiveServicesCredentials = require('ms-rest-azure').CognitiveServicesCredentials;
const WebSearchAPIClient = require('azure-cognitiveservices-websearch');
const BING_SEARCH_API_KEY = '<<your_subscription_key_here>>';
// aux: generates pseudorandom numbers within a range
const randomIntFromInterval = (min, max) => { // min and max included
#!/usr/bin/env python3
"""
Parse scan.io archive to find specific HTTP responses.
Will save positive hits to <timestamp>/<ip>.log
Usage:
$ parse-scans.io.py https://scans.io/data/rapid7/sonar.http/20151110-http.gz
@dezoito
dezoito / gulpfile.js
Created January 4, 2016 19:24
Super simple Django + BrowserSync Gulpfile
// Assuming you already have NodeJS, npm and gulp installed
// and followed instructions at:
// https://www.browsersync.io/docs/gulp/
//
// save this file at <<DJANGO PROJECT ROOT>>
// on your terminal:
// $ cd <<DJANGO PROJECT ROOT>>
// $ gulp
// this will open a browser window with your project