This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ghostbar@ur:~$ http_proxy=190.198.76.32:8080 curl -I "http://google.com" | |
HTTP/1.1 301 Moved Permanently | |
Location: http://www.google.com/ | |
Content-Type: text/html; charset=UTF-8 | |
Date: Sat, 15 Feb 2014 16:56:55 GMT | |
Expires: Mon, 17 Mar 2014 16:56:55 GMT | |
Cache-Control: public, max-age=2592000 | |
Server: gws | |
Content-Length: 219 | |
X-XSS-Protection: 1; mode=block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
traceroute to 190.93.243.15 (190.93.243.15), 30 hops max, 60 byte packets | |
1 192.168.0.1 (192.168.0.1) 3.127 ms 3.940 ms 3.923 ms | |
2 * * * | |
3 * * * | |
4 * * * | |
5 * * * | |
6 * * * | |
7 * * * | |
8 * * * | |
9 * * * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; <<>> DiG 9.8.3-P1 <<>> @200.44.32.12 pastebin.com | |
; (1 server found) | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 32931 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 | |
;; QUESTION SECTION: | |
;pastebin.com. IN A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SchemaName.findOne({ | |
_id: TheObjectId | |
}).lean().exec(theExtenderFunction); /* the .lean() is to make it JSON and modifiable */ | |
function theExtenderFunction (err, firstResponse) { | |
if (err) | |
throw err; /* please handle your errors */ | |
AnotherSchema.findOne({ | |
_id: firstResponse.theOtherObjectId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var socketio = require('socket.io-client'); | |
var client = socketio.connect('ws://yahoobingo.herokuapp.com'); | |
client.on('connect', function(){ | |
console.log("Connected..."); | |
var card = {}; | |
var results = { | |
"B": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function unkMH(req, res) { | |
var allowHeaders; | |
if (req.method.toLowerCase() === 'options') { | |
allowHeaders = ['Accept', 'Accept-Version', 'Content-Type', 'Api-Version', 'Authorization']; | |
if (res.methods.indexOf('OPTIONS') === -1) { | |
res.methods.push('OPTIONS'); | |
} | |
res.header('Access-Control-Allow-Credentials', true); | |
res.header('Access-Control-Allow-Headers', allowHeaders.join(', ')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
express = require "express" | |
app = express() | |
console.log app.settings.env | |
oneDay = 86400000 | |
pushState = (req, res) -> | |
newUrl = req.protocol + '://' + req.get('Host') + '/#' + req.url | |
res.redirect newUrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var search = $location.search(); | |
var newObject = {}; | |
_.each(search, function(value, key) { | |
newObject[key.toLowercase()] = value; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_ = require "lodash" | |
fs = require "fs" | |
array = fs.readFileSync("css-colors.txt").toString().split("\n") | |
result = _.countBy array, (data) -> | |
return data | |
console.log result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env coffee | |
fs = require 'fs' | |
im = require 'imagemagick' | |
_ = require 'underscore' | |
srcdir = __dirname + '/enviar' | |
destdir = __dirname + '/done' | |
log = (message) -> | |
console.log message |