Skip to content

Instantly share code, notes, and snippets.

View infoslack's full-sized avatar
🏠
Working from home

Daniel Romero infoslack

🏠
Working from home
View GitHub Profile
@infoslack
infoslack / recommendations.rb
Created December 12, 2011 15:02
(Testinho número 2) Quem o Luca deve convidar para dividir uma pizza que tenha um gosto mais parecido com o dele?
# encoding: utf-8
DEBUG = 1
@people = {'Renato'=> {'Marguerita'=> 4, 'Quatro queijos'=> 5,
'Escarola'=> 4, 'Portuguesa'=> 5, 'Frango + Catupiry'=> 4,
'Napolitana'=> 3},
'Marcelo'=> {'Marguerita'=> 2, 'Quatro queijos'=> 2,
'Escarola'=> 1, 'Portuguesa'=> 3, 'Frango + Catupiry'=> 5,
'Napolitana'=> 2},
'Lenon'=> {'Marguerita'=> 4, 'Quatro queijos'=> 5,
@infoslack
infoslack / config
Created March 14, 2012 02:41
My Terminator Configuration
[global_config]
enabled_plugins = LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
handle_size = 1
[keybindings]
[profiles]
[[default]]
foreground_color = "#657b83"
palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3"
font = Monaco 18
use_system_font = False
<form accept-charset="UTF-8" action="/products" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
<input id="keywords" name="keywords" placeholder="Search" type="search" />
<input type="submit" value="Search" />
</form>
@infoslack
infoslack / bkp-mysql.sh
Created June 29, 2012 21:00
Backup Mysql Shell Script
#!/bin/bash
DATA=`date +%Y%m%d-%H%M`
DUMP=/usr/bin/mysqldump
MYSQLDIR='cd /tmp/bkp'
TAR=/bin/tar
$DUMP -uroot -p123 --all-databases > /tmp/bkp/mysql.bkp_$DATA
$MYSQLDIR
@infoslack
infoslack / unicorn.rb
Created September 3, 2012 18:20
unicorn config
listen 5000
listen 5001
listen 5002
listen 5003
worker_processes 4
pid "/var/run/unicorn/project.pid"
stderr_path "/var/log/unicorn/project.log"
stdout_path "/var/log/unicorn/project.log"
@infoslack
infoslack / List links
Created November 14, 2012 00:20
List Links Example HTML5 and CSS3...
@infoslack
infoslack / activerecord.yml
Created April 23, 2013 00:49
/locales/pt-BR/activerecord.yml
pt-BR:
activerecord:
attributes:
user:
name: "Nome"
email: "E-mail"
password: "Senha"
password_digest: "Senha"
password_confirmation: "Confirmação de senha"
@infoslack
infoslack / joomla-exploit
Created September 30, 2013 20:03
exploit arbitrary file upload - joomla
# Exploit Title: Joomla Component (com_foxcontact) Arbitrary File Upload Vulnerability
# Author: DaOne aka MockingBird
# Vendor Homepage: http://www.fox.ra.it/
# Price: €10
# Category: webapps/php
# Version: 1.0.8
# Google dork: inurl:index.php?option=com_foxcontact
------------------------------------------------------------------------
# Exploit
@infoslack
infoslack / testes-invasao.md
Last active December 26, 2015 15:39
Começando com testes de invasão

Segurança da informação

  • Princípios básicos
  • Tipos de ameaças
  • Tipos de ataques
  • Proteção
  • Serviços

Teste de invasão

@infoslack
infoslack / Vagrantfile.rb
Created October 29, 2013 02:55
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.define :developer do |local_config|