Skip to content

Instantly share code, notes, and snippets.

View francabrera's full-sized avatar

Fran Cabrera francabrera

View GitHub Profile
@francabrera
francabrera / Cloudant View for Intrusion Detection System
Created September 20, 2016 09:00
A simple cloudant view which analyze the logged calls to the QE API in order to find suspected logs. Based on:
function (doc) {
if (doc.loopback__model__name == "Auditlog"){
var filters = {
"filters":{
"filter":[
{
"id":"1",
"rule":"(?:\"[^\"]*[^-]?>)|(?:[^\\w\\s]\\s*\\\/>)|(?:>\")",
"description":"Finds html breaking injections including whitespace attacks",
"tags":{
@francabrera
francabrera / Operaciones-Git
Created February 8, 2016 09:22 — forked from jelcaf/Operaciones-Git
Git Tips - Mini-trucos de Git para facilitarme la tarea
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas