Skip to content

Instantly share code, notes, and snippets.

Avatar
🖥️
Reacting positively to testing...

Karsten Rabe krab7191

🖥️
Reacting positively to testing...
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am krab7191 on github.
  • I am karstenrabe (https://keybase.io/karstenrabe) on keybase.
  • I have a public key ASCse6MZr8tO98mwPN8iv4BfqZ0yaSarg2aL-pO8-1g77Ao

To claim this, I am signing this object:

@krab7191
krab7191 / README-Template.md
Created Oct 19, 2019 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

View Vagrant Ports
config.vm.network "forwarded_port", host: 8080, guest: 8080
targeting localhost:8080 in the browser brings up the same 'Not found' message, and displays the same GET requests to the http-server in the VM.
View Vagrant Networks
Running http-server on localhost:8080
browser window displays 'Not found', and command prompt diplays a GET request from windows 64 bit machine at specific date and time. Refreshing the page prints another request in command prompt.
This looks like a virtual server is created in the VM, which can be accessed through the computer's IP address at port 8080 which is for http and web traffic. There are no files on the server which is why it prints 'Not found'.
View Explore TotTbox
TotTbox has 2 processors, (range 1-4?)
Base memory: 2048 MB per, 4096 total
Video Memory: 8MB
Tottbox disc 1: 9.9 GB virtual memory, 1.88 GB actual size
View Vagrant commands
Halt attempts a "graceful shutdown" of the VM
reload starts at clearing forwarded ports and network interfaces, skips default and import base box then re-ups vagrant
destroy completely nukes VM and associated drives
up creates the VM from defaults, importing base box
suspend saves the VM state and suspends execution
View guess.js
/*Write a JS guessing game that picks a random, secret number between 1 and 100, lets the user take up to 5 guesses, and states if the secret number is equal to, higher, lower than a guess. Read input from stdin and print to stdout.*/
var correct = Math.floor(Math.random()*100)+1;
//console.log(correct);
var MAX_TRIES = 5;
var readline = require('readline');
var rl = readline.createInterface(process.stdin, process.stdout);
var guesses = 0;