Skip to content

Instantly share code, notes, and snippets.

View wellavelino's full-sized avatar
🎧
Focusing

Wellington Avelino dos Santos wellavelino

🎧
Focusing
View GitHub Profile
@wellavelino
wellavelino / lint.rb
Last active November 28, 2017 17:15
Simple output from lint class
lint.rb:1:1: W: Script file lint.rb doesn't have execute permission.
#!/usr/bin/env ruby
^^^^^^^^^^^^^^^^^^^
lint.rb:2:1: C: Missing top-level class documentation comment.
class Lint
^^^^^
lint.rb:3:1: C: Use 2 (not 0) spaces for indentation.
def get_even_numbers
lint.rb:3:5: C: Do not prefix reader method names with get_.
15:19 $ rubocop lint.rb -f offenses -f clang
--
0 Total
# Lint class
class Lint
def even_numbers
numbers_list = [30, 434, 10, 4, 6, 9, 98, 7, 14, 21]
numbers_list.each do |number|
puts 'Even number', number if number.even?
end
end
end
#!/usr/bin/env ruby
class Lint
def get_even_numbers
numbers_list = [30, 434, 10, 4, 6, 9, 98, 7, 14, 21]
for number in numbers_list
if number % 2 == 0
puts "Even number", number
end
end
end
ENV['NLS_LANG'] = 'american_america.utf8'
require 'oci8'
require_relative '../database/querys/query_factory.rb'
require_relative '../../features/support/Helpers.rb'
class ADODataBase
include Helpers
attr_accessor :connection, :username, :password
@wellavelino
wellavelino / appium_java.md
Last active April 9, 2018 20:48
Dependências para configurar Appium Java
@wellavelino
wellavelino / git.md
Created April 9, 2018 21:09
Execícios GIT

Lista de exercícios sobre GIT

O exercícios será feito em duplas, onde um será o dono do repositório e o outro será o colaborador. A idéia é simular como trabalhamos no dia a dia.

O repositório deve ser uma especificação do TimeSheet http://ts2.concrete.com.br Só precisamos de uma feature, minha sugestão é que seja sobre apontamento de horas.

Para todos

Imports the monkeyrunner modules used by this program
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
# Connects to the current device, returning a MonkeyDevice object
device = MonkeyRunner.waitForConnection()
# Installs the Android package. Notice that this method returns a boolean, so you can test
# to see if the installation worked.
device.installPackage('myproject/bin/MyApplication.apk')
http://www.arachni-scanner.com/
arachni-scanner.com
Arachni - Web Application Security Scanner Framework
Arachni is a Free/Public-Source Web Application Security Scanner aimed towards helping users evaluate the security of web applications.
https://www.owasp.org/index.php/OWASP_Zed_Attack_Proxy_Project
https://www.owasp.org/index.php/OWASP_SaaS_Rest_API_Secure_Guide
https://www.owasp.org/index.php/REST_Security_Cheat_Sheet
https://www.owasp.org/index.php/OWASP_API_Security_Project
https://github.com/enaqx/awesome-pentest
at_exit do
result=$Erros.group_by(&:classe).map do |token, with_same_token|
[token, with_same_token.map(&:mensagem), with_same_token.size]
end
puts "Mapa de Erros"
puts "============================="
for err in result do
puts "Erro de " + err.first.to_s + " > " + err.last.to_s
end