Skip to content

Instantly share code, notes, and snippets.

View rajanand02's full-sized avatar

Raj Anand rajanand02

View GitHub Profile
@rajanand02
rajanand02 / tmux.conf
Last active February 3, 2024 07:28
Tmux configurations with status bar theme
# set prefix to control-f
set -g prefix C-f
#unbind system defined prefix
unbind C-b
# helps in faster key repetition
set -sg escape-time 0
# start session number from 1 rather than 0
@rajanand02
rajanand02 / meteor-coffeescript.snippets
Last active August 29, 2015 13:58
vim-coffeescript snippets for meteor developement
# collection
snippet coll
${1:Collection} = new Meteor.Collection "${2:collection}"
# isClient block
snippet isc
if Meteor.isClient
${1:isClient block}
# isServer block
@rajanand02
rajanand02 / Meteor-handlebar.snippets
Created July 26, 2014 19:56
Meteor handlebars snippets for vim
snippet tmp
<template name = "${1:name}">
</template>
snippet #if
{{#if ${1}}}
${2}
{{/if}}
snippet #ife
@rajanand02
rajanand02 / terminator.conf
Created July 26, 2014 19:59
terminator configuration with solarized theme
[global_config]
custom_url_handler = Terminator
enabled_plugins = CustomCommandsMenu, LaunchpadBugURLHandler
title_transmit_bg_color = "#d30102"
focus = system
[keybindings]
[profiles]
[[default]]
scrollbar_position = hidden
palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3"
@rajanand02
rajanand02 / raj.zsh-theme
Created July 26, 2014 20:06
custom zsh theme
# Machine name.
function box_name {
[ -f ~/.box-name ] && cat ~/.box-name || hostname
}
# Directory info.
local current_dir='${PWD/#$HOME/~}'
# Git info.
local git_info='$(git_prompt_info)'
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install -y python-software-properties
sudo apt-get install python-software-properties python g++ make
sudo apt-get install -y curl tree zsh unrar git sublime-text nodejs xclip python-matplotlib python-numpy python-scipy littler libxss1 skype graphicsmagick qbittorrent vlc uget docky cheese
curl -L http://install.ohmyz.sh | sh
@rajanand02
rajanand02 / skip and limit
Last active August 29, 2015 14:09
Mongo skip and limit in meteor subscription
Meteor.publish("posts",(skip,limit)->
return Posts.find({post_id:this.userId},{sort:{date:-1},limit:limit,skip:skip})
)
Meteor.subscribe("posts",10,568)
# use session variables to keep track of limit and skip
@rajanand02
rajanand02 / ruby_installation
Created February 20, 2015 06:56
: instalation instruction for ruby, rails, heroku and postgresql
##First, ensure you have your Fedora install up to date:
`sudo yum update`
##Next, let's install the prerequisites we will need:
`sudo yum install git-core curl make bzip2 gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel libxslt-devel sqlite sqlite-devel openssl openssl-devel`
##We are now ready to install RVM:

##login as sudo user su ###then enter password

remove pre-installed ruby

yum remove ruby

check ruby was uninstalled successfully

ruby -v

#! /bin/bash
yum remove ruby
yum install -y git-core curl make bzip2 gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel libxslt-devel sqlite sqlite-devel openssl openssl-devel
yum install -y nodejs
echo "adding rvm key"