Fork me on GitHub

Use your own fork with composer

Resources:

  • https://getcomposer.org/doc/04-schema.md#minimum-stability
  • https://stackoverflow.com/a/13500676/1632809

Context

Composer

My composer.json file that tracks my fork with ly branch.

Note: branch must be prefixed bt dev-. In this case: dev-benIT-gaufrette-1.0:

{
  "name": "root/test-composer",
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/benIT/KnpGaufretteBundle.git"
    }
  ],
  "require": {
    "knplabs/knp-gaufrette-bundle": "dev-benIT-gaufrette-1.0"
  },
  "minimum-stability": "dev",
  "prefer-stable": true
}

The following directive :

"minimum-stability": "dev",
"prefer-stable": true

prevents this kind of error related to minimum stability:

  Problem 1
    - Installation request for knplabs/knp-gaufrette-bundle dev-benIT-gaufrette-1.0 -> satisfiable by knplabs/knp-gaufrette-bundle[dev-benIT-gaufrette-1.0].
    - knplabs/knp-gaufrette-bundle dev-benIT-gaufrette-1.0 requires knplabs/gaufrette ^1.0 -> satisfiable by knplabs/gaufrette[1.x-dev] but these conflict with your requirements or minimum-stability.

Apache2 customize index page

Customize the default apache2 page index page

Apache2 index option is highly customizable. See this official resource.

With the following code:

<VirtualHost *:80>
        DocumentRoot /data/moodle_versions
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /data/moodle_versions/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Require all granted
        allow from all
        AddDescription "Installation de moodle 3.5.4 LTS standard" moodle_354
        AddDescription "Installation de moodle 3.6.4 à des fins de test" moodle_364
        IndexStyleSheet "style.css"
        HeaderName header.html
        ReadmeName footer.html
        IndexIgnore *.html
        IndexIgnore *.css
    </Directory>
        ServerAdmin webmaster@localhost
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

You can turn the default page:

screenshot

to this one:

screenshot

RIP a md5 hash with john the ripper

RIP a md5 hash

echo "ca50dfb151104b1ee005d68fa9a970ce" > md5-to-crack
john --format=raw-md5 md5-to-crack --show

returns:

john --format=raw-md5 md5-to-crack --show
?:dolorem

1 password hash cracked, 0 left

Password for hash ca50dfb151104b1ee005d68fa9a970ce is dolorem