Skip to content

Instantly share code, notes, and snippets.

View ghostbar's full-sized avatar

Jose-Luis Rivas ghostbar

View GitHub Profile
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(', '));
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": [
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
; <<>> 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
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 * * *
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
@ghostbar
ghostbar / LICENSE
Last active November 11, 2022 18:30
Copyright © 2014 Jose Luis Rivas
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in

Keybase proof

I hereby claim:

  • I am ghostbar on github.
  • I am ghostbar (https://keybase.io/ghostbar) on keybase.
  • I have a public key whose fingerprint is D278 F9C1 5E54 61AA 3C1E 2FCD 13EC 43EE B9AC 8C43

To claim this, I am signing this object:

@ghostbar
ghostbar / loggly.service
Created March 26, 2015 22:57
loggly.service
[Unit]
Description=Loggly Forwarder
[Service]
ExecStart=/bin/sh -c "journalctl -o short -f | awk '{ print \"\<34\>1\", $0; fflush(); }' | awk '{ print $0, \"[your-consumer-token-from-loggly@41058 tag='deis']\" }' | ncat --ssl logs-01.loggly.com 6514"
[Install]
WantedBy=multi-user.target
[X-Fleet]
a="google.com
www.facebook.com
www.tunnelbear.com
pastebin.com
pbs.twimg.com/media/Bgyr0dcIQAEbWIX.jpg
www.ntn24.com
www.clarin.com
pastehtml.com
aguacateverde.com
analisis24.com