Author Archives: Aris Green

Multiple Oracle Javas On Windows – No Installs

Whether you want a portable JDK or you just don’t want to further muck up your Windows %PATH%, you can get a older or newer Java on your Windows machine without affecting other versions. I found a link explaining how … Continue reading

Posted in Java | Leave a comment

WiFi From Linux Rescue CD

Using Finnix 111 rescue CD: Generate wpa_supplicant.conf configuration file: # wpa_passphrase ssid passphrase > /etc/wpa_supplicant.conf If you have any funky characters like ‘@’ in your passphrase, escape with a ‘\’. Find driver # wpa_supplicant –help Using the correct driver: # … Continue reading

Posted in Uncategorized | Leave a comment

Make Bamboo Shell Task Run Using Bash

Bamboo will call shell tasks on *nix agents using sh as opposed to Bash. For Debian agents, this means dash not bash. So, how do we redirect to bash? I found this snippet: [code language=”bash”] if [ “$(ps -p “$$” -o comm=)” != … Continue reading

Posted in Bamboo, Bash, Snippets | Leave a comment

Hack Classpath In Gradle

I recently tried this to fix the Classpath in Gradle for compiling and testing. Works for compiling, bombs for the testing though. The Gradle plugin integration using jna-3.2.7 blows up during unit testing when the older API is not loaded. … Continue reading

Posted in Gradle, Snippets | Leave a comment

Hex Encode/Decode String In C#

The same code is posted all over the news groups and Internet, but here it is, easy as a snippet for myself and for you to use. I don’t even get credit for this as what I have pretty much … Continue reading

Posted in C#, Snippets | Tagged | Leave a comment

How To Clean SVN Checkout Directory

I just love git clean -xfd but you just don’t get that with Subversion. Instead from your Bash shell (or Cygwin) prompt you can do: svn status –no-ignore | egrep ‘^[?I]’ | cut -c9- | sudo xargs -d \\n rm … Continue reading

Posted in Bash, PowerShell | Leave a comment

Validate Windows User On Network In C++

Need to validate and/or impersonate a user on a Windows domain? I Googled for this a bit but the API call is fairly simple so here is a quick snippet: [code language=cpp] HANDLE htoken = nullptr; DWORD dwError = ERROR_SUCCESS; … Continue reading

Posted in Uncategorized | Leave a comment

Refresh Icon Cache In Windows 7

This keeps me from having to reboot: C:\Windows\system32\ie4uinit.exe -ClearIconCache

Posted in Snippets | Leave a comment

Hash File Using POCO

This is the first time I have had to create MD5 hashes for files in C++. I did find a library called POCO that has some very handy classes for doing this. I didn’t want to copy and paste code … Continue reading

Posted in C++, Cryptography | Tagged | Leave a comment

Keep Your Gnome Desktop Awake

These little bash snippets tell you how long in seconds before your screen locks and how to keep your screen from going to sleep. This is for Gnome 3 in Linux. To find the time in seconds before your screen … Continue reading

Posted in Uncategorized | Leave a comment