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
-- Query 1: Identifying Access from Suspected IP Addresses | |
SELECT | |
* | |
FROM | |
snowflake.account_usage.login_history | |
WHERE | |
client_ip IN ( | |
'104.223.91.28', '198.54.135.99', '184.147.100.29', '146.70.117.210', | |
'198.54.130.153', '169.150.203.22', '185.156.46.163', '146.70.171.99', | |
'206.217.206.108', '45.86.221.146', '193.32.126.233', '87.249.134.11', |
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
driver.manage().window().setSize(1280, 1280); | |
driver.get('http://wesleyhales.com').then(function() { | |
driver.wait(function () { | |
return driver.executeScript('' + | |
'if(performance.getEntriesByType("resource").length > 0){return performance.getEntriesByType("resource")}else{return false}' + | |
'').then(function (return_value) { | |
if(return_value){ | |
console.log(return_value); | |
return true; |
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
var capabilities = { | |
'applicationName' : 'sfo1-node' | |
}; | |
var driver = new webdriver.Builder() | |
.withCapabilities(capabilities) | |
.forBrowser('chrome') | |
.setChromeOptions(options) | |
.usingServer('http://[your hub IP]:4444/wd/hub') | |
.build(); |
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
var exports = module.exports = {}; | |
var webdriver = require('selenium-webdriver'), | |
chrome = require('selenium-webdriver/chrome'), | |
fs = require('fs'); | |
var options = new chrome.Options(); | |
var logging_prefs = new webdriver.logging.Preferences(); | |
logging_prefs.setLevel(webdriver.logging.Type.PERFORMANCE, | |
webdriver.logging.Type.SERVER, |
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
curl -O https://raw.githubusercontent.com/wesleyhales/speedgun/master/core/speedgun.js && \ | |
phantomjs speedgun.js http://wesleyhales.com -o junit --screenshot |
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
##before state | |
curl -Lk "http://speedgun.io/rest/performance/go?cached=false&email=&url=http:%2F%2Fwww.wesleyhales.com" | jq -r '.uuid' >> beforeUuids.txt |
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/sh | |
args=("$@") | |
#SERVER_MODE=${args[0]} | |
#echo "running in $SERVER_MODE mode" | |
if $(curl -s --head --request GET http://localhost | grep "200 OK" > /dev/null); then | |
echo "site is up" | |
else |
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
gem install travis | |
travis encrypt -r username/repo_name "GH_TOKEN=dfjdshfjksdhfjkshdjkfhdsjkfhjksdhk" |
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
"id": 2126104, | |
"url": "https://api.github.com/authorizations/2126104", | |
"app": { | |
"name": "token for pushing from travis (API)", | |
"url": "http://developer.github.com/v3/oauth/#oauth-authorizations-api" | |
}, | |
"token": "dfjdshfjksdhfjkshdjkfhdsjkfhjksdhk", | |
"note": "token for pushing from travis", | |
"note_url": null, |
NewerOlder