Skip to content

Instantly share code, notes, and snippets.

Prashanth Babu P7h

Block or report user

Report or block P7h

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@P7h
P7h / GuavaToStringGen_IDEA.java
Last active Dec 10, 2015
Guava API toString() method generator for a JavaBean or POJO for IntelliJ IDEA.
View GuavaToStringGen_IDEA.java
/**
* Guava API toString() method generator for a JavaBean / POJO.
* @return String representation of all the attributes of the bean.
*/
public String toString() {
#set ($autoImportPackages = "com.google.common.base.Objects")
return Objects.toStringHelper(this)
#foreach ($member in $members)
.add("$member.name", $member.accessor)
#end
@P7h
P7h / SublimeText__User_Settings.json
Last active Dec 4, 2016
My customized User Settings of Sublime Text.
View SublimeText__User_Settings.json
{
"always_show_minimap_viewport": false,
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_delay": 10,
"auto_complete_selector": "source - comment",
"auto_complete_size_limit": 4194304,
"auto_complete_triggers":
[
{
@P7h
P7h / SublimeText__Packages.txt
Last active Apr 15, 2016
Sublime Text Packages
View SublimeText__Packages.txt
Anaconda -- Turns ST into a full featured Python IDE.
Case Conversion -- Case conversion plugin (pascal, camel, snake).
ColorPicker -- Color Picker plugin.
DocBlockr -- Simplifies writing DocBlock comments in various languages.
Golang Build -- Official Sublime Text package for Go build system integration.
GoSublime -- Golang plugin collection.
Javatar -- Java Completions.
Markdown Preview -- Markdown Preview.
Package Control -- A comprehensive Package Manager.
PlainTasks -- ToDo list plugin.
@P7h
P7h / IntelliJ_IDEA_Plugins.txt
Last active Dec 10, 2015
Plugins I use in IntelliJ IDEA.
View IntelliJ_IDEA_Plugins.txt
FindBugs-IDEA -- Static byte code analysis to look for bugs in Java code from within IntelliJ IDEA.
GenerateSerialVersionUID -- Generates serialVersionUID field in the current class.
Hungry Backspace -- Modifies backspace key to hungrily delete whitespace.
Native Neighbourhood -- Shows active file in explorer or opens a command shell in active file's directory.
SmarterEditor -- Actions which reduce unnecessary caret movements.
TabSwitch -- Windows Alt+Tab like interface for all currently opened files.
UpperLowerCapitalize -- To change case to upper, lower, capitalize or invert the case of text.
@P7h
P7h / IntelliJ_IDEA__Perf_Tuning.txt
Last active Sep 16, 2019
Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
View IntelliJ_IDEA__Perf_Tuning.txt
-server
-Xms2048m
-Xmx2048m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1
@P7h
P7h / Eclipse_Plugins.txt
Last active Aug 15, 2016
Plugins I use in Eclipse IDE.
View Eclipse_Plugins.txt
AnyEdit: Adds several new tools to the context menu of text-based Eclipse editors, to output consoles, to Eclipse main menu and editor toolbar -- http://andrei.gmxhome.de/eclipse
Code Recommenders: Intelligent code completion -- http://download.eclipse.org/recommenders/updates/stable/e42/
EasyShell: Opens shell window, runs selected file in the shell; opens explorer window (or nautilus / konqueror) and copies path -- http://pluginbox.sourceforge.net
Eclipse Color Themes: Variety of Color Themes for Eclipse -- http://eclipse-color-theme.github.com/update
EditBox: For highlighting the background of the source code -- http://editbox.sourceforge.net/updates
FindBugs: For static analysis to look for bugs in Java code -- http://findbugs.cs.umd.edu/eclipse
Google CodePro AnalytiX: For improving software quality and reducing developments costs and schedules -- http://dl.google.com/eclipse/inst/codepro/latest/3.7
MouseFeed: For learning keyboard shortcuts in Eclipse -- http://update.mousefeed.com
SnipMatch: Code snip
@P7h
P7h / Eclipse__Perf_Tuning.txt
Last active Dec 10, 2015
Performance tuning parameters for Eclipse IDE. Add these params in eclipse.ini in Eclipse.
View Eclipse__Perf_Tuning.txt
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813
-vm
C:/Warez/Java/JDK7.0_10/jre/bin/server/jvm.dll
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
@P7h
P7h / Console2.reg
Created Jun 27, 2013
Windows specific registry snippet: This gist is useful for getting Console2 (http://sourceforge.net/projects/console) on right click of a folder, drive or background. This gist assumes that Console2 is installed and accessible from C:\Apps\Shells\Console2\Console.exe and the icon for the same is C:\Apps\Shells\Console2\Console.ico.
View Console2.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\console2]
@="Console2"
"Icon"=hex(2):43,00,3a,00,2f,00,41,00,70,00,70,00,73,00,2f,00,53,00,68,00,65,\
00,6c,00,6c,00,73,00,2f,00,43,00,6f,00,6e,00,73,00,6f,00,6c,00,65,00,32,00,\
2f,00,43,00,6f,00,6e,00,73,00,6f,00,6c,00,65,00,2e,00,69,00,63,00,6f,00,2c,\
00,30,00,00,00
[HKEY_CLASSES_ROOT\Directory\Background\shell\console2\Command]
@P7h
P7h / Cygwin.reg
Created Jun 27, 2013
Windows specific registry snippet: This gist is useful for getting Cygwin (http://www.cygwin.com) on right click of a folder, drive or background. This gist assumes that Cygwin is installed and accessible from C:\Cygwin\Cygwin.bat and the icon for the same is C:\Cygwin\Cygwin.ico. This gist assumes that you have run the following in a Cygwin win…
View Cygwin.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin_bash]
@="Bash"
"Icon"="C:/Cygwin/Cygwin.ico,0"
[HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin_bash\Command]
@="C:\\Cygwin\\bin\\bash -c \"/bin/xhere /bin/bash.exe '%v'\""
[HKEY_CLASSES_ROOT\Directory\shell\cygwin_bash]
@P7h
P7h / marks.sh
Last active Dec 21, 2015
For jumping around deeply nested folders.
View marks.sh
#!/bin/bash
# Slightly modified code from: http://jeroenjanssens.com/2013/08/16/quickly-navigate-your-filesystem-from-the-command-line.html
# Just add the following in your .bashrc or .zshrc or you can even source it in every session.
# Examples:
# cd ~/some/very/deep/often-used/directory
# $ mark deep
# [when you are in other location] $ jump deep
# $ marks # for listing all the marks
You can’t perform that action at this time.