Skip to content

Instantly share code, notes, and snippets.

@teohm
Last active January 3, 2016 07:29
Show Gist options
  • Save teohm/8429958 to your computer and use it in GitHub Desktop.
Save teohm/8429958 to your computer and use it in GitHub Desktop.
Steps to replicate HTTP timed out using Singtel internet in SG office.

Setup

brew install node
git clone https://gist.github.com/8429958.git test-singtel

Run

cd test-singtel
bash run.sh

# run with log + time
{ time bash run.sh; } > log-singtel.txt 2>&1   

Expected results

installation completed

Actual results

http request timed out & freezes in the middle of installation

{
"name": "test-singtel-internet-connection",
"version": "0.0.0",
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-compass": "~0.5.0",
"grunt-contrib-jshint": "~0.6.3",
"grunt-contrib-cssmin": "~0.6.0",
"grunt-contrib-connect": "~0.5.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-htmlmin": "~0.1.3",
"grunt-bower-requirejs": "~0.7.0",
"grunt-contrib-requirejs": "~0.4.1",
"grunt-contrib-imagemin": "~0.2.0",
"grunt-contrib-watch": "~0.5.2",
"grunt-rev": "~0.1.0",
"grunt-autoprefixer": "~0.2.0",
"grunt-usemin": "~0.1.10",
"grunt-mocha": "~0.4.0",
"grunt-modernizr": "~0.3.0",
"grunt-svgmin": "~0.2.0",
"grunt-concurrent": "~0.3.0",
"load-grunt-tasks": "~0.1.0",
"time-grunt": "~0.1.1",
"grunt-exec": "~0.4.3"
},
"engines": {
"node": ">=0.8.0"
}
}
#!/usr/bin/env bash
date
rm -rf node_modules
npm config set loglevel info
npm cache clear
npm install
date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment