Skip to content

Instantly share code, notes, and snippets.

View dtsdwarak's full-sized avatar

Dwaraka Nath dtsdwarak

View GitHub Profile

###Web Resources###

  1. HTML5 Boilerplate - http://railsapps.github.io/rails-html5-boilerplate.html
  2. RoR - Michael Hartl - http://ruby.railstutorial.org/ - Web version
  3. Tutorials Point - http://www.tutorialspoint.com/ruby-on-rails/
  4. Rails for Zombies - http://railsforzombies.org/
  5. RailsCasts [VIDEO] - http://railscasts.com/
  6. Stackoverflow - http://stackoverflow.com/tags/ruby-on-rails/info (Books, Tutorials link also included)
  7. RubyTapas [VIDEO] - http://www.rubytapas.com
  8. Ruby for Newbies [Tutsplus Series] - http://code.tutsplus.com/series/ruby-for-newbies--net-18166
# create directory
create directory dmpdir as 'c:/temp';
select directory_name,directory_path from dba_directories;
# expdp owner
create user scott identified by tiger;
grant connect, resource to scott;
...
grant read, write on directory dmpdir to scott;
expdp scott/tiger@xe directory=dmpdir dumpfile=scott.dmp logfile=expdp.log
@dtsdwarak
dtsdwarak / nvidia
Created May 20, 2015 19:47
Fix nVidia display driver issue with Linux
http://askubuntu.com/questions/183386/nouveau-driver-issue-when-trying-to-boot-ubuntu
@dtsdwarak
dtsdwarak / .is_audio_player
Created May 26, 2015 09:02
config file to make your USB storage visible to Banshee
audio_folders=My Music/
folder_depth=2
output_formats=audio/mpeg,audio/mp3,audio/x-aac
@dtsdwarak
dtsdwarak / dwarak_java.sh
Last active September 9, 2015 06:55
Oracle Java Installation Script
#! /bin/sh
sudo su
cd /usr/local
mkdir java
cd /home/user/Desktop/sync-files
cp jre.tar.gz /usr/local/java
cp jdk-7u25-linux-i586.tar.gz /usr/local/java
tar xvzf jdk-7u25-linux-i586.tar.gz
tar xvzf jre.tar.gz
@dtsdwarak
dtsdwarak / nfs_mount.sh
Created September 10, 2015 12:54
Mounting Directories via NFS
# NFS Server
$ sudo apt-get install nfs-kernel-server #To install the NFS Server
$ vi /etc/exports
/home/dwarak/Music *(rw,sync,no_root_squash,no_subtree_check) #Include this line to expose 'Music' folder of user 'dwarak'
$ exportfs -a
#NFS Client
/home/yeshwanth/Home $ mkdir dwarak-music
/home/yeshwanth/Home $ sudo mount -t nfs 192.168.1.2:/home/dwarak/Music dwarak-music/ #192.168.1.2 -> client machine's IP
@dtsdwarak
dtsdwarak / mongo_to_couch.sh
Last active September 26, 2015 18:38
Mongo to Couch
#Mongo to Couch
# Step1 : Export your mongo database
mongoexport -d <database_name> -c <collection_name> -o <output_file>.json --jsonArray
# Strip off the _id that mongo introduces to change it to id
sed ‘s/_id/id/g’ <output_file>.json > <changed_file>.json
# Include headers and footers decoration stuff the Couch requires
echo "{\"docs\":`cat <changed_file>.json`}" > <changed_file>.json
@dtsdwarak
dtsdwarak / remove_kernel.sh
Last active October 30, 2015 07:47
Remove a version of kernel specified. (Run as root)
## Ubuntu/Debian compatible. Run as $ su -c ./remove_kernel.sh
#!/bin/bash
echo "Enter the kernel name : "
read kernel_name
echo "****************************"
echo "Removing $kernel_name kernel"
echo "****************************"
@dtsdwarak
dtsdwarak / makkihack.js
Last active July 13, 2018 02:41
Script to change the remaining tickets value in Chrome's MakkiChoose Tatkal Ticket Now extension
// Install MakkiChoose's Tatkal Ticket Now extension and run this in Chrome's console.
window.location = "chrome-extension://konojmimochobcfkmnamhlhnpiofplkm/entry_form.html";
chrome.storage.sync.set({"rem_free": 100000}, function() {console.log('Booya! Long live Chrome Developer Tools');});
location.reload();
@dtsdwarak
dtsdwarak / WebCasts.md
Last active June 20, 2016 03:12
Developer screencasts