This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const BASE_URL = "https://api.pitchbook.com" | |
const TOKEN = "TOKEN HERE" | |
$.ajaxSetup({ | |
headers: { 'authorization': TOKEN } | |
}); | |
const generalSearch = function(name) { | |
var def = jQuery.Deferred(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Based on answer from Gareth here: https://apple.stackexchange.com/questions/88396/forcing-the-wifi-password-entry-dialogue-to-display | |
// | |
#> ifconfig | |
// this will give you a list of MAC addresses | |
// or | |
#> sudo ifconfig en0 | |
// will give you a specific MAC address (you will be prompted for your system's admin password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sha1 from "sha1"; | |
import axios from "axios"; | |
const BREECH_TOLERENCE = 100; | |
isBreeched = password => { | |
const pwSha1 = sha1(password).toUpperCase(); | |
const salt = pwSha1.slice(0, 5); | |
const pepper = pwSha1.slice(5); | |
return axios | |
.get(`https://api.pwnedpasswords.com/range/${salt}`) |
OlderNewer