Skip to content

Instantly share code, notes, and snippets.

@AmaanC
AmaanC / gist:4064316
Created November 13, 2012 06:32 — forked from ralt/gist:4061749
My Library when IE8 won't be supported anymore
NodeList.prototype.forEach = HTMLCollection.prototype.forEach = Array.prototype.forEach;
NodeList.prototype.map = HTMLCollection.prototype.map = Array.prototype.map;
NodeList.prototype.filter = HTMLCollection.prototype.filter = Array.prototype.filter;
NodeList.prototype.reduce = HTMLCollection.prototype.reduce = Array.prototype.reduce;
NodeList.prototype.every = HTMLCollection.prototype.every = Array.prototype.every;
NodeList.prototype.some = HTMLCollection.prototype.some = Array.prototype.some;
var By = {
id: function (id) { return document.getElementById(id) },
tag: function (tag, context) {
return (context || document).getElementsByTagName(tag)
@AmaanC
AmaanC / index.html
Created November 19, 2012 11:54
A CodePen by Abhishek Hingnikar. Boredom.css - Well i was getting bored so i am creating a bunch of realistic controls set
<center class="centerizer">
<p>Switch Awesomness on!</p>
<span>
<input id="toggle" type="checkbox" />
<label for="toggle" >
<div class="On">On</div>
<div class="Off">Off</div>
</label>
</span>
@AmaanC
AmaanC / irccloud-colorize.js
Created November 18, 2015 17:20 — forked from blha303/irccloud-colorize.js
IRCCloud replace & with formatting characters | &b is bold, &r is reset, &<number from 0 to 15> is a color | I'm going to regret this.
var inputbox = $('#bufferInputView' + cb().bid());
var msg = inputbox.val();
inputbox.val("");
var cc = "\u0003";
var bold = "\u0002";
var reset = "\u000f";
var italic = "\u0016";
var underline = "\u001f";
cb().say(msg.replace(/&b/g,bold).replace(/&r/g,reset).replace(/&i/g,italic).replace(/&u/g,underline).replace(/&/g,cc));
@AmaanC
AmaanC / spritesheetTest.html
Created January 3, 2013 22:17
A test to see if the HTML5 canvas element draws part of a big spritesheet on various devices. So far, it's worked for me on Chrome and Firefox, on both desktop, and Android. No luck on iOS.
<canvas id='test' width='400' height='400'></canvas>
<script>
var img = new Image();
img.src = 'http://fc01.deviantart.net/fs70/f/2012/187/b/b/ben_10__my_sprite_sheet_by_pyroman16-d56744g.png';
var ctx = document.getElementById('test').getContext('2d');
img.onload = function() {
ctx.drawImage(img, 0, 0, 300, 300, 0, 0, 300, 300);
};​
@AmaanC
AmaanC / JS13k.md
Created September 13, 2015 15:41
A list of SO Chat's JS13k submissions
@AmaanC
AmaanC / js13kentries.md
Created September 14, 2014 05:00
A compilation of JS13k entries made by people in the JavaScript room on StackOverflow
@AmaanC
AmaanC / wiki-trove.md
Last active September 7, 2016 16:28
Wiki-Trove
@AmaanC
AmaanC / textbooks.md
Created December 12, 2016 12:49 — forked from erikroyall/textbooks.md
Alex Stef's list of freely-available mathematics textbooks

Textbooks in Mathematics

A list of links to useful mathematical textbooks available for free on the Internet. They are all legal and maintained by their authors or by the legitimate publisher.

All the documents are in English. They are in a printable format - Postscript or Adobe Portable Document Format. You are free to download, read and print them. Here are some links to other sites offering lists of free mathematical textbooks.

For any comments, please, contact me: alex_stef@yahoo.com

How to pass the OSCP

  1. Recon
  2. Find vuln
  3. Exploit
  4. Document it

Recon

Unicornscans in cli, nmap in msfconsole to help store loot in database.