Skip to content

Instantly share code, notes, and snippets.

@nkabir
nkabir / config
Created September 27, 2012 15:41
BitBucket SSH
Host bb-agrothendieck
HostName bitbucket.org
PreferredAuthentications publickey
IdentityFile ~/.ssh/bb-agrothendieck
@nkabir
nkabir / deal-event.xml
Created August 15, 2012 18:39
Event Types
<dealEvent id="1">
<refQ>100</refQ> // reference quotable
<reporter>123</reporter> // reporter {Bloomberg, Reuters, Datastream}
<serialDay>42000</serialDay> // include Gregorian attribute?
<millis>0</millis> // utc millis
<level>543.0</level>
<facets> // facets include a set of integer flags that indicate CLOSE, OPEN, WARN
<facet>1</facet> // mixed purpose but may be small enough set to be ok
</facets>
<pMaker>100</pMaker> // price maker id
@nkabir
nkabir / txdb.sql
Created August 15, 2012 16:14
txdb database schema
alter table TX_SYMBOL
drop constraint TX_SYMBOL_QUOTABLE_ID_FK;
alter table TX_SYMBOL
drop constraint TX_SYMBOL_SERIES_ID_FK;
alter table TX_SYMBOL_SERIES
drop constraint TX_SYMBOL_SERIES_AGENT_ID_FK;
@nkabir
nkabir / new_bashrc.sh
Created August 11, 2012 09:40 — forked from josephwecker/new_bashrc.sh
Replace .bashrc, .bash_profile, .profile, etc. with something much more clean, consistent, and meaningful.
#!/bin/bash
# License: Public Domain.
# Author: Joseph Wecker, 2012
#
# Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile?
# Are you tired of trying to remember how darwin/mac-osx treat them differently from linux?
# Are you tired of not having your ~/.bash* stuff work the way you expect?
#
# Symlink all of the following to this file:
# * ~/.bashrc
@nkabir
nkabir / eclipse-juno.md
Created July 27, 2012 18:41
Eclipse Juno Setup for Python

Eclipse for Python Development

Note that we use separate installations of Eclipse for various languages:

  • Java
  • C/C++
  • Scripting: Javascript, Bash and Python

Download Eclipse Juno JEE.

@nkabir
nkabir / blogger-setup.md
Created July 26, 2012 16:49
Set up Blogger-based documentation

Google CL

Install the googlecl tool with

$ sudo pip install googlecl

The command is called google

Blogger

@nkabir
nkabir / post.md
Created July 25, 2012 16:59
First Post

gist.io

A subsection

The server

The client

@nkabir
nkabir / settings.xml
Created June 12, 2012 17:19
Fimero settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
@nkabir
nkabir / sources.list
Created May 15, 2012 16:34
Files for PrecisePangolin
#deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/main/binary-i386/
#deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/restricted/binary-i386/
#deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ precise main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted
@nkabir
nkabir / gist:2701721
Created May 15, 2012 13:23
Markdown Examples

Mindtouch Specific

{{ syntax.shell{code: "your code", collapse: "false", firstline: "0",
gutter: "true",ruler: "false", toolbar: "true", wrap: "false"} }}


Header 1

Header 2

Header 3 ### (Hashes on right are optional)