Skip to content

Instantly share code, notes, and snippets.

View allekmott's full-sized avatar

Allek Mott allekmott

  • Phoenix, Arizona
View GitHub Profile
@allekmott
allekmott / stringify
Created January 18, 2018 00:05
Convert JS object string (arg) to JSON string
#!/usr/bin/env node
const json = eval(`(${process.argv[2]})`);
console.log(JSON.stringify(json));
@allekmott
allekmott / mat.cc
Created February 23, 2016 19:16
Simplifies single-line matrix formatting
#include <iostream>
#include <string>
#include <cstdlib>
#include <queue>
using namespace std;
void usage(string cmd) {
cout << "Usage: " << cmd << " [rows] [cols]" << endl;
}
@allekmott
allekmott / wgetter.sh
Last active February 23, 2016 19:17
Massive download queues, simplified
#!/bin/bash
VERSION=0.3.0
echo "wgetter v$VERSION"
function usage() {
echo "Usage: $0 textFile [outputDir]"
echo "Text file contains list of URLs, separated by line"
exit
}
@allekmott
allekmott / MineHelper.md
Last active July 21, 2017 21:02
MineHelper

MineHelper

Shell script CudaMiner helper. Hopes to provide simplicity of initializing mining jobs and monitoring them across different machines.

Support

  • Works flawlessly with GTX 660Ti Reference
  • No dual-GPU support yet; if demanded, will supply