Skip to content

Instantly share code, notes, and snippets.

Avatar

tutysara tutysara

View GitHub Profile
@tutysara
tutysara / install_edx.sh
Last active Dec 11, 2018
install_edx.sh
View 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 Apr 22, 2018 — forked from insin/bash_prompt.sh
Set color bash prompt according to active virtualenv, git branch and return status of last command.
View bash_prompt.sh
#!/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 Apr 22, 2018 — forked from romanlevin/bash_prompt.sh
Set color bash prompt according to active pyenv, git branch and return status of last command.
View bash_prompt.sh
#!/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 Apr 22, 2018
vimish fold
View vf-fold.el
;; :::::::::: 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))
View vtt_formatter.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'AxelAli'
import os
import sys
#MADE BY AXEL ALI
#https://github.com/AxelAli
View sublime-text-2.el
(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 Dec 30, 2015
Install rails on osx
View rails_osx_maverk
# 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
View gnome-terminal-zenburn.sh
#!/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 ###
########################
View barchart_top_issues.py
'''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])
View data2_url.sh
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