Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| class DataBinder extends jQuery | |
| pubSub: null | |
| constructor: (objectid) -> | |
| @pubSub = $ {} | |
| attribute = "data-bind-#{objectid}" | |
| message = "#{objectid}:change" | |
| $(document).on "change", "[#{attribute}]", (event) => | |
| $elem = $(event.target) |
| Backbone.Collection.prototype.update = function(col_in){ | |
| var that = this, | |
| ids = []; | |
| var cur_ids = that.pluck('id'), | |
| new_ids = _(col_in).pluck('id'), | |
| to_remove = _(cur_ids).difference(new_ids); | |
| this.remove(to_remove); |
| local coroutine = require "coroutine" | |
| local io = require "io" | |
| local math = require "math" | |
| local nmap = require "nmap" | |
| local shortport = require "shortport" | |
| local sslcert = require "sslcert" | |
| local stdnse = require "stdnse" | |
| local string = require "string" | |
| local table = require "table" | |
| local tls = require "tls" |
| <? | |
| $launchkey->ping(); | |
| ?> |
| from scapy.all import * | |
| print sr1(IP(dst="4.2.2.1")/ICMP()).summary() |
| // npm install bcrypt | |
| var bcrypt = require('bcrypt'); | |
| var password = process.argv[2]; | |
| bcrypt.genSalt(function(err, salt) { | |
| if (err) { | |
| console.log(err); | |
| } | |
| console.log('salt: ' + salt + ' (length: ' + salt.length + ')'); |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |