Skip to content

Instantly share code, notes, and snippets.

@ishu3101
ishu3101 / terminal-session
Last active December 11, 2015 05:18 — forked from nlevchuk/terminal-session
This is bash script for saving and loading gnome-terminal session. Special for Ubuntu.
#!/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 January 16, 2013 22:29
Create a launcher in Unity to open Sublime text 2.
[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 January 16, 2013 22:35
Quickly Setup a New Rails Project and Version Control it using Git in Linux.
rails new $APP_NAME
cd $APP_NAME
rails server
git init
@ishu3101
ishu3101 / git_init.sh
Last active December 11, 2015 05:19
Setting up Git and Initializing your project.
# 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 December 11, 2015 05:28
A Bookmarklet that lets you search Github code Repository.
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 February 8, 2013 03:03
Installing Autokey in Ubuntu
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 December 14, 2015 10:38
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.
javascript:(function(){window.location='http://chrome-extension-downloader.com/?' +window.location.href;})()
@ishu3101
ishu3101 / Chrome-Extension-Downloader-Bookmarklet.js
Last active December 14, 2015 10:39
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.
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 05:51
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.
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 05:57
A Bookmarklet that translates the selected text into english using the translate.google.com and displays the translated text in a new tab.
javascript:void(window.open("http://translate.google.com/#auto|en|" +document.getSelection()))