Skip to content

Instantly share code, notes, and snippets.

@rpattabi
rpattabi / gist:792867
Created January 24, 2011 05:15
HP G42-477TU Ubuntu System Testing

Disk benchmark:

Timing cached reads = 2950.47 MB/sec
Timing buffered disk reads = 79.60 MB/sec

@rpattabi
rpattabi / study_notes_vim.md
Created April 21, 2012 03:05
"Learning vi and vim editors" - study notes

Study Notes for "Learning vi and vim editors" (7th edition)
I want to take notes for only the new things I was not aware of

Vim Practice:
I am editing this using gVim through Firefox's ItsAllText! extension.


the vi text editor

@rpattabi
rpattabi / gist:2491951
Created April 25, 2012 18:28
distributed version control for magazine project (scribus files, images, text)
************************************************************
This is an analysis of using version control system for magazine creation project.
# Use case:
The source contains scribus files, and images which are not mergeable
More than one person should be able to access the files
At any time, the latest version should be available for anyone.
People should not lose their work since they started working with old files.
People should be able to take work to home without the need to have access to central server.
@rpattabi
rpattabi / stuff_on_top_of_ubuntu.md
Created April 28, 2012 05:02
Stuff On Top of Ubuntu

Stuff to install or setup on top of default ubuntu installation

Launcher

Remove libre office. Add ..

  • Update Manager
  • System Monitor
  • Terminal
@rpattabi
rpattabi / gist:2856771
Created June 2, 2012 05:30
data recovery
http://serverfault.com/questions/167029/restoring-data-from-corrupted-ext4-partition-under-lvm-fsck-or-repair-bad-bloc
http://grover.open2space.com/content/recovering-data-damaged-hard-drive-partition
http://www.expertslogin.com/linux-administration/how-to-backup-lvm-configuration-on-linux/
http://www.gnu.org/software/ddrescue/ddrescue.html
http://www.youtube.com/watch?v=vqq9A01geeA
@rpattabi
rpattabi / gist:3111268
Created July 14, 2012 13:21
Ubuntu/Linux - Useful Commands

Formatting considering bad sectors

mke2fs -c -c -t <fs_type e.g. ext4> -L <label e.g. home> <device e.g. /dev/sda1>

-c checks for readability of blocks. identifies bad blocks. mentioning twice checks writing as well. slower.

-c takes about 10 min per 50gb. -c -c takes about 2 hours per 50gb.

swap formatting

@rpattabi
rpattabi / gist:3357285
Created August 15, 2012 07:07
Links for web developers
@rpattabi
rpattabi / gist:3358726
Created August 15, 2012 10:45
HTML5 & CSS3 Notes

HTML5 & CSS3 Notes

This is my study notes for HTML5 & CSS3. You will find lot of basic HTML/CSS stuff as well. This is because I didn't know even the basics and taking notes on them as well.

reference: http://developers.whatwg.org/ and several other sources. Many points were noted using firebug (firefox add-on) during usual browsing.

This document has 3 major sections:

  • HTML5
  • CSS3
  • How To
@rpattabi
rpattabi / gist:3682654
Created September 9, 2012 04:52
Vim How To
# Vim How To
### Add a blank line
... and not go to insert mode
### Set dir of current file as working dir
`set autochdir`
@rpattabi
rpattabi / study_notes_coffeescript.md
Created September 15, 2012 05:42
CoffeeScript Study Notes

CoffeeScript study notes

references

basics

  • compiles into javascript
  • encourages good use of javascript's good parts