Batch install dependencies in all subfolder-organised projects

As a lecturer ICT I have to correct the work our students make. Therefor I collect all solutions and put them in a subfolder-organised structure on disk: per student I create a subfolder and put their solution into that folder(*). $ tree -L 1 . β”œβ”€β”€ student1 β”œβ”€β”€ student2 β”œβ”€β”€ … └── studentN As – […]

wp-cli β€” A command line interface for WordPress

wp-cli is a set of command-line tools for managing WordPress installations. You can update plugins, set up multisite installs, create posts and much more. Once installed, you can run commands such as: wp plugin install hello-dolly which will output: Installing Hello Dolly (1.5) Downloading install package from http://downloads.WordPress.org/plugin/hello-dolly.1.5.zip … Unpacking the package … Installing the […]

Autocomplete git branch name

Turns out it’s possible to enable autocompletion of git branch names when working on the command line. The script can be automatically installed on OS X using these commands: $ curl -G https://raw.github.com/git/git/master/contrib/completion/git-completion.bash > ~/.git-completion.sh $ echo ‘source ~/.git-completion.sh’ >> ~/.bash_profile Don’t forget to re-open any already open Terminal windows. (via @decthomas) UPDATE: I’ve been […]

Composer – Dependency Manager for PHP

Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you. Think npm install but then for PHP { “require”: { “monolog/monolog”: “1.2.*” } } $ composer install Plays nice with packages that support PSR-0 autoloading. […]