This file contains hidden or 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
| // APIStoreProps are properties that need to be | |
| // ignored when running APIStore.makeStore() | |
| const APIStoreProps = ['use', 'classes', 'constructor', 'init', 'state'] | |
| // getMethods returns methods defined | |
| // in a given class' prototype, except init and constructor | |
| const getMethods = (cls) => { | |
| return Object.getOwnPropertyNames(cls.prototype) | |
| .reduce((obj, prop) => { |
This file contains hidden or 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
| addEventListener('fetch', event => { | |
| event.respondWith(fetchAndCheckOrigin(event.request)) | |
| }) | |
| async function fetchAndCheckOrigin(req) { | |
| try { | |
| startTime = new Date(); | |
| const body = await req.body; | |
| const ip = req.headers.get('cf-connecting-ip'); | |
| const es = req.headers.get('cf-ipcountry'); |
This file contains hidden or 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
| Below are some notes for grabbing a list of domain users and other information via ADFS using acquired credentials. | |
| Install Apps | |
| Download and install visual studio 10 | |
| Downoad and install the Lync SDK | |
| https://www.microsoft.com/en-us/download/details.aspx?id=36824 (deprecated) | |
| http://go.microsoft.com/fwlink/?LinkID=248583 |
This file contains hidden or 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
| function isHubspotUrl(url) { | |
| var hubspotUrls = [ | |
| 'https://local.hubspot.com', | |
| 'https://app.hubspotqa.com', | |
| 'https://app.hubspot.com', | |
| 'https://meetings.hubspot.com' | |
| ]; | |
| return hubspotUrls.indexOf(url) > -1 | |
| } |
This file contains hidden or 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
| // identifier(s) should be in the following format: | |
| // { | |
| // resultName: 'name of key that will be used in the returned object', | |
| // identifier: 'identifier that will be searched for in the format' | |
| // } | |
| function breakDown(string, format, identifiers){ | |
| for(let i = 0; i < identifiers.length; i++){ | |
| const identifier = identifiers[i]; | |
| identifier.index = format.indexOf(identifier.identifier); | |
| } |
This file contains hidden or 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
| #!/bin/bash | |
| squiddir='/etc/squid/' | |
| lib='/usr/lib/squid/' | |
| conf="${squiddir}squid.conf" | |
| clients=() | |
| authusers=() | |
| passwd=() | |
| sudo apt-get -y install apache2-utils | |
| sudo apt-get -y install squid | |
| sudo /etc/init.d/squid stop |
This file contains hidden or 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
| function calculateSizeCode(size, type){ | |
| switch(type){ | |
| case 'USM': | |
| return size * 20 + 530 - 80; | |
| break; | |
| case 'USF': | |
| return size * 20 + 530 - 100; | |
| break; | |
| case 'UK': | |
| return size * 20 + 530 - 70; |
This file contains hidden or 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
| 'use strict'; | |
| const {Harvester} = require('captcha-manager'); | |
| const request = require('request-promise-native'); | |
| const harvester = new Harvester(); | |
| const availableCaptchaResponseTokens = []; | |
| const siteKey = '6LeWwRkUAAAAAOBsau7KpuC9AV-6J8mhw4AjC3Xz'; |
This file contains hidden or 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
| Setup | |
| ===== | |
| Enable docker without TLS | |
| ------------------------- | |
| Docker settings -> General -> Expose docker daemon on tcp://... | |
| Create Looback Address | |
| ---------------------- |
This file contains hidden or 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
| <div id="footerHSForm"></div> | |
| <!--[if lte IE 8]> | |
| <script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script> | |
| <![endif]--> | |
| <script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script> | |
| <script type="text/javascript"> | |
| hbspt.forms.create({ | |
| css: '', | |
| // Add portalId | |
| portalId: '', |