- Website: http://xdebug.org/
- Related Gist: https://gist.github.com/hofmannsven/7613663
| # Define image we want to build from | |
| FROM node:7.9 | |
| # Setup the directory structure for our web app | |
| RUN mkdir -p /usr/src/app | |
| WORKDIR /usr/src/app | |
| # Get the deps - only if not included in the deploy!! | |
| # COPY package.json /usr/src/app/ | |
| # RUN npm install |
| #!/bin/bash | |
| # must have fswebcam installed | |
| command -v fswebcam >/dev/null 2>&1 || { | |
| echo "I require fswebcam but it's not installed. Aborting." >&2; exit 1; | |
| } | |
| # must have rsync installed | |
| command -v rsync >/dev/null 2>&1 || { | |
| echo "I require rsync but it's not installed. Aborting." >&2; exit 1; |
| #!/usr/bin/env php | |
| <?php | |
| /** | |
| * This script will download and install https://github.com/pantheon-systems/wp-native-php-sessions | |
| * on your Pantheon Wordpress site. | |
| * | |
| * Works on Macintosh / Linux. | |
| * | |
| * Usage: | |
| * |
| <form id="contact-form" action="//formspree.io/your@email.com" method="post"> | |
| <input type="text" name="Name" placeholder="Name" required> | |
| <input type="email" name="Email" placeholder="Email" required> | |
| <textarea name="Message" cols="30" rows="6" placeholder="Message" required></textarea> | |
| <!-- CONFIG --> | |
| <input class="is-hidden" type="text" name="_gotcha"> | |
| <input type="hidden" name="_subject" value="Subject"> | |
| <input type="hidden" name="_cc" value="email@cc.com"> | |
| <!-- /CONFIG --> | |
| <input class="submit" type="submit" value="Send"> |
| // ImageMagick - Convert SVG to PNG w/ transparency | |
| // | |
| // - open terminal | |
| // | |
| // - confirm you have imagemagick installed | |
| // --- type: convert -v | |
| // | |
| // - cd to folder | |
| // | |
| // - single file |
| # Before Script | |
| before_script: | |
| - composer self-update | |
| - composer install --prefer-dist > /dev/null | |
| - cp .env.example .env | |
| - php artisan key:generate | |
| - php artisan migrate:refresh | |
| # Services | |
| services: |
| # Quicker navigation | |
| alias ..="cd .." | |
| alias ...="cd ../.." | |
| alias ....="cd ../../.." | |
| alias .....="cd ../../../.." | |
| alias ......="cd ../../../../.." | |
| alias .......="cd ../../../../../.." | |
| # Aliases | |
| alias ll='ls -l' |
If you want a way to access your localhost easily on the public internet, lets say, to showcase the current work to a client, etc. This is where ngrok comes in. It allows us to establish a tunnel that forwards a port on our machine and make it available on the internet.
Ngrok is a Go program, distributed as a single executable file for all major desktop platforms. There are no additional frameworks to install or other dependencies.
This tutorial assumes you are using MAMP and have previously set up DNSMASQ.