How to wait for function to become true or false.
const startGame = () => {
return new Promise((res,rej) => {
while(health >= 0){
console.log("ATTACKED")
console.log(health)
if (health === 0) {
res('GAME OVER')
break;
# find dev you want to partion | |
diskutil list | |
#/dev/disk5 | |
#erase disk and format with fat32 | |
sudo diskutil eraseDisk FAT32 GPT /dev/disk5 | |
#use diskutility | |
sudo diskutil partitionDisk /dev/disk5 GPT JHFS+ New 4gb |
const startGame = () => {
return new Promise((res,rej) => {
while(health >= 0){
console.log("ATTACKED")
console.log(health)
if (health === 0) {
res('GAME OVER')
break;
//PROPER ASYNC AWAIT FOREACH LOOP
const arr = [1,2,3,4,5,6,7,8,9,10]
for (const [index, value] of arr.entries()) {
Investigations APIs The Investigations Application Programming Interfaces (APIs) let you build, delete, modify, or list the Investigation objects in USM Central. You can also use the APIs to download attachments, add evidence, or create notes for the Investigation object.
The Investigations APIs are based on the Representational State Transfer (REST) architecture standard. You must access the APIs using Hypertext Transfer Protocol Secure (HTTPS) on port 443. This document explains how to access the endpoints, how to construct your requests, and what errors you may receive.
fetch(newURL)
.then(response => response.json())
To list all loaded services on your system (whether active; running, exited or failed, use the list-units subcommand and --type switch with a value of service.
# systemctl list-units --type=service
OR
# systemctl --type=service
And to list all loaded but active services, both running and those that have exited, you can add the --state option with a value of active, as follows.
1. Open Google Chrome
2. Click the little 3 dots in the top right
3. click Settings
4. Scroll Down to Privacy and Security
5. Privacy and security
The Problem:
The objective was to use peoplecentric methods to help train users on what urls they are submitting to. The idea was inspired by the https lock so many users are familre with. I then started to wonder if there was a way to do