Skip to content

Instantly share code, notes, and snippets.

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
RUNTIME_CONTEXT=staging
@nkabir
nkabir / gist:5052197
Created February 27, 2013 22:01
Deal event
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dealEvent id="102">
<year>2013</year>
<refQ>1</refQ>
<reporter>1</reporter>
<serialDay>41326</serialDay>
<millis>0</millis>
<level>10.017503888977448</level>
<facets>
<facet>1</facet>
@DirectMethod
public String doHello(String name) {
return "Hello, " + name;
}
#!/usr/bin/env bash
export BASE=/opt/bbdill/current/bin
source $BASE/init.sh
python $BASE/plot-market-indexes.py
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
wget https://github.com/elasticsearch/elasticsearch/archive/v0.20.1.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
sudo mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share
@nkabir
nkabir / portal-ext.properties
Created November 5, 2012 17:35
Liferay portal-ext.properties
######################################################################################
#
# Database Configuration
#
######################################################################################
# MySQL database settings
# Assumes that a database has been created with name 'liferay'
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/liferay?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username={{ dbuser }}
@nkabir
nkabir / hgrc
Last active October 11, 2015 20:18
Mercurial hgrc
[ui]
#------------------------------------------------------------------------------
# change this to your email address
#------------------------------------------------------------------------------
# username = Alice Smith <[email protected]>
username = {{ username }}
editor=vi
merge=meld
@nkabir
nkabir / eclipse-python.sh
Created October 5, 2012 21:51
Eclipse python launch script
#!/usr/bin/env bash
source dev-env.sh
# example that sets up LD_LIBRARY path for C++ libraries used by Python
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/fincad/fincad/lib
# We also increase the heap size
$HOME/local/eclipse-juno/eclipse-python/eclipse/eclipse -vmargs -Xmx2048M
@nkabir
nkabir / gist:3835160
Created October 4, 2012 17:34
Time Series Cleaner in R
####################################################################################################################
# Name : DATACLEANING S&P
# Author : Nikos Rachmanis
# Version : 1.0
# Copyright : Your copyright notice
# Description : Data cleaning and merging
####################################################################################################################
####################################################################################################################
### Libraries + Settings ###########################################################################################