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 | |
declare -A LDAP_USERS | |
# | |
# Setup authorized_keys for users in groups assigned to this server | |
# | |
for GID in "$@" | |
do | |
USERS=$(ldapsearch -LLL -x -H ldap://ldap1.bos1 -b dc=bos1 "gidNumber=${GID}" uid | grep "uid: " | cut -f2 -d' ') |
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
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice | |
maxconn 12083 | |
user haproxy | |
group haproxy | |
spread-checks 5 | |
daemon | |
defaults |
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
apt-get update | |
apt-get install -y software-properties-common python-software-properties | |
add-apt-repository -y ppa:webupd8team/java | |
apt-get update | |
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections | |
apt-get install -y oracle-java7-installer openjdk-7-jdk ant1.7 git curl | |
git clone http://github.com/lucidworks/solr-couchbase-plugin | |
cd solr-couchbase-plugin | |
perl -pi -e "s/failonerror=\"true\" \/>//" build.xml | |
perl -pi -e "s/ignorewhitespace=\"true\"/ignorewhitespace=\"true\" \/>/" build.xml |
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
sudo yum install -y java-1.7.0-openjdk java-1.7.0-openjdk-devel xml-commons-apis git | |
RELEASE6=$(grep -c "release 6" /etc/redhat-release) | |
if [ $RELEASE6 -eq 1 ]; then | |
sudo yum install -y ant | |
else | |
sudo yum install -y ant17 | |
fi | |
mkdir /usr/lib/java-1.7.0 /usr/share/java-1.7.0 | |
echo "export JAVA_HOME=/usr/lib/jvm/java-1.7.0" >> ~/.bash_profile | |
echo "export ofPATH=$JAVA_HOME/bin:$PATH" >> ~/.bash_profile |
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 | |
ADMIN="Administrator" | |
PASS="password" | |
NODE="localhost" | |
REST_PORT=8091 | |
INSTALL_DIR="/opt/couchbase" | |
STATUS=$($INSTALL_DIR/bin/couchbase-cli server-list -c $NODE:$REST_PORT -u $ADMIN -p $PASS) |
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 | |
# check: vbucket_check.sh | |
# This check generates a test key for each node in the cluster. Each test key is fetched and success/failure reported by server. | |
# Requires: curl, Couchbase vbuckettool, Couchbase C client | |
host=localhost | |
bucket=default | |
rest_port=8091 |
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
# from https://code.google.com/p/ntzc/source/browse/trunk/zc/ixgbe/set_irq_affinity.sh | |
# | |
# | |
# setting up irq affinity according to /proc/interrupts | |
# 2008-11-25 Robert Olsson | |
# 2009-02-19 updated by Jesse Brandeburg | |
# | |
# > Dave Miller: | |
# (To get consistent naming in /proc/interrups) | |
# I would suggest that people use something like: |
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 | |
ARCHIVE=/backup | |
REPO=local | |
HOST=localhost | |
USERNAME=Administrator | |
PASSWORD=password | |
THREADS=4 | |
RESTOREPOINTS=3 |
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
import com.couchbase.client.java.Bucket; | |
import com.couchbase.client.java.CouchbaseCluster; | |
import com.couchbase.client.java.document.Document; | |
import com.couchbase.client.java.document.LegacyDocument; | |
import com.couchbase.client.java.transcoder.LegacyTranscoder; | |
import com.couchbase.client.java.transcoder.Transcoder; | |
import java.io.Serializable; | |
import java.util.ArrayList; | |
import java.util.Arrays; |
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
/* | |
* Copyright (c) 2016 Couchbase, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
OlderNewer