Skip to content

Instantly share code, notes, and snippets.

Avatar
Building.

José Daniel Paternina josedaniel

Building.
View GitHub Profile
@naranjja
naranjja / index.js
Last active Sep 22, 2020
Google Analytics tracking using Dialogflow API v2 and some REST API
View index.js
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":
@CodeMaxter
CodeMaxter / auto-setup-scoop.ps1
Created Nov 15, 2018
PowerShell script to install a software development environment using scoop package manager
View auto-setup-scoop.ps1
# 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
@josedaniel
josedaniel / Quote.js
Last active Jul 16, 2018
Regular Vulcano CRUD model
View Quote.js
/* global mongoose, Quote, VSError */
/**
* Quote.js
*/
module.exports = {
attributes: {
active: {
View README.md

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
    • apache's home directory is /var/www/
@josedaniel
josedaniel / input.css
Created Jun 26, 2012
CSS custom inputs
View input.css
/* 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;
@josedaniel
josedaniel / ssh.sh
Created May 22, 2012
Meterse al ssh del servidor remoto
View ssh.sh
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> ~/.ssh/authorized_keys'
@anabelle
anabelle / codeigniter_sengrid_parse_api_upload.php
Created Jan 21, 2012
Function to get an email using Sendgrid Parse API and save attachments using CodeIgniter
View codeigniter_sengrid_parse_api_upload.php
<?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';
View aircrack-cheatsheet.sh
# 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
@anabelle
anabelle / sshadd.sh
Created Dec 25, 2011
add ssh key to server
View sshadd.sh
# 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
@anabelle
anabelle / gist:1515478
Created Dec 23, 2011 — forked from ofan/gist:1508676
comon passwords
View gist:1515478
123456789
12345678
11111111
dearbook
00000000
123123123
1234567890
88888888
111111111
147258369
You can’t perform that action at this time.