You will learn how to link your JIRA tasks directly on SourceTree
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
for i in *; do cat $i | sed s/from/to/g > $i.out; mv $i $i.bkp; mv $i.out $i; done |
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
alias pid='ps aux | pgrep -d " " '; | |
kill -9 $(pid chrome) |
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 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 | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` or `git merge` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" |
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 | |
# POMODORO | |
# usage: pomo | pomo short | pomo long | |
SLEEPTIME=1500 | |
TITLE="POMODOR0 :)" | |
SUBTITLE="Take a Break :)" | |
if [ "$1" = "long" ]; then |
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
2015-02-03 10:23:36 -0200 | |
/usr/local/opt/php56/bin/phpize | |
Configuring for: | |
PHP Api Version: 20131106 | |
Zend Module Api No: 20131226 | |
Zend Extension Api No: 220131226 |
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' | |
); |
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" \ |
OlderNewer