Skip to content

Instantly share code, notes, and snippets.

View sarbbottam's full-sized avatar

Sarbbottam Bandyopadhyay sarbbottam

View GitHub Profile
{{#self-focused}}
{{!-- html block to be yielded --}}
{{/self-focused}}
{#self-focused}}
{{!-- html block to be yielded --}}
{{#self-focused}}
{{!-- html block to be yielded --}}
{{/self-focused}}
{{/self-focused}}
@sarbbottam
sarbbottam / compass.md
Last active August 29, 2015 14:05
Install SASS and Compass in RHEL
$ sudo yum install ruby
$ sudo yum install rubygems
$ gem update --system
$ gem install compass
@sarbbottam
sarbbottam / install conf-files
Last active August 29, 2015 14:05
install conf-files
mkdir GitHub && cd $_ && git clone git@github.com:sarbbottam/conf-files.git && sh conf-files/conf-\(un\)installers/install
@sarbbottam
sarbbottam / snippets.js
Created July 13, 2014 19:55
JavaScript Snippets
document.querySelectorAll('p'); // returns a NodeList
[].slice.call(document.querySelectorAll('p')) // returns an array
@sarbbottam
sarbbottam / page-expire.php
Last active August 29, 2015 14:01
Page Expire - PHP
<?php
header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1.
header('Pragma: no-cache'); // HTTP 1.0.
header('Expires: 0'); // Proxies.
?>
@sarbbottam
sarbbottam / scss-namespace.css
Last active May 31, 2019 07:12
SCSS namespace
$inuit-namespace: test- !default;
.#{$inuit-namespace}layout{
list-style: none;
margin: 0;
padding: 0;
}
/* as well as */
@sarbbottam
sarbbottam / Install nodejs in RHEL 6.md
Created February 19, 2014 14:11
Install nodejs in RHEL 6

Installing Node.js via package manager

Node.js and npm are available from the Fedora Extra Packages for Enterprise Linux (EPEL) repository. If you haven't already done so, first enable EPEL.

To check if you have EPEL, run

yum repolist

if you don't see epel, download it (At the time of this writing, the last version is 6.8.)

@sarbbottam
sarbbottam / RHEL system information commands
Created September 20, 2013 07:04
RHEL system information commands
getconf LONG_BIT
lsb_release -r
@sarbbottam
sarbbottam / Install Git on CentOS.md
Last active December 22, 2015 17:49
Install Git on CentOS

CentOS 5.X

Prerequisite: RHEL EPEL needs to be installed.

Install RHEL EPEL

wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm