Skip to content

Instantly share code, notes, and snippets.

View markebrooks's full-sized avatar
💭
battling Cthulhu

Mark Brooks markebrooks

💭
battling Cthulhu
  • Platform Operations Engineer @equinix
  • Stow, Ohio
View GitHub Profile
@remorse
remorse / create_printable_xkcd.pl6
Created October 12, 2016 19:06
Create a printable nice version of XKCD comics
#!/usr/bin/env perl6
use v6;
use LWP::Simple;
use JSON::Tiny;
use Template::Anti;
my $outdir = '/Users/rem16/Pictures/comics/';
my $comic = '1053';
# get the JSON info
@bahamat
bahamat / moved.md
Last active May 16, 2017 22:31
Update all components of SDC.
@bahamas10
bahamas10 / 0-README.md
Last active January 4, 2019 18:02
Joyent Manta Functions
@bahamat
bahamat / pipasswd
Last active January 5, 2017 19:45
Find the SmartDataCenter default root password for any installed platform image.
#!/bin/bash
if (( UID > 0 )); then
echo "You must elevate privileges."
exit 1
fi
usbkey_status=$(/opt/smartdc/bin/sdc-usbkey status)
passwd_file=/mnt/usbkey/private/root.password.$1
@bahamat
bahamat / Makefile
Last active October 12, 2016 19:13 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
This file has been truncated, but you can view the full file.
PCRE version 8.36 2014-09-26
/([^\s]+)\-([0-9][^\s;]+).*[\s;]/
0verkill-0.16nb1;0verkill is bloody 2D action deathmatch-like game in ASCII-ART
0: 0verkill-0.16nb1;0verkill is bloody 2D action deathmatch-like game in
1: 0verkill
2: 0.16nb1
2vcard-0.5nb3;Convert an addressbook to the popular VCARD file format
0: 2vcard-0.5nb3;Convert an addressbook to the popular VCARD file
1: 2vcard
example openvpn config, from a site, to a Joyent zone, under SDC7:
----------------------------------------------------------------------------------------------------------------
example config:
server end, in joyent cloud, pick an IP address: 10.4.4.1
client ent, at home, pick an IP address: 10.4.4.2
in this example, I'm calling that network a /24, or 255.255.255.0 netmask
--------------------
on "the customer end": (my example, on my linux OpenWRT router at home)

MDB is unlike most debuggers you've experienced.

It is not a source level debugger like gdb or lldb or even Node's builtin debugger

Generally used for postmortem analysis.

Postmortem is for Production and Development

We operate mostly on core files, though you can attach to running processes as well.

@bdha
bdha / gist:8628477
Last active October 13, 2016 18:06
Set up Graphite and Panoptimon on SmartOS

Install Graphite

pkgin up
pkgin in py27-graphite-web ap22-py27-wsgi

If pkgin says the package cannot be found, do this:

@phred
phred / pedantically_commented_playbook.yml
Last active November 3, 2023 01:55
Very complete Ansible playbook, showing off all the options
---
####
#### THIS IS OLD AND OUTDATED
#### LIKE, ANSIBLE 1.0 OLD.
####
#### PROBABLY HIT UP https://docs.ansible.com MY DUDES
####
#### IF IT BREAKS I'M JUST SOME GUY WITH
#### A DOG, OK, SORRY
####