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
→ ssh -oKexAlgorithms=diffie-hellman-group1-sha1 -c 3des-cbc admin@192.168.1.254 | |
http://conntrack-tools.netfilter.org/manual.html | |
# Commands | |
? | |
help | |
logout | |
exit | |
quit |
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
license: cc-by-sa-4.0 |
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
license: cc-by-sa-4.0 |
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
javascript:(function(){hostname=document.location.hostname;window.open('https://www.ssllabs.com/ssltest/analyze.html?d=' + hostname + '&hideResults=on');})(); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
javascript:(function(){hostname=document.location;window.open('http://www.webpagetest.org?url=' + hostname);})(); |
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
select pages.url, pages.rank, req.url | |
from [httparchive:runs.latest_requests] as req | |
join ( | |
select url, rank, pageid, reqFont from [httparchive:runs.latest_pages] | |
) as pages on pages.pageid = req.pageid | |
where lower(req.mimetype) contains "font" | |
and pages.rank <= 100 and pages.reqFont > 0 | |
order by pages.rank |
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
Save this script as a bookmark, then use it to test the current page | |
javascript:(function(){hostname=document.location.hostname;window.open('https://securityheaders.io/?q=' + hostname);})(); |
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
1. Install nginx | |
sudo apt-get install nginx | |
configure nginx.conf | |
2. Install PHP | |
# Fast socket version |
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
# Parses JSON results from WPT e.g. http://www.webpagetest.org/result/140506_W2_c46551bac76ab45d87e7e2f32c3159e6/?f=json | |
# Relies on JSON to be locally downloaded first (avoid's timeouts when results need to be retrieved from archive) | |
# Produces a data.frame with selected values from all test results | |
# url in code is really a path to a file, all.urls is a data frame with a list of files | |
require(RCurl) | |
require(stringr) | |
require(rjson) |