Skip to content

Instantly share code, notes, and snippets.

View reinaldorossetti's full-sized avatar

Reinaldo Rossetti reinaldorossetti

View GitHub Profile
@reinaldorossetti
reinaldorossetti / CryptoJS-DES.html
Created May 31, 2023 14:38 — forked from ufologist/CryptoJS-DES.html
Use CryptoJS encrypt message by DES and direct decrypt ciphertext, compatible with Java Cipher.getInstance("DES")
<!-- test pass with CryptoJS v3.1.2 -->
<script src="rollups/tripledes.js"></script>
<script src="components/mode-ecb.js"></script>
<script>
/**
* Encrypt message by DES in ECB mode and Pkcs7 padding scheme
*
* NOTE: DES is weak, please use 3DES(Triple DES) or AES
*
* @param {String} message
# config/cucumber.yml
default: --tags ~@wip
new: --tags @wip:2 --wip
# see cucumber-rails wiki for interesting ways to use this file to run cucumber how you want (link here)
@reinaldorossetti
reinaldorossetti / TestSwipe.robot
Created March 18, 2021 01:26 — forked from semutmerah/TestSwipe.robot
Demo Scroll Down / Scroll Up using Swipe keyword in Robot Framework
*** Settings ***
Library AppiumLibrary 15 run_on_failure=Log Source
Library Process
Suite Setup Spawn Appium Server
Suite Teardown Close Appium Server
Test Teardown Close Application
*** Variables ***
## Go here to download the apk for the app used in this test -> https://drive.google.com/file/d/19FxLjux8ZtumweXzBA_CYrL0Va-BL4gY/view?usp=sharing
@reinaldorossetti
reinaldorossetti / renavam.py
Created May 31, 2017 19:14 — forked from ellisonleao/renavam.py
Validador Renavam Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
def validar_renavam(renavam):
"""
No caso do RENAVAM, o DV (dígito verificador) módulo 11 é calculado
multiplicando cada dígito do número base pela sequência de multiplicadores
2, 3, 4, 5, 6, 7, 8, 9, 2 e 3, posicionados da direita para a esquerda.
@reinaldorossetti
reinaldorossetti / Selenium Cheat Sheet.md
Created April 5, 2017 20:36 — forked from kenrett/Selenium Cheat Sheet.md
Selenium Cheat Sheet - Ruby

#Getting Started

##Webpage:

<html>
<head>
    <title>Testing with Ruby and Selenium WebDriver</title>
</head>
 
<body bgcolor="antiquewhite">
@reinaldorossetti
reinaldorossetti / Selenium Cheat Sheet.md
Created April 5, 2017 20:36 — forked from kenrett/Selenium Cheat Sheet.md
Selenium Cheat Sheet - Ruby

#Getting Started

##Webpage:

<html>
<head>
    <title>Testing with Ruby and Selenium WebDriver</title>
</head>
 
<body bgcolor="antiquewhite">
@reinaldorossetti
reinaldorossetti / git-clearHistory
Created April 3, 2017 01:47 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@reinaldorossetti
reinaldorossetti / Capybara.md
Last active April 14, 2017 23:59 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet

Capybara Actions(Ações)

# Faz o clique no link com o texto "Save".
click_link 'Save'

# Faz o clique no Botão com o texto "awesome".
click_button 'awesome'

# Faz o clique no Botão ou Link com testo "Save".
@reinaldorossetti
reinaldorossetti / idea-reset-evaluation.sh
Created February 7, 2017 17:46
reset intellij idea 14 evaluation
#!/bin/bash
echo "removeing evaluation key"
rm ~/.IntelliJIdea15/config/eval/idea15.evaluation.key
echo "resetting evalsprt in options.xml"
sed -i '/evlsprt/d' ~/.IntelliJIdea15/config/options/options.xml
echo "resetting evalsprt in prefs.xml"
sed -i '/evlsprt/d' ~/.java/.userPrefs/prefs.xml
@reinaldorossetti
reinaldorossetti / index.html
Last active January 21, 2017 21:49 — forked from anonymous/index.html
Tic Tac Toe game
<html>
<head>
<link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap.css" rel="stylesheet" />
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="script.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="tic-tac-toe">
<div class="span3 new_span">