This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo pstack 73415 | |
73415: /opt/local/sbin/nginx -c /opt/local/etc/nginx/nginx.conf | |
fffffd7fff2704ca sigsuspend (fffffd7fffdffab0) | |
0000000000447590 ngx_master_process_cycle () + 340 | |
0000000000428fe8 main () + a4e | |
0000000000427dbc _start () + 6c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/sbin/dtrace -s | |
/* | |
* mysql_pid_slow.d Trace queries slower than specified ms. | |
* | |
* USAGE: ./mysql_pid_slow.d -p mysqld_PID min_ms | |
* | |
* TESTED: these pid-provider probes may only work on some mysqld versions. | |
* 5.0.51a: ok | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
disk_used L `df / | tail -1 | awk '{print $2}'` | |
disk_free L `df / | tail -1 | awk '{print $3}'` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> ::status | |
debugging crash dump vmcore.0 (64-bit) from 00-14-4f-23-fb-24 | |
operating system: 5.11 joyent_20121101T182015Z (i86pc) | |
image uuid: (not set) | |
panic message: | |
BAD TRAP: type=e (#pf Page fault) rp=ffffff00094b99a0 addr=80 occurred in module "un | |
ix" due to a NULL pointer dereference | |
dump content: kernel pages only | |
> $c | |
mutex_enter+0xb() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Generated by Chef for <%= @node[:fqdn] %> | |
if [ -f /tmp/dns_master-slave ]; then | |
exit 0 | |
fi | |
TTL=3600 | |
ZONE=`hostname | awk -F"." '{print $2"."$3"."$4}'` | |
KEYFILE="/root/keys/ddns.private" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## may be deprecated by https://github.com/wanelo-chef/nad | |
#!/bin/bash | |
git clone git://github.com/circonus-labs/nad.git | |
cd ./nad && make install | |
cd /opt/omni/etc/node-agent.d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This document describes updating the SmartOS boot_archive and /usr volumes. | |
# | |
# The boot_archive effectively contains /. If you want to make changes to SMF | |
# or so forth, you need to update the boot_archive. | |
# | |
# If you want to add things to /usr, such as drivers, you will need to update | |
# usr.lgz. It is compressed, so note the lofiadm -U and -C calls below. Once | |
# you have updated usr.lgz you will need to copy it back to the mounted | |
# boot_arhive. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
<service_bundle type='manifest' name='chef-client'> | |
<service | |
name='application/management/chef-client' | |
type='service' | |
version='1'> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# chef-client Startup script for the Chef client | |
# | |
# description: Client component of the Chef systems integration framework. | |
exec="/opt/local/bin/chef-client" | |
prog="chef-client" | |
config=${CONFIG-/etc/chef/client.rb} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Created by Chef. Local changes will be overwritten. | |
# Copyright 2004 Sun Microsystems, Inc. All rights reserved. | |
# Use is subject to license terms. | |
# | |
# ident "@(#)sshd_config 1.8 04/05/10 SMI" | |
# | |
# Configuration file for sshd(1m) | |
# | |
# Protocol versions supported | |
# Uncomment ONLY ONE of the following Protocol statements. |