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
| bash -c ' | |
| # | |
| # make sure sudo users have the full path... | |
| # | |
| # sudo visudo | |
| # Defaults env_keep += "PATH" | |
| # Defaults !secure_path | |
| # |
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
| """ | |
| Queries the slowlog database table maintained by Amazon RDS and outputs it in | |
| the normal MySQL slow log text format. Modified version of the script by | |
| memonic (Thanks!) at https://gist.github.com/1481025 | |
| Things to change in this script for your own setup: | |
| <root_user> to your mysql root user (e.g. "root") | |
| <root_pass> to your mysql root password (e.g. "hunter2") | |
| <host_domain> to your mysql root password (e.g. "prod-01.w3rfs2.us-east-1.rds.amazonaws.com") |
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/bin/env ruby | |
| require 'rubygems' | |
| require 'active_support/core_ext' | |
| chars = (('a'..'z').to_a + ('A'..'Z').to_a) | |
| time = Time.now.beginning_of_month | |
| twelve_hours_from_now = 12.hours.from_now | |
| end_of_next_month = 1.month.from_now.end_of_month |
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
| FIXME: | |
| WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8 | |
| or | |
| libxml_ruby.bundle: dlsym(0x10fde1900, Init_libxml_ruby): symbol not found | |
| gem uninstall nokogiri libxml-ruby | |
| brew update | |
| brew uninstall libxml2 |
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/sh -e | |
| rds_db_instance_identifier() { | |
| echo "$@" | sed -e 's/[^-0-9A-Za-z]/-/g' | |
| } | |
| rds_describe_db_instance() { | |
| if test $# -lt 1; then | |
| return 1 | |
| fi |
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
| " Port of my favorite theme Made of Code by Mark Dodwell | |
| " For Textmate Theme visit - http://madeofcode.com/posts/29-photo-my-new-textmate-theme-8220-made-of-code-8221-mdash-download-9-feb-2010-update-t | |
| " Vim color file | |
| set background=dark | |
| highlight clear | |
| if exists("syntax_on") | |
| syntax reset |
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
| Found this tip in comment here: http://www.tipb.com/2011/01/04/tipb-bug-home-button-working-iphone/ | |
| 1.) Open any application | |
| 2.) Press and hold the power button until the slide to shutdown swipe bar appears. | |
| 3.) Release Power button | |
| 4.) Press and hold Home button Lightly | |
| until screen returns to icon screen |
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
| # | |
| # Cookbook Name:: jenkins | |
| # Recipe:: default | |
| # | |
| # https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu | |
| # This is super-simple, compared to the other Chef cookbook I found | |
| # for Jenkins (https://github.com/fnichol/chef-jenkins). | |
| # | |
| # This doesn't include Chef libraries for adding Jenkin's jobs via |
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
| $hosts_table = { | |
| :dbm => "192.168.86.101", | |
| :app1 => "192.168.86.102", | |
| :app2 => "192.168.86.103", | |
| :lb => "192.168.86.104", | |
| } | |
| def bootstrap(config, host) | |
| config.vm.box = "lucid64" | |
| config.vm.network $hosts_table[host] |
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
| require 'fileutils' | |
| start_time = Time.now | |
| SOURCE_DATABASE = { | |
| :name => '...', | |
| :user => '...', | |
| :password => '...', | |
| :host => '...' | |
| } |