Skip to content

Instantly share code, notes, and snippets.

@nixjdm
nixjdm / proxy.py
Last active February 8, 2018 04:09
A simple proxy server you run locally. A newer and better version of this can be found at https://github.com/terminal-labs/simple-proxy
#! /usr/bin/env python
#
# This will route a webpage and all of it's included src and hrefs
# calls through this proxy.
#
# This is meant to be used in a virtualenv with pip installed packages:
# tornado beautifulsoup4 requests lxml
# Note: the proxy terminal output will display errors related to
# urllib3 and SSL unless python >= 2.7.9 is used
#
@nixjdm
nixjdm / speedtest.sh
Last active July 30, 2023 14:28
This bash script repeatedly tests the page load times of a website and gives some basic stats for the results.
#!/usr/bin/env bash
########################################################################
# Author: Joseph Nix nixjdm@terminallabs.com 6-18-2015
# Copyright (c) 2015 Terminal Labs
# Distributed under the MIT License.
# (See http://opensource.org/licenses/MIT)
#
# This tests the average page load time for a given url. It can be set
# to run any number of tests, and then will average the results.
#