Skip to content

Instantly share code, notes, and snippets.

View mxrss's full-sized avatar

Michael T Roth mxrss

  • TMZ
  • Temecula, Ca
View GitHub Profile
ssh_authorized_keys:
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDL4Y3XQE7SImLeU1W0he0tyZ/dQREgLHRxxss/c/PNgm0AHGOyLQbfGK4Gem2u4egJzz3lx2lfvDMgvFnG0KT4TzPJHZBHo9g
8ly+2ncjSZvwyqWmzsHSD7e/nO+JXhzGVnsiQhgUUYSvwONVOXFB94+vgsARfp6JVENP+B456HvZQSVAbQbuhDaPc4O/YryEpDPXuWCq17rgWcZHzO2xncfsQwbpI3VcspiRAfNF9i
0Uq2mSkVtajR5z2Bw1fSBYzS9Qkwpu4eQCh+pV84SY6bvbTN8Gwvgs3E/tfegVL+z9Ht+wDeyWhTc1J0sRSJv4+sijfkAZhj+MpgfCnlPh3"
- github:mxrss
- github:mxrss2
hostname: core-host
write_files:
- path: /var/lib/connman/default.config
content: |-
k3os:
password: insecure
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
{
@mxrss
mxrss / Caesar.c
Created September 26, 2015 02:00
Caesar
/*
Description: Takes in a input and outputs a "secret" output for easy
encryption.
*/
#include <stdlib.h>
#include <stdio.h>
#include <cs50.h>
#include <string.h>
#include <ctype.h>
@mxrss
mxrss / gist:9590c37e0ec57fd33982
Last active August 29, 2015 14:21
Create an Node Docker
FROM strongloop/node
$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 {
@mxrss
mxrss / Benchmark Results
Created December 14, 2014 02:17
Benchmark
(STATIC)
Statistics
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
mxrss / ParallelBench
Created December 14, 2014 01:51
parallel bench mark
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
mxrss / ScrapeCoupons
Created February 13, 2014 18:18
More Screen Scrappiong
$cats = Invoke-RestMethod -uri "http://coupons.staterbros.com/Category/Index"
$coupons = $null
foreach ($cat in $cats){
$catName = [System.Web.HttpUtility]::HtmlEncode($cat.CategoryName)
$couponSet = Invoke-RestMethod -uri "http://coupons.staterbros.com/Coupons/Index?pageSize=$($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
mxrss / MoveBuild
Created February 5, 2014 02:09
Move Enviroment Build Script
$enum = "
namespace Deployment
{
public enum Enviroment{
Dev,
QA,
Integration
}
}
"