Welcome To Snipplr


Everyone's Recent Snippets Tagged windows



1 2 3 Next »
This function simply takes a Windows UTC timestamp and converts it to Unix epoch. This was useful when I was pulling LDAP information from Active Directory and the timestamps were ridiculous. Windows builds timestamps by counting seconds since Janua...
0 1225 posted 16 years ago by cllorca
Sometimes I want a complete path to a file in the current working directory to make error messages clearer. The URL has alternate approaches.
0 1174 posted 16 years ago by jimfred
0 1140 posted 16 years ago by jimfred
Pre 1.6 git has some annoying whitespace checking in it's pre-commit hook. Rather than turn it off I decided to have a go at an automated method to fix the issue. Running the first line lists the files that have problems. The second just adds a se...
0 1782 posted 16 years ago by benpjohnson
Takes a delimited string and a the delimiter, and returns a dynamic arrary
0 773 posted 16 years ago by ScryptKeeper
By default, the 'Administrator' user in XP won't show if any other users are defined. This is moronic. This one registry value will make that user show up regardless.
3 1188 posted 16 years ago by TALlama
A paste from a blog (http://lenkite.blogspot.com/2008/05/access-windows-registry-using-java.html) entry which demonstrates how to access windows registry in Java.
0 1304 posted 17 years ago by narkisr
Use this command to delete all the thumbs.db files on your drive.
2 1345 posted 17 years ago by sachinbhavsar
Since there is no convenient way to clear the console in irb on windows, we can simple emulate the dos cls function
1 2279 posted 18 years ago by vanne
Restoring the Quick Launch toolbar "Show Desktop" icon: easy as pie!
0 789 posted 18 years ago by azazeal
1 1028 posted 18 years ago by rengber
Weird issue with Intellisense and the HitTestInfo class. Just type it in, it will compile.
1 1325 posted 18 years ago by rengber
Workaround to remove or rename annoying files with long filenames
0 1195 posted 18 years ago by vanne
1 1199 posted 18 years ago by whitetiger
0 1026 posted 18 years ago by whitetiger
2 1274 posted 18 years ago by whitetiger
2 1443 posted 18 years ago by whitetiger
0 1200 posted 18 years ago by whitetiger
This code maps the apple-pro-keyboard command-key to control (when osx is the server and windowxp is the client). Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems without specia...
0 1188 posted 18 years ago by expertseries
1 2 3 Next »