Skip to content

Instantly share code, notes, and snippets.

@Markoutte
Markoutte / gist:6375125
Created August 29, 2013 07:29
Set up debugging netbeans platform in Intellij IDEA

Set VM Options for project specific netbeans:run-platform goal as follows

-Dnetbeans.run.params="-J-Xdebug -J-Xnoagent -J-Xrunjdwp:transport=dt_socket,suspend=n,server=n,address=8888"

Add remote «Run/Debug configuration» with debbuging mode listen (no attach) and port 8888. Then start remote config in debug mode, after specific goal in run mode.

@Markoutte
Markoutte / Remove Kubuntu
Created August 18, 2013 07:43
Remove Kubuntu and install Ubuntu Desktop. Other can be found here http://www.psychocats.net/ubuntucat/pure-ubuntu-13-04/
sudo apt-get remove akonadi-facebook akregator amarok amarok-common amarok-utils apport-kde apturl-kde ark audiocd-kio bluedevil calligra-data calligra-libs cdparanoia cdrdao colord-kde cryptsetup dolphin dragonplayer freespacenotifier gnupg-agent gnupg2 gpgsm gstreamer0.10-qapt gtk2-engines-oxygen gtk3-engines-oxygen gwenview ibus-qt4 k3b k3b-data kaccessible kaddressbook kamera kamoso kate kcalc kde-base-artwork kde-baseapps-bin kde-baseapps-data kde-config-gtk-style kde-config-tablet kde-config-telepathy-accounts kde-config-touchpad kde-style-oxygen kde-telepathy kde-telepathy-approver kde-telepathy-auth-handler kde-telepathy-contact-list kde-telepathy-data kde-telepathy-desktop-applets kde-telepathy-filetransfer-handler kde-telepathy-integration-module kde-telepathy-minimal kde-telepathy-send-file kde-telepathy-text-ui kde-wallpapers-default kde-window-manager kde-window-manager-common kde-workspace kde-workspace-bin kde-workspace-data kde-workspace-kgreet-plugins kde-zeroconf kdegames-card-data kdegames-
import org.geotools.geometry.DirectPosition2D;
 
import org.geotools.referencing.CRS;
 
import org.opengis.referencing.crs.CoordinateReferenceSystem;
 
import org.opengis.referencing.operation.MathTransform;
 
...
 
@Markoutte
Markoutte / Install JAR
Created August 9, 2013 10:42
Install JAR file into local maven repository
mvn install:install-file -Dfile=__path__ -DgroupId=__groupId__ -DartifactId=__artifactId__ -Dversion=__version__ -Dpackaging=jar
@Markoutte
Markoutte / Sparrow service in OS X
Created February 12, 2013 09:04
Sparrow service “New Email With Attachment” in OS X
Once open, click on Service, then Choose. Change the drop down menus near the top to say, “Service receives selected files or folders in any application. Then, move over to the Actions pane and type “Applescript” into the search field there (labeled Name). The only available action that’s left is “Run AppleScript.” Drag it over to the pane on the right, where it says, “Drag actions of files here to build your workflow.”
Now, select the resulting AppleScript you see there, and delete it. Copy the below and paste it into the window, instead:
on run {input, parameters}
tell application "Sparrow"
activate
set theMessage to make new outgoing message
tell theMessage
repeat with ii in input