Skip to content

Instantly share code, notes, and snippets.

View ArmandoKenneth's full-sized avatar
:shipit:
😬 This is the way

Armando Rocha ArmandoKenneth

:shipit:
😬 This is the way
  • London
  • 21:43 (UTC)
View GitHub Profile
@ArmandoKenneth
ArmandoKenneth / orders.json
Created June 7, 2024 08:51
B&W - orders JSON
[
{
"id": 1,
"product_id": 75,
"order_date:": "21/04/2020",
"type": "single"
}, {
"id": 2,
"product_id": 25,
"order_date:": "29/02/2021",
@ArmandoKenneth
ArmandoKenneth / gist:8c9ddbf5dab589a672f9427424b2b1ba
Last active May 20, 2025 09:56
Sign all previous unsigned commits
1. Use git log --show-signature to see what commigs you have
2. Get the commit hash of the last commit you want to sign (this will make the command stop at the given hash, will include it in the new signed commit)
GIT_EDITOR=true git rebase --exec 'git commit --amend --no-edit -n -S' -i LAST_COMMIT_HASH_YOU_WANT_TO_SIGN
@ArmandoKenneth
ArmandoKenneth / mouseover.js
Created April 7, 2018 00:10
Selenium mouse over code
const mouseOver = (firstArg) => {
const event = document.createEvent('MouseEvents')
event.initEvent( 'mouseover', true, true )
return firstArg.dispatchEvent(mouseEventObj)
}
// Then in the test
driver.executeScript(mouseOver, element)