Skip to content

Instantly share code, notes, and snippets.

@anabarasan
anabarasan / jsonformatter.js
Last active December 12, 2015 04:08
json formatter script
/*
jsonformatter.js
usage
construct html table out of given JSON
var html = json2html(json);
format json and use output in editable text containers
var formattedJSONText = formatJSON(json,'text');
format json and use output in divs
var formattedJSONText = formatJSON(json,'html');
*/
@anabarasan
anabarasan / backupLog.sh
Last active December 11, 2015 12:58
Compress & Backup log file
#####################################################################
# Script to compress and back up deployment server log file.
#####################################################################
# CONFIG
# Define the nohup file location and the location to backup the file
logFileName="nohup.out"
nohupDirectory="/home/ubuntu/DeployServer/Tornado/deploy"
backupDirectory="/home/ubuntu/DeployServer/Tornado/deploy/logBackup"
@anabarasan
anabarasan / gist:4482431
Created January 8, 2013 09:22
deployment into local setup
SET PATH=%PATH%;C:\Program Files\7-Zip
SET SILVERLIGHT_STORAGE=C:\Documents and Settings\Anbarasan\Local Settings\Application Data\Microsoft\Silverlight\is\5xgohmxj.bs4\fqkwck4v.z2m\1\s\
SET TRIAL=r02acfm3cu224ca0skencbzvxwuneikcsbtfedohx0ymfkgae3aaabga\f\
SET APPLICATION_ID=81f43b82c0af11df97a28d34bf5da969
REM 7z x "%SILVERLIGHT_STORAGE%%TRIAL%%APPLICATION_ID%\app.zip" -o"D:\EasyEclipse\workspace\TestRuntime" -y > deploy.log
echo %DATE% %TIME% >deploy.log
7z x "%SILVERLIGHT_STORAGE%%TRIAL%%APPLICATION_ID%\app.zip" -o"D:\OrangeScape\bogzilla" -y >> deploy.log
@anabarasan
anabarasan / Quiz.html
Created December 12, 2012 05:34
The html used in Quiz for my company's Annual Day event.
<!doctype html>
<html>
<head>
<title>Quiz</title>
<style>
div{
width:100%;
text-align:center;
}
</style>