Skip to content

Instantly share code, notes, and snippets.

View tutysara's full-sized avatar

tutysara tutysara

View GitHub Profile
@tutysara
tutysara / install_edx.sh
Last active December 11, 2018 04:03
install_edx.sh
apt-get update
apt-get install -y apt-transport-https \
ca-certificates \
curl \
eog \
git \
htop \
mosh \
nodejs \
@tutysara
tutysara / bash_prompt.sh
Last active April 22, 2018 21:56 — forked from insin/bash_prompt.sh
Set color bash prompt according to active virtualenv, git branch and return status of last command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
@tutysara
tutysara / bash_prompt.sh
Created April 22, 2018 21:45 — forked from romanlevin/bash_prompt.sh
Set color bash prompt according to active pyenv, git branch and return status of last command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
@tutysara
tutysara / vf-fold.el
Last active April 22, 2018 14:02
vimish fold
;; :::::::::: parse buffer ::::::::::::::::::::::::::::::::::::::::::::::::::::::
;; working code
(defun vf-parse-buffer-defun ()
"test buffer parsing"
(interactive)
(with-current-buffer
(progn
(save-excursion
(goto-char (point-min))
(while (not (eobp))
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'AxelAli'
import os
import sys
#MADE BY AXEL ALI
#https://github.com/AxelAli
(defun sublime-text-2 ()
(interactive)
(color-theme-install
'(sublime-text-2
((background-color . "#171717")
(background-mode . light)
(border-color . "#1a1a1a")
(cursor-color . "#fce94f")
(foreground-color . "#cfbfad")
(mouse-color . "black"))
@tutysara
tutysara / rails_osx_maverk
Last active December 30, 2015 17:19
Install rails on osx
# adapted from - https://github.com/saasbook/courseware/blob/master/vm-setup/configure-image-0.10.2.sh
# install rvm and ruby
curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3
source /home/ubuntu/.rvm/scripts/rvm
# install gems
## GEMS
# install rails 3.2.13
#!/usr/bin/env bash
dir=$(dirname $0)
gconfdir=/apps/gnome-terminal/profiles
echo # This makes the prompts easier to follow (as do other random echos below)
########################
### Select a profile ###
########################
'''Usage: barchart_top_issues.py <rating.csv file> <topn>
By Saravana <tutysara@gmail.com>'''
import csv
import sys
from pylab import *
fileName = sys.argv[1]
topn = int(sys.argv[2])
http://www.oanda.com/currency/historical-rates/download?quote_currency=SGD&end_date=20129-3&start_date=2012-3-8&period=daily&display=absolute&rate=0&data_range=d180&price=bid&view=graph&base_currency_0=INR&base_currency_1=&base_currency_2=&base_currency_3=&base_currency_4=&download=csv