Archive for April, 2014

Nginx direct file upload without passing them through backend

Wednesday, April 16th, 2014

It's pretty straightforward to manage file upload. Everybody can do it with using multipart/form-data encoding RFC 1867. Let's see what happens: client sends POST request with the file content in BODY webserver accepts the request and initiates data transfer (or returns error 413 if the file size is exceed the limit) webserver starts ...

Remove The ^M Character At The End Of Text Files

Wednesday, April 16th, 2014

$ cat filename | col -b > newfilename

Mac OS X – Show / Hide Hidden Files in Finder

Wednesday, April 16th, 2014

As noted in the comments its nice to have the text available for easy copy and paste into your terminal. Show: defaults write AppleShowAllFiles TRUE killall Finder Hide: defaults write AppleShowAllFiles FALSE killall Finder Источник