Category Archives: bash

OSX FTP

To run the ftpd: sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist To stop the ftpd: sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist Login credentials are the same as for user login.

Posted in bash, osx | Tagged , | Leave a comment

Static code analysis

After creating the #28855 ticket for WordPress Core I thought about making some BASH scripts to grep this kind of lines. For example: find PROJECT_DIR -iname “*.php” -exec php -l {} \; After some reading and googling I ended up reading Static analysis tools for … Continue reading

Posted in bash, php, wordpress | Tagged | Leave a comment

Finally working bash_completion in GNU screen

I was struggling without bash_completion in GNU screen and the solution was adding the following to .screenrc: defshell -bash Some more info at: https://www.gnu.org/software/screen/ http://magazine.redhat.com/2007/09/27/a-guide-to-gnu-screen/ http://www.debian-administration.org/article/An_introduction_to_bash_completion_part_1 My .screenrc https://raw.github.com/mikaelz/dotfiles/master/.screenrc # # ~/.screenrc # # Thanks to: # https://www.gnu.org/software/screen/manual/screen.html#Command-Summary # http://www.debian-administration.org/articles/560Continue reading

Posted in bash, screen | Tagged | Leave a comment