Install Vagrant and VirtualBox Vagrant Download https://www.vagrantup.com/downloads.html
Virtual Box Download https://www.virtualbox.org/wiki/Downloads
| <!doctype html> | |
| <html> | |
| <body> | |
| <header role="banner"> | |
| <a href="/" rel="home">My company</a> | |
| <nav role="navigation"> | |
| <a href="/about">About</a> | |
| <a href="/contact">Contact</a> | |
| </nav> | |
| </header> |
| Snippet: [[SnippetName]] | |
| Chunk: [[$ChunkName]] | |
| System Setting: [[++SettingName]] | |
| TV: [[*fieldName/TvName]] | |
| Link tag: [[~PageId? ¶mName=`value`]] | |
| Placeholder: [[+PlaceholderName]] | |
| <?php |
| const Application = ((d) => { | |
| const privateVariable = 'Private content' | |
| const __private = { | |
| cache: () => { | |
| this.link = d.querySelector('.link') | |
| }, | |
| bind: () => { | |
| this.link.addEventListener('click', this.showContent, false) |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| mkdir scrutinizer && cd scrutinizer | |
| # Install tools | |
| # - Scrutinizer and composer | |
| wget http://scrutinizer-ci.com/scrutinizer.phar | |
| curl -sS https://getcomposer.org/installer | php | |
| # - All needed CI tools | |
| php composer.phar require h4cc/phpqatools:~1.2 | |
| cp -p composer.phar vendor/bin/composer |
Install Vagrant and VirtualBox Vagrant Download https://www.vagrantup.com/downloads.html
Virtual Box Download https://www.virtualbox.org/wiki/Downloads
| <?php | |
| function slug_check_dev() { | |
| $urlParts = parse_url( htmlspecialchars("//$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]", ENT_QUOTES, 'UTF-8' ) ); | |
| $hostParts = explode('.', $urlParts[ 'host'] ); | |
| $hostParts = array_reverse( $hostParts ); | |
| if ( $hostParts[ 0 ] === 'dev' ) { | |
| return true; | |
| } |
All commands are in the terminal.
vagrant ssh from homestead directorymkdir selenium from the ~ directorycd seleniumwget http://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar
*Note: This link comes from copying the link on http://docs.seleniumhq.org/download/sudo apt-get install openjdk-7-jre-headlesso-, Object
c-, Component
| [Unit] | |
| Description=supervisord - Supervisor process control system for UNIX | |
| Documentation=http://supervisord.org | |
| After=network.target | |
| [Service] | |
| Type=forking | |
| ExecStart=/bin/supervisord -c /etc/supervisord/supervisord.conf | |
| ExecReload=/bin/supervisorctl reload | |
| ExecStop=/bin/supervisorctl shutdown |