This file contains 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
# Installing graphite dependencies | |
apt-get install -y python2.6 python-pip python-cairo python-django python-django-tagging | |
apt-get install -y libapache2-mod-wsgi python-twisted python-memcache python-pysqlite2 python-simplejson | |
pip install whisper | |
pip install carbon | |
pip install graphite-web | |
# Setup a vhost by grabbing the example the graphite team released on their repo. | |
# In this file, you'll provide the url used to access to your Graphite dashboard | |
wget https://raw.github.com/tmm1/graphite/master/examples/example-graphite-vhost.conf -O /etc/apache2/sites-available/graphite |
This file contains 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/local/opsview-web/root/navmenu/megamenu.orig 2013-05-04 17:23:26.000000000 -0400 | |
+++ /usr/local/opsview-web/root/navmenu/megamenu 2013-05-04 17:23:46.000000000 -0400 | |
@@ -83,8 +83,6 @@ | |
</div> | |
<div id="demo_opsview_cta_buttons"> | |
- <a href="http://www.opsview.com/solutions/pro/trial?[% c.track_back_querystring %]" border="0"><span>30-Day Pro Trial</span></a> | |
- <a href="http://www.opsview.com/solutions/pro?[% c.track_back_querystring %]" border="0"><span>Buy Pro NOW!</span></a> | |
</div> | |
This file contains 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 | |
# | |
# copy this into /etc/profile.d/instance-name-tag.sh | |
# | |
# you will need: | |
# - curl, jq, and aws cli installed | |
# - an IAM role that gives the EC2 instance access to describe tags | |
# |
This file contains 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/bin/env bash | |
# | |
# Get the value of a tag for a running EC2 instance. | |
# | |
# This can be useful within bootstrapping scripts ("user-data"). | |
# | |
# Note the EC3 instance needs to have an IAM role that lets it read tags. The policy | |
# JSON for this looks like: | |
# | |
# { |
This guide is based on this blog post: http://blog.smartcore.net.au/blazingly-fast-afp-on-a-smartos-zone/.
Find the latest image, in this case 4166f6d6-ea5f-11e4-addd-8351b159d9b6 (15.1.0), or 24648664-e50c-11e4-be23-0349d0a5f3cf (14.4.1) if you need Long Term Support (LTS).
# imgadm avail | grep base-64
NOTE: Content below is written by Adrian Mace. Click here for an updated version.
Below are the key settings that I apply on any unifi installation for optimal performance.
- Ensure
Enable Advanced Features
is enabled
This allows you to follow along with the guide in it's entirety.