Skip to content

Instantly share code, notes, and snippets.

View abhikandoi2000's full-sized avatar

Abhishek Kandoi abhikandoi2000

  • UC San Diego
  • San Diego, CA
View GitHub Profile
@paulirish
paulirish / readme.md
Last active April 2, 2024 20:18
resolving the proper location and line number through a console.log wrapper

console.log wrap resolving for your wrapped console logs

I've heard this before:

What I really get frustrated by is that I cannot wrap console.* and preserve line numbers

We enabled this in Chrome DevTools via blackboxing a bit ago.

If you blackbox the script file the contains the console log wrapper, the script location shown in the console will be corrected to the original source file and line number. Click, and the full source is looking longingly into your eyes.

@captn3m0
captn3m0 / README.md
Last active March 26, 2017 15:43
CCTC-Wave-I-VM-Challenge

I found the original CCTC Preliminary challenge disk in lab a few days back, and wanted to post it here in case someone wants to test their penetration testing/hacking skills. Harshil & Me had worked on it for the first round of the first iteration of CCTC (which we later won).

#Instructions

  1. Get the VMWare image from http://clipx.cloudapp.net/cctc/
  2. Hack.
  3. Credentials are student:student (username:password)
  4. Open <VM_IP>/cctc in your browser.

#Rules

@hallettj
hallettj / global-variables-are-bad.js
Created February 14, 2009 21:15
How and why to avoid global variables in JavaScript
// It is important to declare your variables.
(function() {
var foo = 'Hello, world!';
print(foo); //=> Hello, world!
})();
// Because if you don't, the become global variables.
(function() {