Skip to content

Instantly share code, notes, and snippets.

View danielnunesdc's full-sized avatar
🎯
Focusing

Daniel Nunes danielnunesdc

🎯
Focusing
  • Assesso
  • Piauí
View GitHub Profile
@danielnunesdc
danielnunesdc / Books.md
Last active November 5, 2017 15:48
This list is constantly updated and contains the books I remember I've read in the last years.

This list is constantly updated and contains the books I remember I've read in the last years about computer science, web development, startups, economy, psychology, statistics, productivity, etc.

READING

  • Introdução à programação com Python - Algoritimos e lógica de programação para iniciantes. Nilo Ney Coutinho Menezes.

NEXT

  • Python - Escreva seus primeiros programas. Felipe Cruz.
  • Beginning HTML5 e CSS3 for Dummies. Ed Tittel and Chris Minnick.
  • ECMAScript 6 - Entre de cabeça no futuro do Javacript. Diego Martins de Pinho.
  • Cangaceiro Javascrpit - Uma Aventura no sertão da programação. Flávio Almeida.
@danielnunesdc
danielnunesdc / Buscando condenados.sh
Created November 15, 2017 01:56
Mostrar máquinas ligadas na rede.
#!/bin/bash
if ["$1" == ""]
then
echo "ERROR - Faltou o endereço ip do alvo."
echo "Exemplo de uso: $0 10.0.0"
else
for host in {1..254};do
ping -w1 -c1 $1.$host | grep "64 bytes" | cut -d " " -f4 | sed 's/.$/ Esta online./'
done
fi
#!/bin/bash
# Ubuntu Developer Script For Ionic Framework
#
#
# Downloads and configures the following:
#
# Java JDK
# Apache Ant
# Android
# NPM
# Problem:
# Implement a queue with 2 stacks. Your queue should have an enqueue and
# a dequeue function and it should be "first in first out" (FIFO).
class Stack(object):
def __init__(self):
self.items = []
def push(self, item):
@danielnunesdc
danielnunesdc / oreilly.py
Created February 3, 2018 15:41
Download Free O'Reilly eBooks
import requests
import re
from glob import glob # Google this. It's really good!
from os.path import basename, join # Basename removes the path part of a file, returning only the filename. Can also handle urls.
from concurrent.futures import ThreadPoolExecutor # For our concurrent downloads in download_many.
def get_urls(data, pattern):
urls = pattern.findall(data.text)
endings = ['.pdf', '.mobi', '.epub']
@danielnunesdc
danielnunesdc / Tools.md
Created February 3, 2018 15:42
Tools List

Tools

  • Metaspoit: Penetration testing software
  • BeEF: The Browser Exploitation Framework
  • PTF: Penetration Testers Framework
  • Bettercap: MITM framework
  • Nessus: Vulnerability scanner
  • AutoNessus: Auto Nessus
  • BDFProxy: Patch Binaries via MITM (BackdoorFactory)
  • Xplico: Network Forensic Analysis Tool (eg. parse pcap file)
@danielnunesdc
danielnunesdc / README.md
Created February 3, 2018 17:47 — forked from igorlima/README.md
Alternativa para executar testes unitários em diferentes tipos de navegadores

Gittip Donate Button

BrowserStack é uma plataforma de teste que possibilita realizar testes automáticos ou manuais em aplicações móveis e web em diversos navegadores, incluindo navegadores como Internet Explorer, Opera, Safari, Android, iPhone, Chrome etc. Plataforma bastante parecida com o SauceLabs, mas infelizmente não possui nenhum plano gratuito, só há um curto período para teste (o suficiente para podermos fazer um pequeno experimento).

Essa plataforma permite executar os testes em diversas linguagem de programação, porém, em nosso exemplo, iremos utilizar o NodeJS (JavaScript) e o Node Package Manager (NPM), que podem ser baixados no site oficial. É necessário o NPM para instalar o Karma, o PhantomJS e o WD, digitando o segui

@danielnunesdc
danielnunesdc / git.md
Created February 3, 2018 18:26 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

#GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

def BuscaSequencial(valor, vetor, tam):
if tam == 1:
if vetor[0] == valor:
return 0
else:
return -1
else:
index = BuscaSequencial(valor, vetor, tam-1)
if index < 0:
if vetor[tam-1] == valor:
from random import shuffle
from time import time
def selection_sort(v):
i = 0
while i < len(v) - 1:
menor = i
j = i + 1
while j < len(v):
if v[j] < v[menor]: