Archive for March, 2014
Posted by jpluimers on 2014/03/29
Thanks Robert Gamble, ephemient and Jonathan Leffler. Be sure to read the top two answers and comments for full details.
Until now, I always used $* to pass on arguments from *nux shells (bash, sh, ash, etc.). Works on ESXi as well. But that is not the correct way to do.
But “$@” is the correct way:
- Use “$@” to represent all the arguments:
for var in "$@"
do
echo "$var"
done
- As a shortcut,
for var; do ...; done means for var in "$@"; do ...; done
- Basic thesis: “$@” is correct, and $* (unquoted) is almost always wrong. This is because “$@” works fine when arguments contain spaces, and works the same as $* when they don’t. In some circumstances, “$*” is OK too, but “$@” usually (but not always) works in the same places. Unquoted, $@ and $* are equivalent (and almost always wrong).
This next to the following construct makes file processing in *nix a breeze:
for filename in *.7z; do if 7za t $filename 2>&1 > /dev/null; then echo $filename passed; else echo $filename failed; fi; done
–jeroen
via: command line – How to iterate over arguments in bash script – Stack Overflow.
Posted in *nix, bash, Cygwin, Development, ESXi4, ESXi5, ESXi5.1, ESXi5.5, Linux, Power User, Scripting, Software Development, SuSE Linux, VMware ESXi | Leave a Comment »
Posted by jpluimers on 2014/03/29
The upside of findstr is that it is included with Windows since a long time (at least since Windows XP, later: indeed since Windows ME) and supports a form of regex.
But often it drives you crazy.
When it does, read What are the undocumented features and limitations of the Windows FINDSTR command? – Stack Overflow.
–jeroen
Posted in Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows ME, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »
Posted by jpluimers on 2014/03/29
Interesting: Time Machine for every Unix out there – IMHO.
But be careful with the hardlinks, as making a backup of the backup might fail:
–jeroen
Posted in *nix, Power User, rsync | Tagged: hardlinks, rsync | Leave a Comment »
Posted by jpluimers on 2014/03/29
Brilliant piece of open source:
SmallestDotNet – SmallestDotNet.com is a single page site that does one thing. It tells you the smallest, easiest download you’d need to get the .NET Framework on your system.
Even on Mac OS X it is helpful and recommends Mono and on iOS it recommends looking at MonoTouch.
Thanks Scott Hanselman for making this available!
–jeroen
via:
Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, Apple, Development, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Software Development, Windows, Windows 7, Windows 8, Windows 8.1, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Tagged: .NET Framework, scott hanselman | Leave a Comment »
Posted by jpluimers on 2014/03/28
Must have on a Mac when you use terminal; either installation way is fine. I got mc from louise, as that was the first one I found.
osx – Midnight Commander (MC) installer for Mac OS X – Super User.
–jeroen
Posted in Apple, Linux, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, OS X 10.8 Mountain Lion, Power User | Leave a Comment »
Posted by jpluimers on 2014/03/27
Just in case the shit ever hits the fan:
Background information:
Notes:
bootbank, altbootbank, backup.sh, auto-backup.sh
Adding your own software to ESXi:
–jeroen
Posted in *nix, ESXi4, ESXi5, ESXi5.1, ESXi5.5, Linux, openSuSE, Power User, SuSE Linux, Virtualization, VMware, VMware ESXi | Tagged: disaster recovery plan, Server Fault, VMware | Leave a Comment »
Posted by jpluimers on 2014/03/27
RouterOS runs on many kinds of hardware. Of course on the MikroTik hardware itself (which always comes with a license), but also on x86 hardware, even virtualized systems.
In that respect, it looks a bit like pfSense, or Endian, but on steroids and closed source.
Here are some links focused on MikroTik on ESXi (which is great for experimental purposes):
WOL (Wake ON LAN)
–jeroen
via: Routers.
Posted in ESXi4, ESXi5, ESXi5.1, ESXi5.5, Ethernet, Internet, Network-and-equipment, Power User, routers, Virtualization, VMware, VMware ESXi, Wake-on-LAN (WoL) | Tagged: MikroTik, RouterOS | Leave a Comment »
Posted by jpluimers on 2014/03/27
Sound of facepalm hitting my head, as I totally by accident found out that as of Windows 8 (un)mounting of ISO files is built into Windows.
Mounting
- Open the folder where you’ve stored your ISO file.
- Right-click on the ISO and select Mount
- You’ll now see the ISO mounted inside your Computer.
- That’s it!
Unmounting:
- Open Computer on your PC.
- Right-click on the virtual drive that was created while mounting ISO file and select Eject.
- The drive disappears after the ISO image is “ejected”.
- That’s it!
–jeroen
via: How to Mount and Unmount ISO Files in Windows 8 | TheUnlockr.
Posted in Power User, Windows, Windows 8, Windows 8.1 | Leave a Comment »
Posted by jpluimers on 2014/03/27
IBM isn’t all about dry corporate stuff and sometimes hard to read redbook documentation (:
I love the way they lead you do build your own VI cheat sheet step by step in vi intro — the cheat sheet method.
It is basically a vi tutorial that helps you to build up your own cheat sheet.
–jeroen Read the rest of this entry »
Posted in *nix, Cygwin, Endian, ESXi4, ESXi5, ESXi5.1, ESXi5.5, Linux, Power User, SuSE Linux, vi, VMware, VMware ESXi | Leave a Comment »
Posted by jpluimers on 2014/03/27
There is an interesting post by TinkerTry IT @ home | VMware Workstation 10 released Sept. 4 2013, but you might be fine with the free VMware Player 6 Plus that helped me making up my decision what to buy.
Basically you have these products on the non-server side of things:
(Note: you can find many downloads through Google search for site:www.vmware.com/go)
I bought these:
- VMware Fusion 6
- VMware Workstation 10
My reasoning: Read the rest of this entry »
Posted in Fusion, Power User, VMware, VMware ESXi, VMware Workstation | Tagged: VMware Fusion, VMware Workstation | Leave a Comment »