Profile

All time reputation: 75

Achievement

first submission:submitting first snipplet

narkisr's Recent Snippets



« Prev 1 2 3
  1. FAV

    Finding classes

    Using http://www.clapper.org/software/java/util/javadocs/util/api/org/clapper/util/classutil/ClassFinder.html in order to find a class in class path.
    Java 0 views posted 9 years ago narkisr
  2. FAV

    Couchdb tunnel over ssh

    An easy was to tunnel remote Couchdb instance into a local machine using ssh tunneling, by using the 5893 local port we enable the local instance to run (replication is only a click away).
    Bash 1 views posted 9 years ago narkisr
  3. FAV

    vncviewer over ssh

    Tunneling vnc over ssh
    Bash 0 views posted 9 years ago narkisr
  4. FAV

    Mounting a windows share Ubuntu (CIFS)

    Mounting a windows share in Ubuntu (The UI version doesn't seem to offer a mount point).
    Bash 0 views posted 10 years ago narkisr
  5. FAV

    Clojure REPL Tracing

    Using contrib's trace ns in order to debug functions in the REPL
    Clojure 0 views posted 10 years ago narkisr
  6. FAV

    patch application svn -> git

    This is how to patch changes from svn into git (should work with other vcs as well).
    Bash 0 views posted 10 years ago narkisr
  7. FAV

    setting up vnc debian way

    This is based upon a debian guide, it seems to work well for ubuntu as well, all these steps can be performed via remote ssh (no need to access the machine).
    Bash 0 views posted 10 years ago narkisr
  8. FAV

    Starting an in memory http server with custom routes

    This is excellent for testing (mocking a SOAP server for example), we use an in memory http server in order to answer client requests.
    Groovy 0 views posted 10 years ago narkisr
  9. FAV

    http sniffing Ruby

    Sniffing http request & response using pcap in Ruby.
    Ruby saved by 2 people 0 views posted 10 years ago narkisr
  10. FAV

    Settings up a remote git repository.

    How to setup a remote git repository via SSH.
    Bash 2 views posted 10 years ago narkisr
  11. FAV

    Installing fuse xmlfs on Ubuntu

    The required steps in order to install xmlfs on Ubuntu.
    Bash 0 views posted 10 years ago narkisr
  12. FAV

    Mamoize (function that returns a function)

    A nice example of a function that returns another function.
    Lisp 0 views posted 10 years ago narkisr
  13. FAV

    Groovy Map as Interface method in JRuby

    Groovy has the as keyword which enables the implementation of a Java interface by using the as keyword, its quite easy to mimic this in JRuby.
    Ruby 1 views posted 10 years ago narkisr
  14. FAV

    Using scrot in order to take a screen shot

    Bash 2 views posted 10 years ago narkisr
  15. FAV

    Functional quick sort

    A Functional quick sort (Java imperative version seems to be quicker).
    Lisp 1 views posted 10 years ago narkisr
  16. FAV

    Running an external process from a GString

    An easy way to launch an external process (http://docs.codehaus.org/display/GroovyJSR/Run+Sub-Process+Safely).
    Groovy saved by 1 person 1 views posted 10 years ago narkisr
  17. FAV

    Closure composition in Groovy

    Clojsure composition in Groovy (functional style programing). @http://www.ibm.com/developerworks/java/library/j-pg08235/index.html
    Groovy 0 views posted 10 years ago narkisr
  18. FAV

    Blank slate objects in Ruby

    Creating a object that doesn't have any methods in Ruby (regular objects inherit methods from Object class), useful for Proxies that use method missing (http://onestepback.org/index.cgi/Tech/Ruby/BlankSlate.rdoc).
    Ruby saved by 1 person 1 views posted 10 years ago narkisr
  19. FAV

    WithIndex Groovy category

    An example of utilizing a category in Groovy in order to create withIndexfunctionality on lists each methods (traversing the list and having the index on each step), @ http://markmail.org/message/pa2irg4mvydpxi7c
    Groovy 2 views posted 10 years ago narkisr
  20. FAV

    Creating when construct in Groovy using closures

    A nice example of utilizing Groovy closures in order to create a when statement in Groovy (http://www.transentia.com.au/flatpress/?x=entry:entry090311-222726).
    Groovy 1 views posted 10 years ago narkisr
  21. FAV

    Groovy delegate, owner, this references.

    This, owner, and delegate: this : as in Java, this refers to the instance of the enclosing class where a Closure is defined owner : the enclosing object (this or a surrounding closure) delegate : by default the same as owner, but changeable. (htt...
    Groovy saved by 1 person 1 views posted 11 years ago narkisr
  22. FAV

    Ruby redo statment

    An example of redo statement in Ruby, redo makes an iteration step repeat itself again (http://www.rubyrailways.com/rubys-most-underused-keyword/).
    Ruby saved by 1 person 0 views posted 11 years ago narkisr
  23. FAV

    A long list of bash aliases worth going through

    Some nice base aliases, still need to go through them
    Bash saved by 2 people 10 views posted 11 years ago narkisr
  24. FAV

    Groovy date ranges

    Groovy ranges works on dates also! (http://kousenit.wordpress.com/2009/02/02/groovy-groundhogs/)
    Groovy saved by 8 people 0 views posted 11 years ago narkisr
  25. FAV

    Runing btrace in a single command

    Running a btrace script takes two separate steps by default: 1. Running jps to get the Java process ID. 2. Running btrace on the ID. A simple awk script can merge the two into a single step.
    Java 1 views posted 11 years ago narkisr
  26. FAV

    Running a KVM VM without X

    How to run a KVM VM with no X (server environment, originally seen at http://blog.bodhizazen.net/?p=40).
    Bash 0 views posted 11 years ago narkisr
  27. FAV

    Clearing git reflog

    This example shows how to clean up git's reflogs entries in order save space (see http://www.newartisans.com/blog/2008/04/diving-into-git.html).
    Bash 0 views posted 11 years ago narkisr
  28. FAV

    Restoring HEAD after a reset in Git

    This snippet shows how to restore HEAD after using Git's reset method (see http://gitready.com/2009/01/17/restoring-lost-commits.html?disqus_reply=5271828#comment-5271828).
    Bash 0 views posted 11 years ago narkisr
  29. FAV

    Loading a text file resource from classpath in Java

    Java saved by 4 people 2 views posted 11 years ago narkisr
  30. FAV

    An immutable Java class builder

    An immutable (a new object is created for each change) Java class builder pattern example.
    Java 0 views posted 11 years ago narkisr
« Prev 1 2 3