Skip to content

Instantly share code, notes, and snippets.

@nkabir
nkabir / gads-sync.xml
Created February 28, 2012 16:59
Google Apps Dir Sync
<?xml version="1.0" encoding="UTF-8"?>
<config version="0.2" id="c35dc4ae357543098a3a0b3a251447ea" rev="f7649dc81f234603bc9ce8fbf66a6ad7">
<version>2.0.1</version>
<features>
<optional>GROUP_DESCRIPTION</optional>
<optional>GROUPS</optional>
<optional>SKIP_ORGUNITS</optional>
<optional>MULTIDOMAIN</optional>
<optional>GOOGLE_ORGUNITS</optional>
<optional>ALIAS_SYNCHRONIZATION</optional>
@nkabir
nkabir / dropbox.sh
Created March 12, 2012 20:05
Dropbox Startup on Linux
#!/bin/sh
# dropbox service
# sudo chmod +x /etc/init.d/dropbox.sh
# sudo update-rc.d dropbox.sh defaults
DROPBOX_USERS="user1 user2"
DAEMON=.dropbox-dist/dropbox
start() {
@nkabir
nkabir / settings.xml
Created March 22, 2012 15:59
Maven Settings xml for Sonar
<profiles>
<profile>
<id>sonar</id>
<properties>
<sonar.jdbc.url>jdbc:mysql://localhost:3306/sonar</sonar.jdbc.url>
<sonar.jdbc.driver>com.mysql.jdbc.Driver</sonar.jdbc.driver>
<sonar.jdbc.username>sonar</sonar.jdbc.username>
<sonar.jdbc.password>xxxxx</sonar.jdbc.password>
<!-- SERVER ON A REMOTE HOST -->
<sonar.host.url>http://localhost:9000</sonar.host.url>
@nkabir
nkabir / gist:2217712
Created March 27, 2012 16:32
virtualenv configuration files
# virtualenv
# create a $HOME/vedev folder
export WORKON_HOME=$HOME/vedev
source /usr/local/bin/virtualenvwrapper.sh
# virtualenv aliases
# http://blog.doughellmann.com/2010/01/virtualenvwrapper-tips-and-tricks.html
alias v='workon'
alias v.deactivate='deactivate'
alias v.mk='mkvirtualenv --no-site-packages'
alias v.mk_withsitepackages='mkvirtualenv'
@nkabir
nkabir / gist:2415275
Created April 18, 2012 17:28
Python module layout
################################################################################
# Module methods
################################################################################
################################################################################
# Classes
################################################################################
################################################################################
# Shared instances and initialization
@nkabir
nkabir / gist:2467474
Created April 22, 2012 23:23
matplotlibrc
### MATPLOTLIBRC FORMAT
# This is a sample matplotlib configuration file - you can find a copy
# of it on your system in
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it
# there, please note that it will be overridden in your next install.
# If you want to keep a permanent local copy that will not be
# over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux
# like systems) and C:\Documents and Settings\yourname\.matplotlib
# (win32 systems).
@nkabir
nkabir / deal-listing.tex
Created May 5, 2012 20:32
LaTeX snippets
% listing for a deal specification
\begin{listing}
\begin{sidebox}[black][color_box_tip][1.0]
\begin{packed_item}
\item \textbf{Price Taker} The agent that invites the transaction by requesting the deal level for a particular deal then perhaps accepts the level.
\item \textbf{Price Maker} The agent that quotes a deal level in response to the price taker's request, the confirms acceptance.
\item \textbf{Execution Timestamp} The time at which both parties have confirmed acceptance.
\item \textbf{Execution Venue} The legal context in which the transaction occurs.
@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)

@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 / 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>