Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan Nelson ryancnelson

View GitHub Profile
@ryancnelson
ryancnelson / pedantically_commented_playbook.yml
Created Jun 10, 2016 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
View pedantically_commented_playbook.yml
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
View gist:caa0d8efd5f4fa8bfe95
Verifying that +ryancnelson is my blockchain ID. https://onename.com/ryancnelson
@ryancnelson
ryancnelson / gist:71c8451838e35f7fc643
Created May 1, 2015
Nahum's Salt binaries directory: (not produced by Joyent)
View gist:71c8451838e35f7fc643
list files in this manta directory:
each should be downloadable from http://us-east.manta.joyent.com/nahamu/public/salt/<filename>
$ curl -s http://us-east.manta.joyent.com/nahamu/public/salt/ | json -Hag name
build
salt-0.17.0.solaris-2_11-i86pc_64bit.zip
salt-0.17.1-esky-smartos-elysium.tar.gz
salt-0.17.1-esky-smartos.tar.gz
View -
prtconf -v shows:
pci8086,3 (driver not attached)
Hardware properties:
name='acpi-namespace' type=string items=1
value='\_SB_.PCI1.QR1A.H001'
name='assigned-addresses' type=int items=15
value=c3810110.0000387f.ffd00000.00000000.00080000.81810118.00000000.00008000.00000000.00000020.c3810120.0000387f.ffe00000.00000000.00004000
View -
[2015-03-25T23:14:19.362Z] DEBUG: vmadmd/2285 on 4c-72-b9-24-87-1d: executing zoneadm (req_id=f45590e8-6a47-ee7c-bd6b-a3daed4df2b5, action=lookup, search={}, cmdline="/usr/sbin/zoneadm list -p -c")
[2015-03-25T23:14:19.370Z] DEBUG: vmadmd/2285 on 4c-72-b9-24-87-1d: zoneadm[2291] running (req_id=f45590e8-6a47-ee7c-bd6b-a3daed4df2b5, action=lookup, search={})
[2015-03-25T23:14:19.374Z] TRACE: vmadmd/2285 on 4c-72-b9-24-87-1d: loaded zoneadm object (req_id=f45590e8-6a47-ee7c-bd6b-a3daed4df2b5, action=lookup, search={})
object: {
"zoneid": 0,
"zonename": "global",
"state": "running",
"zonepath": "/",
"uuid": "",
"brand": "liveimg",
View -
{
"brand": "lx",
"kernel_version": "3.13.0",
"image_uuid": "818cc79e-ceb3-11e4-99ee-7bc8c674e754",
"alias": "lx-zone1",
"hostname": "lx-zone1",
"max_physical_memory": 2048,
"quota": 200,
"resolvers": ["8.8.8.8", "8.8.4.4"],
"nics": [
View -
March 29, 2015 04:43:46 AM UTC
zone c3310214-f9ea-4335-8d6a-1a40712c0207 pre-state-change 2 0
+ jst_simplefs=yes
+ jst_mdatapath=/native/.zonecontrol/
+ . /usr/lib/brand/jcommon/statechange
+ unset LD_LIBRARY_PATH
+ PATH=/usr/bin:/usr/sbin
+ export PATH
+ . /lib/sdc/config.sh
+ CACHE_FILE_JSON=/tmp/.config.json
View -
[root@zone2 ~]# ifconfig lo0:1 plumb
[root@zone2 ~]# ifconfig lo0:1 127.0.0.99 up
[root@zone2 ~]# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.99 netmask ff000000
net0: flags=40001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,L3PROTECT> mtu 9000 index 2
inet 10.88.88.16 netmask ffffff00 broadcast 10.88.88.255
ether f2:46:f2:3:15:7f
View -
"customer_metadata": {
"root_authorized_keys": "ssh-dss AAAAB3NzaC1kc3MAAACBAIb4KvmKMimikUNw4w+LiF07OPQiVs25anDRkk60qyrIPp4StbNRhGTDQZqVFx9wyGJKKKr9QI3fx4i8XC37EC7k2IuAZ7vULeNf4qUeLREB/fkgENVmJRbQkqkuuUgYTpt2YNVsg0d/5xjTzYnTNFvIP1BvfJzO8qa1HzY/NG8NAAAAFQD+KLd0RmMbpyjQ3c+QNsBntJ+cgQAAAIBZ7jIVab5HKsdC9jaBlKzW0PHbDsdaM/r+8XIoOGuBM7//EhJacwWGwQ0WcaX5Qb+ANzmuNP1aMKAU5pdir3JK6+eBjZRzBscFp0tOcWjNguc/YaUZxnW8iIOaFfWaBrzrJqLzelqY03kQxH3TuHsz/FfdbIQLYNfSb0iAYsuf2QAAAIBXRza+qG4K1LpanqbvUo6QXzdrCoxchPDpVmmy+m8EY17KxJ5EDTtA5FJuruNKuk19P3HFWCD22kxcLZG00+DR2y+yCT1FAuh+uhLVv71LSpXbVZqv8gS73VQJRPvodCzEi+xrqYh//RzggSGpbF77qiebuzEcZS03LNfCKIBZ4A== ryan@calibook\nssh-dss AAAAB3NzaC1kc3MAAAEBAON+7kNvd6Wzh0DJ1yM+1QMfCi1kJ+yl4w1Z7HT5BFa/Zdx4ShOnPOFaiCUs4yMj26RO41eRZG0pl/t8s2cB+hnPxbJIcStTyfl8DmYXD5cTiqLADSiIPYMwUQX3E2whszGpmeux+vRWQhaquGNCA3PpftDAGDnG3qhnHELnIeqeiuLWvi+2YfUEor7/a9ehYfLQgcQYyE2Qc08AahaOdi7D5YgSzNQBGQQc0c8Jbo/bqNpIdZq4ep9qrlIRPM7V41DSeeu75PyqY7rO6k+z3LwzLaoseD9c3kSan+r8AAGUQrP0dOU+boZzV/uWWZBYEvMta/qx93mP/Glbi/
View mdb.md

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.

You can’t perform that action at this time.