- Check for an existing
.gitignorefile in the project directory
ls -a| $ git clone [email protected]:xxxxx/xxxx.git my-awesome-proj | |
| Cloning into 'my-awesome-proj'... | |
| ssh: connect to host github.com port 22: Connection timed out | |
| fatal: Could not read from remote repository. | |
| $ # This should also timeout | |
| $ ssh -T [email protected] | |
| ssh: connect to host github.com port 22: Connection timed out | |
| $ # but this might work |
| ,_---~~~~~----._ | |
| _,,_,*^____ _____``*g*\"*, | |
| / __/ /' ^. / \ ^@q f | |
| [ @f | @)) | | @)) l 0 _/ | |
| \`/ \~____ / __ \_____/ \ | |
| | _l__l_ I | |
| } [______] I | |
| ] | | | | | |
| ] ~ ~ | | |
| | | |
| const cluster = require('cluster'); | |
| const totalCPUs = require('os').cpus().length; | |
| const fs = require('fs') | |
| const crypto = require('crypto') | |
| const dictionaryMD5Passwords = { | |
| 6: [], | |
| 7: [], | |
| 8: [], | |
| 9: [], |
| import cluster from 'cluster' | |
| import * as os from 'os' | |
| let numWorkers = os.cpus().length; | |
| import fs from 'fs' | |
| import fetch from 'node-fetch' | |
| const listEndpointsToAttack = [ | |
| // https://jsonplaceholder.typicode.com/users | |
| 'https://jsonplaceholder.typicode.com/users/1', | |
| 'https://jsonplaceholder.typicode.com/users/2', |
| const digitMod = (value, len) => { | |
| const mod = len - Math.round(value - Math.floor(value / len) * len); | |
| return mod >= 10 ? 0 : mod; | |
| }; | |
| const mapValuesWithDigitModByKey = (_key, _len) => (value, key) => | |
| _key === key ? digitMod(value, _len) : value; | |
| const reduceDigitsByKey = _key => (digits, value, key) => { | |
| if (key > _key) { |
| const cluster = require('cluster'); | |
| const totalCPUs = require('os').cpus().length; | |
| const secretCodeToFind = 213405; | |
| const minNumber = 100000; | |
| const maxNumber = 999999; | |
| const totalNumbersToEachWorkerToTest = Math.floor((maxNumber - minNumber) / totalCPUs) | |
| const indexes = [0, 1, 2, 3, 4, 5, 6, 7] |
| kind create cluster --name demo-cluster | |
| kind get clusters | |
| kubectl config get-contexts |
The rules can be stated as followed:
Passes all testsMaximizes clarity