Skip to content

Instantly share code, notes, and snippets.

View faustoroger's full-sized avatar

Fausto Roger faustoroger

View GitHub Profile
@faustoroger
faustoroger / elasticsearch_quickstart.py
Created June 28, 2018 16:57 — forked from rwalk/elasticsearch_quickstart.py
Quickstart elasticsearch with Python
#!/usr/bin/python3
# This script is a simple introduction to the python elasticsearch API.
#
# This script will populate an elasticsearch index from a file and then give a simple command line query interface.
# Each line of the input file will be mapped into a JSON document of the form { "text": "my file line..." } and added
# to the index.
#
# You can use Docker to spin up a local elasticsearch instance to play around with, e.g.
# docker run --name elasticsearch -d -p 9200:9200 elasticsearch:latest
#

5 minutes PgAdmin4 Desktop install guide

Done on Linux (Ubuntu tested)

Virtualenv & install of Python package & its deps

cd $HOME
virtualenv --python=/usr/bin/python2.7 pgadmin4
source pgadmin4/bin/activate
@faustoroger
faustoroger / Andromeda_Close_Alfa.py
Last active December 1, 2016 16:49
Projeto Andromeda close alfa created by dalmocabral - https://repl.it/E8BY/0
#!usr/bin/python
# -*- coding: utf-8 -*-
# Andromeda-v-0.1-beta
# Script para iniciante em pentest "linux Kali" para instala algumas ferramento em outro distro
# Nome: Andromeda V 0.1
# Desevolvidor: Dalmo dos Santos Cabral
# Facebook : www.Facebook.com/dalmocabral
# Twitter : @dalmojr
@faustoroger
faustoroger / pedantically_commented_playbook.yml
Created April 15, 2016 01:07 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.