Skip to content

Instantly share code, notes, and snippets.

@sshadmand
sshadmand / Basic script
Created July 21, 2017 16:01
Pitchbook API with JS and JQuery
const BASE_URL = "https://api.pitchbook.com"
const TOKEN = "TOKEN HERE"
$.ajaxSetup({
headers: { 'authorization': TOKEN }
});
const generalSearch = function(name) {
var def = jQuery.Deferred();
@sshadmand
sshadmand / In Terminal
Last active June 30, 2022 11:47
When Public WiFi (like Airport) wont re-prompt for login
//
// 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
@sshadmand
sshadmand / Breech_Checker.js
Last active September 29, 2018 07:05
Check Passwords Against BreechList Fast
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}`)