[Rails] (http://rubyonrails.org/)
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 | |
# User Data Script for Bootstrapping Lab - Architecting on AWS : Advanced Concepts | |
# Enable EPEL Repo | |
# This step is using sed, a standard Linux stream editor, to change the value of one line in a configuration file | |
# Reference: http://www.gnu.org/software/sed/manual/sed.html | |
/bin/sed -i '0,/enabled\=0/{s/0/1/}' /etc/yum.repos.d/epel.repo | |
# Install PHPMyAdmin | |
# This step is using yum, the Amazon Linux package manager, to install PHPMyAdmin and all of its components |
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
class Dashing.Pie extends Dashing.Widget | |
@accessor 'value' | |
onData: (data) -> | |
@render(data.value) | |
render: (data) -> | |
if(!data) | |
data = @get("value") | |
if(!data) |
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
irb(main):001:0> require 'bunny' | |
=> true | |
irb(main):002:0> c = Bunny.new | |
=> #<Bunny::Session:0x007f7074461e00 @default_hosts_shuffle_strategy=#<Proc:0x007f7074461ce8@/usr/local/lib/ruby/gems/2.0.0/gems/bunny-1.7.0/lib/bunny/session.rb:137>, @opts={}, @hosts=["127.0.0.1"], @host_index=1, @port=5672, @user="guest", @pass="guest", @vhost="/", @logfile=#<IO:<STDOUT>>, @threaded=true, @logger=#<Logger:0x007f7074461b30 @progname="#<Bunny::Session:70060481908480 [email protected]:5672, vhost=/, hosts=[127.0.0.1]>", @level=2, @default_formatter=#<Logger::Formatter:0x007f7074461a90 @datetime_format=nil>, @formatter=nil, @logdev=#<Logger::LogDevice:0x007f7074461a18 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDOUT>>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x007f70744619f0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x007f7074461978>>>>, @automatically_recover=true, @network_recovery_interval=5.0, @recover_from_connection_close=false, @continuation_timeout=4000, @status=:not_connected, @blocked=fal |
I hereby claim:
- I am strongjz on github.
- I am strongjz (https://keybase.io/strongjz) on keybase.
- I have a public key whose fingerprint is 955E 384E 8B36 BF5B 02E3 D2A4 08D1 1276 8A12 9699
To claim this, I am signing this object:
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 | |
# Use whichever region you're working in | |
export AWS_DEFAULT_REGION=eu-west-1 | |
# Make ec2-user's home dir the install to make it easier to navigate when subsequently ssh-ing in to instances | |
su ec2-user - | |
cd /home/ec2-user | |
echo Working dir is `pwd` |
An IAM user policy document to give minimal rights for deploying an Elastic Beanstalk application.
Where:
REGION
: AWS region.ACCOUNT_ID
: AWS account ID.APPLICATION_NAME
: Desired target Elastic Beanstalk application name(space).IAM_INSTANCE_PROFILE_ROLE
: The instance profile (IAM role) Elastic Beanstalk EC2 instaces will run under.
This is a step by step instruction on how to create a cluster that has three Solr nodes running in cloud mode. These instructions should work on both a local cluster (for testing) and a remote cluster where each server runs in its own physical machine.
This was tested on Solr version 5.4.1
and Zookeeper version 3.4.6
- Download and extract Solr:
curl -O http://archive.apache.org/dist/lucene/solr/5.5.3/solr-5.5.3.tgz
mkdir /opt/solr
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 | |
set -e | |
if [ $# -eq 0 ]; then | |
echo "USAGE: $0 plugin1 plugin2 ..." | |
exit 1 | |
fi | |
plugin_dir=/var/lib/jenkins/plugins |
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
test |
OlderNewer