This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://localhost:8500/v1/kv/?recurse&pretty=true | |
... | |
{ | |
"LockIndex": 0, | |
"Key": "application/configs/", | |
"Flags": 0, | |
"Value": null, <-- Wait, what's this null? | |
"CreateIndex": 73975, | |
"ModifyIndex": 73975 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
018-07-26T10:08:14.055-06:00 [INFO] [test_application] The parameter is incorrect | |
(application crashes) | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
2018-07-25T09:55:09.851-06:00 [INFO] [test_application] setting to | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
# This as written will fail saying 1 and 4 are prime. | |
# Those two numbers are not prime. | |
# Also, checking up to square root is more efficient. | |
def IsPrime(n): | |
if (n == 1 or n == 4): | |
return False | |
for divisor in range(2, int(math.ceil(math.sqrt(n)))): | |
if n % divisor == 0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* assuming that window.crypto.getRandomValues is available */ | |
var array = new Uint32Array(10); | |
window.crypto.getRandomValues(array); | |
console.log("Your lucky numbers:"); | |
for (var i = 0; i < array.length; i++) { | |
console.log(array[i]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl genrsa -aes128 -out private.key 2048 | |
Generating RSA private key, 2048 bit long modulus | |
....+++ ....… +++ | |
e is 65537 (0x10001) | |
Enter pass phrase for private.key: **************** | |
Verifying - Enter pass phrase for fd.key: **************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
encryptedPhoneNumbers.forEach((encryptedPhoneNumber) => { | |
const xor = xorStrings(encryptedPhoneNumber, exactMatch); | |
const output = xorPlainTextWithCrib(xor, inputPhoneNum); | |
printPlain(output); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (let i = 0; i < encryptedPhoneNumbers.length - 1; ++i) { | |
const encryptedPhoneNum1 = encryptedPhoneNumbers[i]; | |
const encryptedPhoneNum2 = encryptedPhoneNumbers[i + 1]; | |
const xor = xorStrings(encryptedPhoneNum1, encryptedPhoneNum2); | |
const output = xorPlainTextWithCrib(xor, inputPhoneNum); | |
if (asciiMatch(output, '^[0-9]+\-[0-9]+\-[0-9]+$')) { | |
matches = matches.concat([[encryptedPhoneNum1, encryptedPhoneNum2]]); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Download Atom Editor and install it | |
* Go to packages to install a package and install | |
- git-plus | |
- last-cursor-position | |
- line-diff-details | |
- linter | |
- linter-eslint | |
- merge-conflicts | |
- preview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ )( \ | |
) __ ( | |
\_)(_/ | |
__ | |
/ _\ | |
/ \ | |
\_/\_/ | |
____ | |
( _ \ | |
) __/ |