Skip to content

Instantly share code, notes, and snippets.

View nturaga's full-sized avatar
🌏
Focusing

Nitesh Turaga nturaga

🌏
Focusing
View GitHub Profile
@nturaga
nturaga / feed.xml
Created September 22, 2017 18:41 — forked from sergeylukin/feed.xml
Git hook: Export pushed commit to RSS FEED
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="en">
<title type="text">Git push feed</title>
</feed>
@nturaga
nturaga / pre-receive
Created July 11, 2017 16:34 — forked from wzxjohn/pre-receive
commit size pre-receive hook
#!/bin/sh
GITCMD="/usr/local/bin/git"
NULLSHA="0000000000000000000000000000000000000000"
MAXSIZE="5242880" # 5MB limit on file size
EXIT=0
# Read stdin for ref information
while read oldref newref refname; do
# Skip branch deletions
@nturaga
nturaga / blast.c
Last active August 29, 2015 14:23 — forked from jxtx/blast.c
/*
* BLAST - Search two DNA sequences for locally maximal segment pairs. The basic
* command syntax is
*
* BLAST sequence1 sequence2
*
* where sequence1 and sequence2 name files containing DNA sequences. Lines
* at the beginnings of the files that don't start with 'A', 'C', 'T' or 'G'
* are discarded. Thus a typical sequence file might begin:
*
Overview: bit.ly/gcc2014workflows
Tool Authors: http://planemo.readthedocs.org/en/latest/writing_standalone.html#collections
History Management: https://wiki.galaxyproject.org/Histories#Dataset_Collections
An Analysis (RNA-seq):
1. https://vimeo.com/128265983
2. https://vimeo.com/128268401
@nturaga
nturaga / .vimrc
Last active August 29, 2015 14:16 — forked from dannon/.vimrc
"ack.vim ctrlp.vim nerdcommenter sort-python-imports vim-hackernews vim-markdown vim-scmdiff
"autopep8.vim jellybeans.vim pep8 syntastic vim-irblack vim-repeat YouCompleteMe
set nocompatible
filetype off
"Pathogen
call pathogen#infect()
call pathogen#helptags()
@nturaga
nturaga / chatminder.py
Last active August 29, 2015 14:15 — forked from dannon/chatminder.py
#!/usr/bin/python
"""
Python script for tailing irc logs and mailing notifications.
"""
import os
import smtplib
import pickle
import copy
from optparse import OptionParser