Skip to content

Instantly share code, notes, and snippets.

To install tcptraceroute on Debian/Ubuntu:

$ sudo apt-get install tcptraceroute

To install tcptraceroute on CentOS/REHL, first set up RepoForge on your system, and then:

$ sudo yum install tcptraceroute
@hu9msbedu
hu9msbedu / osx-10.9-setup.md
Last active September 16, 2015 06:14 — forked from kevinelliott/osx-10.9-setup.md
Clean Install – Mac OS X 10.9 Mavericks

Mac OS X 10.9 Mavericks

Custom recipe to get OS X 10.9 Mavericks running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install.

Install Software

The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis.

Install from App Store

deb http://mirror.rackspace.com/debian jessie main
deb http://mirror.rackspace.com/debian jessie-updates main
deb http://mirror.rackspace.com/debian-security jessie/updates main
https://github.com/marten-cz/casperjs-deb --
sudo add-apt-repository ppa:martin.malek/testing && sudo apt-get update && sudo apt-get install casperjs
tep 1: Installing PhantomJS
- Download the latest source
wget http://phantomjs.googlecode.com/files/phantomjs-1.8.2-linux-x86_64.tar.bz2
deb http://mirror.rackspace.com/debian jessie main
deb http://mirror.rackspace.com/debian jessie-updates main
deb http://mirror.rackspace.com/debian-security jessie/updates main

Using Dnsmasq with Ubuntu for VM web application testing

When using virtual machines for testing web apps in various browsers (e.g. Internet Explorer), I have found it rather tedious having to continually tweak the hosts file within each new VM for the purpose of adding entries pointing back to the host machine's development web server address.

Instead, the steps below will setup Dnsmasq on a Ubuntu 14.04LTS or 12.04LTS host machine for the purpose of serving both it's own DNS queries and that of virtual machine guests. Dnsmasq will parse your host's /etc/hosts file where we will keep a single set of DNS entires to our test web applications.

Method 1

#!/bin/bash
apt-get update
apt-get upgrade -y --show-upgraded
apt-get install -y build-essential libncurses5-dev
version=$(uname -r | grep -Po "([0-9.]+)" | head -n 1)
kernel_version=$(uname -r)
wget https://www.kernel.org/pub/linux/kernel/v3.0/linux-$version.tar.gz
tar xf linux-$version.tar.gz
cd ./linux-$version