Skip to content

Instantly share code, notes, and snippets.

Michael T Roth mxrss

Block or report user

Report or block mxrss

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
View Permissions
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace ConsoleApplication1
View Caesar.c
Description: Takes in a input and outputs a "secret" output for easy
#include <stdlib.h>
#include <stdio.h>
#include <cs50.h>
#include <string.h>
#include <ctype.h>
mxrss / gist:9590c37e0ec57fd33982
Last active Aug 29, 2015
Create an Node Docker
View FastSplit
$count = $idx = 0
try {
"Splitting $from using $upperBound bytes per file."
do {
$count = $fromFile.Read($buff, 0, $buff.Length)
if ($count -gt 0) {
$to = "{0}{1}.{2}.{3}" -f ($fromFolder, $rootName, $idx, $ext)
$toFile = [io.file]::OpenWrite($to)
try {
View Benchmark Results
10 Total Runs
155.1802 Min Non-Parallel [Fastest Run]
173.3485 Max Non-Parallel [Slowest Run]
160.85787 Avg Run
144.0641 Min Parallel [Fastest Run]
166.614 Max Parallel [Slowest Run]
157.63706 Avg Run
mxrss / ParallelBench
Created Dec 14, 2014
parallel bench mark
View ParallelBench
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.IO;
mxrss / ScrapeCoupons
Created Feb 13, 2014
More Screen Scrappiong
View ScrapeCoupons
$cats = Invoke-RestMethod -uri ""
$coupons = $null
foreach ($cat in $cats){
$catName = [System.Web.HttpUtility]::HtmlEncode($cat.CategoryName)
$couponSet = Invoke-RestMethod -uri "$($cat.CategoryCount)&currentPage=1&filter=$($cat.CategoryId)&sort=1&couponType=AllBrands&brandName=AllBrands&_=1392271883366"
$coupons += $couponSet.CouponsGrid | Add-Member -PassThru NoteProperty CouponCategory $catName
$coupons | Get-Member
mxrss / MoveBuild
Created Feb 5, 2014
Move Enviroment Build Script
View MoveBuild
$enum = "
namespace Deployment
public enum Enviroment{
mxrss / Node Appliance POC
Created Feb 2, 2014
Simple Appliance with Node
View Node Appliance POC
var http = require('http');
var port = process.env.port || 1337;
var qs = require("querystring");
var os=require('os');
var child_process = require("child_process");
http.createServer(function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
var str = req.url.split('?')[1];
var ip = qs.parse(str);
You can’t perform that action at this time.