You will learn how to link your JIRA tasks directly on SourceTree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# php-5.5 | |
FROM daccbr/php:5.5-fpm-alpine | |
RUN addgroup -g 1000 sumup && adduser -u 1000 -h /home/sumup -H -G sumup -s /bin/false -D sumup | |
RUN apk --update add openssh-client libtool make grep autoconf gcc libc-dev zlib-dev | |
RUN cd /tmp \ | |
&& apk --update add cyrus-sasl-dev libmemcached-dev \ | |
&& curl -L --progress-bar -o "php-memcached-2.2.0.tar.gz" "https://github.com/php-memcached-dev/php-memcached/archive/2.2.0.tar.gz" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Run docker-compose in a container | |
# | |
# This script will attempt to mirror the host paths by using volumes for the | |
# following paths: | |
# * $(pwd) | |
# * $(dirname $COMPOSE_FILE) if it's set | |
# * $HOME if it's set | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
VERSION_PATTERN="([0-9]+\.[0-9]+\.[0-9]+)" | |
case "${1}" in | |
"phpstorm") | |
TOOL_NAME="PhpStorm" | |
INSTALL_DIR="/opt/phpstorm" | |
case "${2}" in | |
"eap") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dpkg --add-architecture i386 | |
sudo apt update | |
cd ~/Downloads | |
curl -L -o teamviewer_i386.deb "https://download.teamviewer.com/download/teamviewer_i386.deb" | |
sudo apt install -y ./teamviewer_i386.deb | |
rm teamviewer_i386.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
ANCESTOR=$(git merge-base $CURRENT_BRANCH master) | |
OIFS=$IFS | |
IFS=$'\n' FILES=($(git diff --name-status $ANCESTOR HEAD | grep -E '^[AM].+\.php$' | awk '{print $2}')) | |
IFS=$OIFS | |
php-lint.sh "${FILES[@]}" |
I hereby claim:
- I am danielcosta on github.
- I am danielcosta (https://keybase.io/danielcosta) on keybase.
- I have a public key ASDEDoD_51rq6giZ8gWsG1a5cKAehbzkMp93GyKUyteOsgo
To claim this, I am signing this object:
This gist assumes:
- you have a local git repo
- with an online remote repository (github / bitbucket etc)
- and a cloud server (Rackspace cloud / Amazon EC2 etc)
- your (PHP) scripts are served from /var/www/html/
- your webpages are executed by apache
- apache's home directory is /var/www/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ProtectedMethodTest extends PHPUnit_Framework_TestCase | |
{ | |
public function testProtectedMethod() | |
{ | |
$method = self::getMethod( | |
'MyClass', | |
'getProtectedMethodReturnsTrue' | |
); |
NewerOlder