I hereby claim:
- I am petercunha on github.
- I am petercunha (https://keybase.io/petercunha) on keybase.
- I have a public key whose fingerprint is 355B F540 0528 11C0 84F0 08F7 DCBE 5DAB 7C6A 7188
To claim this, I am signing this object:
// Constants for the calculations | |
const SYNODIC_MONTH = 29.53058867; // Average lunar cycle in days (new moon to new moon) | |
const KNOWN_FULL_MOON = new Date(Date.UTC(2000, 0, 21, 4, 44)); // Known full moon date on 2000-01-21 04:44 UTC | |
/** | |
* Returns the number of days from the known full moon date to the input date. | |
* @param {Date} date | |
* @returns {number} Number of days since known full moon | |
*/ | |
function daysSince(date) { |
// Reads in email:password file "input.txt" and converts it into JSON "output.json" for easy MongoDB import. | |
const readline = require('readline') | |
const fs = require('fs') | |
const writeStream = fs.createWriteStream('output.json') | |
let line_no = 0 | |
let invalid = 0 | |
let rl = readline.createInterface({ | |
input: fs.createReadStream('input.txt') |
Crack SSH logins with a username, password, and host list. Output JSON to file. | |
`hydra -o (outputfile) -b json -f -I -L (userlist) -P (passlist) -u -s 22 -M (hostlist) ssh` |
var request = require('request'); | |
function wolframQuery(query) { | |
var options = { | |
url: 'https://api.wolframalpha.com/v1/result?appid=<! PUT YOUR API KEY HERE !>&i=' + encodeURI(query), | |
headers: {} | |
}; | |
function callback(error, response, body) { | |
if (!error && response.statusCode == 200) { | |
console.log(body); |
var debug = process.env.NODE_ENV !== "production"; | |
var webpack = require('webpack'); | |
var path = require('path'); | |
module.exports = { | |
context: __dirname, | |
devtool: debug ? "inline-sourcemap" : null, | |
entry: "./js/scripts.js", | |
output: { | |
path: path.join(__dirname, "/js"), |
I hereby claim:
To claim this, I am signing this object: