Skip to content

Instantly share code, notes, and snippets.

@ishu3101
ishu3101 / terminal-session
Last active Dec 11, 2015 — forked from nlevchuk/terminal-session
This is bash script for saving and loading gnome-terminal session. Special for Ubuntu.
View terminal-session
#!/bin/bash
##
## This is bash script for saving and loading gnome-terminal session. Special for Ubuntu.
##
## Usage: ./terminal-session -s <name_profile> - for save session
## ./terminal-session -l <name_profile> - for load existing session
## ./terminal-session --profiles - for show existing session files
##
## Instructions:
## - Run gnome-terminal;
@ishu3101
ishu3101 / sublime.desktop
Created Jan 16, 2013
Create a launcher in Unity to open Sublime text 2.
View sublime.desktop
[Desktop Entry]
Version=1.0
Name=Sublime Text 2
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
GenericName=Text Editor
Exec=sublime
Terminal=false
Icon=/opt/Sublime Text 2/Icon/48x48/sublime_text.png
@ishu3101
ishu3101 / rails_init.sh
Created Jan 16, 2013
Quickly Setup a New Rails Project and Version Control it using Git in Linux.
View rails_init.sh
rails new $APP_NAME
cd $APP_NAME
rails server
git init
@ishu3101
ishu3101 / git_init.sh
Last active Dec 11, 2015
Setting up Git and Initializing your project.
View git_init.sh
# Setting up User Account
git config --global user.name "Your Name"
git config --global user.email "username@gmail.com"
# Creating a Project and Version Control it.
mkdir projectname
cd projectname
git init
@ishu3101
ishu3101 / search-github-repo-Bookmarklet.js
Last active Dec 11, 2015
A Bookmarklet that lets you search Github code Repository.
View search-github-repo-Bookmarklet.js
javascript:(function(){var s='https://github.com/skratchdot/github-code-search.user.js/raw/master/github-code-search.user.js',t='text/javascript',d=document,n=navigator,e;(e=d.createElement('script')).src=s;e.type=t;d.getElementsByTagName('head')[0].appendChild(e)})();doIt('');void('');
@ishu3101
ishu3101 / autokey-setup.sh
Created Feb 8, 2013
Installing Autokey in Ubuntu
View autokey-setup.sh
sudo add-apt-repository ppa:cdekter/ppa
sudo apt-get update
sudo apt-get install autokey-gtk
@ishu3101
ishu3101 / Chrome-Extension-Downloader-Bookmarklet.js
Last active Dec 14, 2015
A Bookmarklet that uses http://chrome-extension-downloader.com/ to download Chrome Extension (CRX file) from the https://chrome.google.com/webstore and opens the file in the current tab.
View Chrome-Extension-Downloader-Bookmarklet.js
javascript:(function(){window.location='http://chrome-extension-downloader.com/?' +window.location.href;})()
@ishu3101
ishu3101 / Chrome-Extension-Downloader-Bookmarklet.js
Last active Dec 14, 2015
A Bookmarklet that uses http://chrome-extension-downloader.com/ to download Chrome Extension (CRX file) from the Chrome Web Store and opens the file in the new tab.
View Chrome-Extension-Downloader-Bookmarklet.js
javascript:void(window.open("http://www.chrome-extension-downloader.com/landing.php?source=chrome-extension&extension=" +window.location.href))
@ishu3101
ishu3101 / I'm-Feeling-Lucky-Google-Search-Bookmarklet.js
Created May 16, 2013
A Bookmarklet that takes the selected text and does the I'm Feeling Lucky Google Search in the new tab. ie: Opens the first result page when you do a Google Search with the text that was selected.
View I'm-Feeling-Lucky-Google-Search-Bookmarklet.js
javascript:void(window.open("http://www.google.com/search?q="+document.getSelection()+"&btnI=I'm+Feeling+Lucky"))
@ishu3101
ishu3101 / google-translate-selected-text-bookmarklet.js
Created May 16, 2013
A Bookmarklet that translates the selected text into english using the translate.google.com and displays the translated text in a new tab.
View google-translate-selected-text-bookmarklet.js
javascript:void(window.open("http://translate.google.com/#auto|en|" +document.getSelection()))