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 | |
APPLICATION_IP="192.168.33.1/24" | |
REPLICA_SET="MyReplicaSet" | |
KEY_FILE_PATH="/etc/mongodb/keyfiles" | |
KEY_FILE="mongodb-keyfile" | |
# Make sure this is executed on CentOS 7 | |
OS=`cat /etc/redhat-release | awk {'print $1$4}'` | |
if [ "$OS" != CentOS7* ]; then |
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" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>homebrew.mxcl.jenkins</string> | |
<key>UserName</key> | |
<string>jenkins</string> | |
<key>Nice</key> | |
<integer>-10</integer> |
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
<appender name="GraphiteUdpAppender" type="log4net.Appender.UdpAppender"> | |
<remoteAddress value="graphiteserver.somewhere.com"/> | |
<remotePort value="8125"/> | |
<layout type="log4net.Layout.PatternLayout"> | |
<IgnoresException value="False"/> | |
<conversionPattern value="%property{log4net:HostName}.log4net.%level:1|kv\n"/> | |
</layout> | |
</appender> | |
<!-- Remember to add the appender to the root |
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
INSERT INTO table (c1, c2, c3) | |
(SELECT 'new c1', c2, c3 | |
FROM table | |
WHERE c1 = 'old c1') |
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
git clone https://android.googlesource.com/platform/frameworks/volley | |
cd .\volley | |
C:\Android\android-sdk\tools\android.bat update project -p . | |
$Env:JAVA_HOME = "C:\Program Files (x86)\Java\jdk1.6.0_45" | |
C:\Ant\apache-ant-1.9.2\bin\ant.bat jar |
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" encoding="UTF-8"?> | |
<bookmarks> | |
<site url="http://download.eclipse.org/egit/updates" selected="true" name="EGit"/> | |
<site url="https://svn.codespot.com/a/eclipselabs.org/jsdt-jquery/updatesite" selected="true" name="JSDT jQuery"/> | |
<site url="http://github.eclipsesource.com/jshint-eclipse/updates/" selected="true" name="JSHint"/> | |
<site url="https://sourceforge.net/projects/eclipsejsonedit/files/update" selected="true" name="JSON Editor"/> | |
<site url="http://dl.bintray.com/nodeclipse/nodeclipse/0.7.0/" selected="true" name="Nodeclipse"/> | |
</bookmarks> |
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
-startup | |
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20130807-1835 | |
-product | |
org.eclipse.epp.package.standard.product | |
--launcher.defaultAction | |
openFile | |
--launcher.XXMaxPermSize | |
512M |
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
// Using <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> | |
var array = $('form').serializeArray(); | |
var json = {}; | |
$.each(array, function() { | |
json[this.name] = this.value || ''; | |
}); | |
$.ajax({ |
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 | |
# Create a repo for fetching Mongo | |
cat << 'EOF' > /etc/yum.repos.d/10gen.repo | |
[10gen] | |
name=10gen Repository | |
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 | |
gpgcheck=0 | |
enabled=1 | |
EOF |
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 | |
# Add the EPEL repo if not added already | |
yum repolist | grep -i epel | |
if [ $? -ne 0 ]; then | |
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
fi | |
# Install the preqs | |
yum install gcc-c++ httpd python-devel python-pip python-sqlite2 \ |