Skip to content

Instantly share code, notes, and snippets.

Michael Taylor Scheer ScheerMT

Block or report user

Report or block ScheerMT

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 gist:726a9adc30394a13958f
### Keybase proof
I hereby claim:
* I am scheermt on github.
* I am michaelscheer (https://keybase.io/michaelscheer) on keybase.
* I have a public key whose fingerprint is 6CEA 6EF2 495F 9556 ABD2 3FE5 74DF 9DE1 2268 1CE1
To claim this, I am signing this object:
View wifi-spin.html
<html>
<!-- Stolen From https://github.com/nubleh/nubleh.github.io/blob/master/anim/index.html -->
<!-- Motivation from: https://www.reddit.com/r/gifs/comments/3jw277/wifi_loading_wheel/ -->
<head>
<style type="text/css">
@-webkit-keyframes rotate {
0% {
-webkit-transform: none;
}
100% {
@ScheerMT
ScheerMT / .jshintrc
Created Sep 10, 2015
JSHint configuration as of v2.8.0 - Strict Settings with some exceptions made. Settings marked as depreciated were *not* included in order to futureproof for newer versions.
View .jshintrc
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for JSHint[1], using JSHint example[2],
// Ory Band's example[3], and haschek's example[4] as basis and setting
// config values to be most strict:
//
// * set all enforcing options to true
@ScheerMT
ScheerMT / Tecmint_monitor.sh
Created Sep 14, 2015
Monitoring script to give a quick overview of OS, Network, Users logged in, RAM, Swap, disk usage, and CPU utilization. All credits to original author(s)
View Tecmint_monitor.sh
####################################################################################################
# Tecmint_monitor.sh #
# Written for Tecmint.com for the post www.tecmint.com/linux-server-health-monitoring-script/ #
# If any bug, report us in the link below #
# Free to use/edit/distribute the code below by #
# giving proper credit to Tecmint.com and Author #
# #
####################################################################################################
#! /bin/bash
# unset any variable which system may be using
View statsd.rb
#!/usr/bin/env ruby
#
# vim: set ft=ruby
#
require 'socket'
require 'term/ansicolor'
include Term::ANSIColor
@ScheerMT
ScheerMT / statsd.py
Last active Sep 16, 2015
Implemented the ruby version in python to handle multiple responses in a single packet. Some client implementations of statsd buffer packets together to be sent as one UDP packet. *NOTE*: You may have to change your location of the python executable in the sha-bang. I put the contents of this gist in /usr/bin/lstatsd so it can be run in terminal
View statsd.py
#!/usr/local/bin/python
import socket
from termcolor import colored
UDP_IP = "0.0.0.0"
UDP_PORT = 8125
sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP
View gist:a92501d1e0adf13cadf66163d0bf05e7
/**
The description of the method
- parameter parameterName1: description of param
- parameter parameterName2: description of param
- returns: description of return value
(undefined but common things)
- complexity: O(1).
- note: a note
- requires: The next value is representable.
@ScheerMT
ScheerMT / System Design.md
Created Apr 18, 2016 — forked from vasanthk/System Design.md
System Design Cheatsheet
View System Design.md

#System Design Interview Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

##Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@ScheerMT
ScheerMT / Makefile
Created Feb 28, 2018 — forked from hallettj/Makefile
Makefile for transpiling with Babel & Flow in a Node app, or in a client- or server-side shared library
View Makefile
# Makefile for transpiling with Babel in a Node app, or in a client- or
# server-side shared library.
.PHONY: all clean
# Install `babel-cli` in a project to get the transpiler.
babel := node_modules/.bin/babel
# Identify modules to be transpiled by recursively searching the `src/`
# directory.
@ScheerMT
ScheerMT / log_decorator.py
Created Jun 4, 2019
requires six to be installed to be able to run
View log_decorator.py
from functools import wraps, partial
import logging
import six
# Testing function decorator version
def log_func():
return log_func_internal
def log_func_internal(func):
@wraps(func)
You can’t perform that action at this time.