Skip to content

Instantly share code, notes, and snippets.

View arindam89's full-sized avatar

Arindam Paul arindam89

  • Chief Architect at Safe Security
  • Bengaluru, India
  • 17:48 (UTC +05:30)
  • X @geek_paul
View GitHub Profile
@arindam89
arindam89 / .bashrc
Created June 5, 2012 06:43
.bashrc example
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't overwrite GNU Midnight Commander's setting of 'ignorespace'.
export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
# ... or force ignoredups and ignorespace
export HISTCONTROL=ignoreboth
@arindam89
arindam89 / html5_template.html
Created September 8, 2012 05:36 — forked from nathansmith/html5_template.html
Simple HTML5 Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" />
<title>untitled</title>
<link rel="stylesheet" href="" />
</head>
<body>
@arindam89
arindam89 / ie.body.html
Created September 14, 2012 08:51
head html
<!--[if lt IE 9]>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
<div id="prompt"></div>
<script>window.attachEvent("onload",function(){CFInstall.check({mode:"overlay",node:"prompt",url:"http://www.google.com/chromeframe/?user=true"});});</script>
<![endif]-->
@arindam89
arindam89 / .vimrc
Created November 27, 2012 07:48
Minimal Vimrc
set nocompatible
set backspace=2
set ignorecase smartcase
set autoindent smartindent
set gdefault hlsearch incsearch showmatch
set expandtab softtabstop=4
syntax on
set number
set cursorline
set scrolloff=999
@arindam89
arindam89 / tmux.conf
Created December 13, 2012 10:28
Tmux Configuration
# ` is an interesting key for a prefix
set-option -g prefix `
# set-option -g prefix C-a
unbind-key C-b
bind-key C-a last-window
bind-key ` last-window
bind-key a send-prefix
# we might need ` at some point, allow switching
@arindam89
arindam89 / httpd-vhosts.conf
Created March 31, 2013 12:04
Virtual Host for Apache
<VirtualHost *:80>
DocumentRoot "/Users/arpaul/Sites/school/public"
ServerName school.dev
<Directory "/Users/arpaul/Sites/school/public">
Options FollowSymLinks Indexes MultiViews
AllowOverride All
</Directory>
</VirtualHost>
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@arindam89
arindam89 / sass.txt
Last active December 16, 2015 04:49
Sass, Compass learnings
* Sass classes can be reused with @extend
e.g.
.box {
margin: 10px;
}
.red-box {
@extend .box
color: red;
}
@arindam89
arindam89 / git.txt
Created April 17, 2013 03:23
Git Tips
----
Exporting the archive
git archive HEAD --format=zip > ../../student_12Oct.zip
@arindam89
arindam89 / compass.scss
Created April 22, 2013 12:34
Compass learning :)
.avatar {
@include box-shadow(0 0 0px 3px #fff, 0 0 0 4px #ccc, 0 4px 6px #333);
@include border-radius(50px); // half the avatar size
width: 100px;
height: 100px;
}