Tags » CLI

Messing with the DVD drive in command line

I found a cool gif of a DVD drive used as a baby sitter. LOL!

I instinctively searched for a way to mess with the DVD drive in the command line. 83 more words

CLI markdown viewer

Markdown is a very powerful and easy syntax, used to create rich text through a plain text editor and to format ReadMe files. The latter are the “main introduction” to the source code gatherd in a GitHub repository as well, so writing that kind of files in the most accurate way is really really important. 219 more words


Delete a SRDF pair on VMAX3

Recently I have had some issues with SRDF on the VMAX3 that I manage.  I was having issues trying to resolve it using the Unisphere GUI, which can be very limited in its capabilities, so I had to switch to command line.   40 more words

Remember Norton Commander?

If you’ve been around long enough to have used Microsoft DOS as your primary operating system, you might remember Norton Commander.

Managing files in DOS was a pain in the butt without something even remotely graphical. 158 more words

Using screen in Linux

Want to:
  1. Use multiple shell windows from a single SSH session.
  2. Keep a shell active even through network disruptions.
  3. Disconnect and re-connect to a shell sessions from multiple locations.
  4. 89 more words
Sem Categoria

Setup Doctrine2 Migrations and cli-config.php

After composer requiring doctrine/migrations, you need to edit your cli-config.php. Here’s mine, with the new stuff added in bold.

use Doctrine\ORM\Tools\Console\ConsoleRunner;
use XYZ\XYZService;
use XYZ\Test\XYZTesting;

// This is just a dependency injection container
$container = XYZTesting::getContainer();

/* Edit these details to suit

$container['db.credentials'] = array(
    'driver' => 'pdo_mysql',
    'dbname' => 'twg',
    'user' => 'dbuser',
    'password' => '123',

// this is just my service which returns the entitymanager (requires the DIC above)
$svc = new XYZService($container);
$em = $svc->getEntityManager();
$helperSet = ConsoleRunner::createHelperSet($em);

… 707 more words