Skip to content

Instantly share code, notes, and snippets.

View rikkiloades's full-sized avatar

Rikki Loades rikkiloades

View GitHub Profile
@rikkiloades
rikkiloades / info-to-collect.json
Last active February 27, 2019 20:31
Getting system info (CPU, GPU, Memory and OS)
{
"cpu": {
"model": "Intel Core i7",
"clockspeed": "2.8 Ghz",
"processors": 1,
"cores": 2
},
"memory": "16GB",
"gpu": {
"model": "Intel HD 3000",
@rikkiloades
rikkiloades / odm.php
Created June 3, 2013 21:11
PHP ODM for MongoDB
<?php
namespace mongo;
abstract class Collection
{
private $mongoCollection = null;
public function __construct($db, $collection)
{
@rikkiloades
rikkiloades / range.css
Created May 2, 2013 08:03
Styling an input type range in webkit.
input[type='range'] {
-webkit-appearance: none;
width:100%;
height: 15px;
padding:0;
border:none;
background-color:rgb(80, 80, 80);
background-image:none;
}
@rikkiloades
rikkiloades / Events.js
Created March 5, 2013 11:19
Very simple JavaScript events system.
var Events = {
/**
* Given a object will mix the ability to emit events into the object
* and listen for those events from other functions. Gives the destObject
* the following three additional methods: on, off, emit.
*
* @param {Object} destObject
*/
mixin: function(destObject) {
var methods = {
@rikkiloades
rikkiloades / ideal ops.md
Created May 27, 2012 17:47 — forked from bhenerey/ideal ops.md
ideal ops checklist

In a perfect world, where things are done well, not just quickly, I would expect to find the following when joining the company:

Documentation

  • Accurate / up-to-date systems architecture diagram

  • Accurate / up-to-date network diagram

  • Out-of-hours support plan

  • Incident management plan