Posts

Regex: add to the end of a line

Find:  (.)$   Replace:  \1\\n"

Excel. Trim last, specific character from cell

Quick one, Excel, trim the last specific character from a cell =IF(RIGHT(A114,1)="*",LEFT(A114,(LEN(A114)-1)),A114) That is all

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