Convert private key
openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem
chmod 600 private.pem
Convert public key
[ | |
{ | |
"id": "001", | |
"name": "Bulbasaur", | |
"classification": "Seed Pokémon", | |
"types": [ | |
"Grass", | |
"Poison" | |
], | |
"resistant": [ |
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 |
`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]` |
openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem
chmod 600 private.pem
rabbitmq-server start -detached
sudo -u rabbitmq rabbitmqctl stop
rabbitmqctl add_user username password
const https = require('https') | |
module.exports = class BlackJackGame { | |
constructor() { | |
this.game = { | |
deckId: null, | |
remaining: null, | |
player: { | |
hand: [], | |
count: 0 |
transformElement(mouseEvent) { | |
const TRANSFORM_SCALE = 15 | |
const _mouseCoords = { | |
x: mouseEvent.clientX, | |
y: mouseEvent.clientY | |
} | |
const _window = { | |
height: window.innerHeight, | |
width: window.innerWidth | |
} |
#!/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..." |
{ | |
"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, |
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) |