Posts

AEM webdav connections in windows 7

The adobe documentaion: http://docs.adobe.com/docs/en/crx/2-3/how_to/webdav_access.html misleads you with regard to the port. Use the default port of 4502 and you'll find it works. Mapping the windows explorer works too in windows 7. I changed the registry entry, not sure if that was required or not. Found cyberduck  now has a windows version :), I used that whilst trying to get it to work as an alternative to native windows. It picked up the webdav port running on localhost when I selected that protocol. It gave me the hint I needed!

cmder cd to home Dir

If you're on a different drive you'll have to move there first with C: or D: whatever then you'll be able to cd %home%

Convert unix timestamp to date - Mac Terminal

OSX 10.6.8 date -r *timestampHere*

cURL to REST API

More curl goodness: curl -i -X PUT -H "Content-Type:application/json" \ http://localhost//restserver/index.php/api/key \ -d '{"level":10}' curl -i -X PUT -H "Content-Type:application/json" \ http://localhost//restserver/index.php/api/example/send \ -d '{"username":"me","password":"1234","level":10}' using a file as input: curl -i -X PUT -H "Content-Type:application/json" \ http://localhost//restserver/index.php/api/key \ -d @filename.json

prettify JSON

To pretty print JSON output you can use the command line... so any cURL request returning JSON can be piped to python: curl http://somesite.com/cont/res/ | python -m json.tool or cat somefile.json / python -m json.tool

*nix - split string into lines

I was having trouble with cut, why not use tr (translate)? echo $PATH | tr ':' '\n'

USB boot Debian 6.0.7 on Dell Studio 1537

What a nightmare... I've tried installing linux, to boot from a USB, a fair few times with not a lot of success but at last I've nailed it :) Not without a final big balls up along the way, however! When it comes to the part of the installer where it asks you if and where to install grub (or whatever bootloader) be blooming sure of what you are doing. I can't remember what the exact options were or what I selected but I ended up in the senario where windows would not boot unless the USB was plugged in. If I started the machine without the USB plugged in the you'd see "Welcome to GRUB" and then it complain about not finding some files or another. Basically I think I somehow ended up with Grubs config files on the stick instead of on the HD of the laptop. So after booting off the USB, installing grubs files on it, how to get the PC running windows by default??? (So the wife and kids are happy?) Has to dig out the Vista install disk and repair the MBR...