Below are snippets for bertheymans.
8
If you only want to compare yyyy-mm-dd you can use the java.sql.Date class, the valueOf method does the trick. It's perfectly safe as the sql Date class is a subclass of the Date class.
Check out the docs here for more detail.
enjoy
Check out the docs here for more detail.
enjoy
5
Recursively removes files or directories with a given name, using find.
I most frequently use it to remove 'CVS' or '.svn' directories from sourcepackages that still have the versioning information in them.
I most frequently use it to remove 'CVS' or '.svn' directories from sourcepackages that still have the versioning information in them.
6
This adds your ssh public key to the authorized_keys on a remote server. The key file in the snippet is called id_dsa.pub, yours may have another name but this is standard for DSA encryption.
To learn more about ssh I heartly recommend this: SSH tips and tricks
To learn more about ssh I heartly recommend this: SSH tips and tricks
7
This one-liner is great, it lists the commands you have used by popularity. At present, the 'cd' command wins in my history file with 140. Followed by ls (93) and ssh (56). What are your top 3 commands 
Snippet source: ibm

Snippet source: ibm
9
This python class converts a permission mask in symbolic format (the kind a diretcory listing produces, ex.: drwxr-xr-x) to a string that's usable in a chmod command.
ex.: chmod u=rwx,g=rwx,o=rwtx ~/myscripts/convert_mask.py
This can be very useful when recovering permissions from a backup.
ex.: chmod u=rwx,g=rwx,o=rwtx ~/myscripts/convert_mask.py
This can be very useful when recovering permissions from a backup.
9
This is a very convenient way to remove all doubles from a List in Java. The only prerequisite is that the elements in the list have proper equals and hashCode methods.
It work by using the constructor of a Set that takes a Collection as an argument.
I poured the snippet in a little program so can run it straight away.
It work by using the constructor of a Set that takes a Collection as an argument.
I poured the snippet in a little program so can run it straight away.









