Skip to content

Instantly share code, notes, and snippets.

@juliocesar
Forked from chrislloyd/mock_ajax.js
Created December 1, 2009 05:34
Show Gist options
  • Save juliocesar/246093 to your computer and use it in GitHub Desktop.
Save juliocesar/246093 to your computer and use it in GitHub Desktop.
// jQuery._ajax = jQuery.ajax;
// jQuery.ajax = function(opts){
// var self = this;
// return setTimeout(function(){
// jQuery._ajax.call(self, opts);
// }, 2000);
// };
// As if man :-)
$ sudo ipfw pipe 1 config bw 50KByte/s
$ sudo ipfw add 1 pipe 1 src-port 4567
$ sudo ipfw add 1 pipe 1 dst-port 4567
// Restore by
$ sudo ipfw delete 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment