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
JAVA_HOME=<java location> | |
export JAVA_HOME | |
PATH=$JAVA_HOME/bin:$PATH | |
export PATH |
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
SELECT sourceid, url, COUNT( * ) | |
FROM source s | |
GROUP BY sourceid | |
ORDER BY COUNT( * ) DESC , url ASC | |
LIMIT 10000 |
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
# To be put in /etc/rc.d/rc.local | |
bash /home/ec2-user/misc/java-version-changer.sh >> /home/ec2-user/misc/java-change.log 2>&1 | |
# Contents of java-version-changer.sh that detects if openJDK is installed, if true first it will | |
# install sun jdl & then set it as the default Java SDK | |
dd="`date +%Y_%m_%d__%H_%M_%S`" | |
if [ `ls -l /etc/alternatives/java | grep openjdk | wc -l` -eq 1 ]; then | |
echo "$dd - Open JDK" | |
sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_01/bin/java 20000 | |
sudo /usr/sbin/alternatives --set java /usr/java/jdk1.7.0_01/bin/java |
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
// this is already existing code | |
for (Memberloginhistory memberloginhistoryFromDB : memberLoginHistoryListFromDB) { | |
parsedBrowserDetails = memberloginhistoryFromDB.getBrowserdetails(); | |
parsedBrowserDetails = UserAgentUtil.getBrowser(parsedBrowserDetails)[2] + " on " | |
+ UserAgentUtil.getOS(parsedBrowserDetails)[1]; | |
Member member = memberBO.getById(memberloginhistoryFromDB.getMember().getId()); | |
// Memberloginhistory object values have to retrive in jsp. |
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
Hi Meena.............. | |
//Method to dump depositorystructure into sourcesets and sources tables | |
public String dumpDepositoryStructureInToSourceSetsAndSources() { | |
//Get all active depositories | |
for (Depository depository : depositoryDAO.getAll()) { | |
int count = 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
log_destination_dir=$3 | |
cluster=$1 | |
node_index_start=$2 | |
nodex_index_next=$(($node_index_start+1)) | |
node_type=( master job index ) | |
node_indices=( $node_index_start $nodex_index_next ) | |
fetched_files=( ) | |
for current_node_type in "${node_type[@]}"; do |
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
var DfpOutOfPageAdGenerator = DfpOutOfPageAdGenerator || {}; | |
DfpOutOfPageAdGenerator.Prestitial = Class.extend({ | |
properties: { | |
isAdSkippedManually: false, | |
dfpCreativeMarkup: undefined, | |
dfpCreativeParameters: undefined | |
}, | |
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 '../libs/prefixer.less'; | |
@min-z-index: 10000001; | |
.no-scroll { | |
overflow: hidden; | |
} | |
#prestitial-ad-overlay { | |
position: fixed; |
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
<link rel="stylesheet" href="/css/dfp/interstitial.css" /> | |
<script src="/js/dfp/prestitial.js"></script> | |
<div id="prestitial-ad-outer-container"> | |
<div id="prestitial-ad-overlay"></div> | |
<div id="prestitial-ad-close">Click to Skip Ad</div> | |
<div id="prestitial-ad-duration-counter"><em>Closing in...</em></div> | |
<div id="prestitial-ad-logo"></div> | |
<div id="prestitial-ad-container"></div> | |
<div id="prestitial-ad-third-party-content-view-tracker"></div> |
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
# First verify the version of Java being used is not SunJSK. | |
java -version | |
# Get the latest Sun Java SDK from Oracle http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html | |
wget http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-linux-i586.rpm | |
# Rename the file downloaded, just to be nice | |
mv jdk-7u1-linux-i586.rpm\?e\=1320265424\&h\=916f87354faed15fe652d9f76d64c844 jdk-7u1-linux-i586.rpm | |
# Install Java |
OlderNewer