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 | |
if [[ $EUID -ne 0 ]]; then | |
echo -e "\e[1;31mThis script must be run as root or it will fail\e[0m" 1>&2 | |
exit 1 | |
fi |
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 | |
OS=`cat /etc/redhat-release | awk {'print $1}'` | |
if [ "$OS" != "CentOS" ]; then | |
echo -e "\e[1;31mThis script is intended for CentOS only\e[0m" 1>&2 | |
#exit 1 | |
fi |
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 | |
# The current process has unrestricted/unlimited (root) access when the Effective User ID (EUID) is 0: | |
if [[ $EUID -ne 0 ]]; then | |
echo -e "\e[1;31mThis script must be run as root or it will fail\e[0m" 1>&2 | |
exit 1 | |
fi | |
# Make sure we are on CentOS | |
OS=`cat /etc/redhat-release | awk {'print $1}'` |
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 | |
# 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 \ |
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 | |
# 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 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 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 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 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 |
OlderNewer