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
if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () { | |
var Storage = function (type) { | |
function createCookie(name, value, days) { | |
var date, expires; | |
if (days) { | |
date = new Date(); | |
date.setTime(date.getTime()+(days*24*60*60*1000)); | |
expires = "; expires="+date.toGMTString(); |
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
const ua = require("universal-analytics"); | |
const request = require("request-promise"); | |
const { https } = require("firebase-functions"); | |
function getUserID (obj) { | |
if (!obj.source) { | |
return "dialogflow"; | |
} else { | |
switch (obj.source) { | |
case "twilio": |
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
/* | |
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message | |
* Digest Algorithm, as defined in RFC 1321. | |
* Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 | |
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet | |
* Distributed under the BSD License | |
* See http://pajhome.org.uk/crypt/md5 for more info. | |
*/ | |
/* |
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
# git | |
scoop install git | |
# add the optional 'extras' bucket | |
scoop bucket add extras | |
# utils | |
scoop install colortool cmder 7zip curl sudo coreutils grep cygwin totalcommander nvm paint.net | |
# colaboration |
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
/* global mongoose, Quote, VSError */ | |
/** | |
* Quote.js | |
*/ | |
module.exports = { | |
attributes: { | |
active: { |
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
/* CUSTOM FORM CONTROLS */ | |
input[type="text"],input[type="password"]{ | |
font-size:13px; | |
padding: 3px 7px; | |
border:none; | |
box-shadow: inset 0 1px 2px #999; | |
outline: none; | |
color:#444; | |
margin-right:10px; | |
border-bottom: 1px solid #eee; |
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
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> ~/.ssh/authorized_keys' |
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
<?php | |
# CI Reference: http://codeigniter.com/user_guide/libraries/file_uploading.html | |
# SendGrid Reference: http://docs.sendgrid.com/documentation/api/parse-api-2/ | |
public function input(){ | |
//file upload configuration | |
$config['upload_path'] = './uploads/'; | |
$config['allowed_types'] = 'gif|jpg|png|jpeg'; | |
$config['max_size'] = '8192'; | |
$config['max_width'] = '0'; |
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
# iniciar monitor | |
sudo airmon-ng start wlan0 | |
# ver redes | |
sudo airodump-ng mon0 | |
# Obtener handshake (reemplazar canal y MAC | |
sudo airodump-ng -c 3 -w wpa --bssid 00:00:00:00:00:00 mon0 | |
# Forzar handsahake |
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
# Agregar esto a .bashrc o a .bash_aliases | |
# Uso: add_ssh usuario@servidor.tld | |
function add_ssh { | |
cat ~/.ssh/id_rsa.pub | ssh $1 'cat >> .ssh/authorized_keys' | |
} | |
export -f add_ssh |
NewerOlder