rabbitmq-server start -detached
sudo -u rabbitmq rabbitmqctl stop
rabbitmqctl add_user username password
/* Returns the next back off interval for POST request */ | |
func nextBackOffTime() time.Duration { | |
collisionNumber := float64(networkStatus.failCount) | |
backoffTime := time.Duration((math.Pow(2, collisionNumber) - 1) / 2) | |
return backoffTime | |
} |
How to undo published commits | |
git reset (sha) | |
git checkout (all files that need to be undone) | |
git commit -am (message for reset) | |
git push -f origin (branch name) |
{ | |
"src_folders": ["tests"], | |
"output_folder": "reports", | |
"selenium" : { | |
"start_process" : true, | |
"server_path" : "./node_modules/selenium-server/lib/runner/selenium-server-standalone-3.4.0.jar", | |
"log_path" : "", | |
"port" : 4444, | |
"start_session": true, |
#!/bin/bash | |
driver=$1 | |
if [[ $# -ne 1 ]]; then | |
echo "Please provide a driver name (chrome or firefox)" | |
exit 1 | |
fi | |
echo "Setting up a virtual display using Xvfb..." |
transformElement(mouseEvent) { | |
const TRANSFORM_SCALE = 15 | |
const _mouseCoords = { | |
x: mouseEvent.clientX, | |
y: mouseEvent.clientY | |
} | |
const _window = { | |
height: window.innerHeight, | |
width: window.innerWidth | |
} |
const https = require('https') | |
module.exports = class BlackJackGame { | |
constructor() { | |
this.game = { | |
deckId: null, | |
remaining: null, | |
player: { | |
hand: [], | |
count: 0 |
`git pull origin [main_branch_name]` | |
`git checkout [merge_branch_name]` | |
`git pull origin [main_branch_name] --rebase` | |
`git push -f origin [merge_branch_name]` |
Drink,Ingredient,Amount,IngredientUse,Glass,HowToMix | |
212,Partida Reposado Tequila,2oz,Build,Collins glass,Shake with ice and strain into a chilled Collins glass filled with ice | |
212,Ruby Red Grapefruit Juice,2oz,Build,Collins glass,Shake with ice and strain into a chilled Collins glass filled with ice | |
212,Aperol,1oz,Build,Collins glass,Shake with ice and strain into a chilled Collins glass filled with ice | |
212,Orange Twist,1,Garnish,Collins glass,Shake with ice and strain into a chilled Collins glass filled with ice | |
#3 Cup,Mint Leaf,4-5,Muddle,Collins glass,Shake with ice and strain into a chilled Collins glass filled with ice | |
#3 Cup,Cucumber Slice,2,Muddle,Collins glass,Shake with ice and strain into a chilled Collins glass filled with ice | |
#3 Cup,Orange Slice,2,Muddle,Collins glass,Shake with ice and strain into a chilled Collins glass filled with ice | |
#3 Cup,Hine V.S.O.P. Cognac,1oz,Build,Collins glass,Shake with ice and strain into a chilled Collins glass filled with ice | |
#3 Cup,House Ginger Beer,1oz,Build,Col |