Skip to content

Instantly share code, notes, and snippets.

Just doing programmer things

Mick A. almic

Just doing programmer things
Block or report user

Report or block almic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
almic / Halo MCC API (Node).js
Last active Jun 11, 2019
The Node.js way for getting into the Halo MCC API.
View Halo MCC API (Node).js
const request = require('then-request')
// This is your microsoft live account information
const LOGIN = process.env.LOGIN // typically an email address
const PASSWD = process.env.PASSWD // typically your xbox live password
// This is the "api" we'll be calling once we login
const endpoint = '' +
almic / Secret key
Last active Mar 31, 2018
Secret key thingy
View Secret key

This was something I was planning on using for a project, but have abandoned it in favor of using a simpler regenerating SHA256 token system. I needed to scrap it from the project but didn't want to lose the code forever just incase, so here it is.

I make no promises that this is cryptographically secure or more secure than plain random hashes.

almic / csprng.js
Created Feb 16, 2018
A Node.js cryptographically secure pseudo-random number generator
View csprng.js
const crypto = require('crypto')
function csprng(min, max) {
// Some credit to
/* Careful! This doesn't work with large ranges. Specifically, don't use
* this with ranges larger than 2^32 - 1 */
const range = max - min
if (range >= Math.pow(2, 32))
You can’t perform that action at this time.