This file contains hidden or 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
| privacy_policy_label = TEXT | |
| privacy_policy_label.data = LLL:fileadmin/Pipapo/Private/Language/locallang.xlf:label.privacy_policy | |
| privacy_policy_label.stdWrap.replacement.10 { | |
| search = %%%link%%% | |
| replace.stdWrap.typolink { | |
| parameter = {$privacy_policy.pid} | |
| } | |
| } |
This file contains hidden or 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
| cwd="$(pwd)/$( dirname "${BASH_SOURCE[0]}" )" | |
| cpd="$(pwd)/$( dirname "${BASH_SOURCE[0]}" )/.." |
This file contains hidden or 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
| CREATE DATABASE `databasename` CHARACTER SET utf8 COLLATE utf8_general_ci; | |
| GRANT ALL ON `databasename`.* TO `username`@localhost IDENTIFIED BY 'password'; |
This file contains hidden or 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 $(docker-machine ls | grep digitalocean | awk '{print $1}'); \ | |
| do printf "\x1B[01;33m\n$i\n\x1B[0m" && docker-machine ssh $i ls /swapfile || \ | |
| docker-machine ssh $i -- \ | |
| "fallocate -l 1G /swapfile && chmod 600 /swapfile && mkswap /swapfile && \ | |
| echo -e '\n/swapfile none swap defaults 0 0' >> /etc/fstab && swapon -a && free -htl"; done |
This file contains hidden or 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
| ¯\_(ツ)_/¯ |
This file contains hidden or 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
| $size = memory_get_usage(TRUE); | |
| $unit = array('b','kb','mb','gb','tb','pb'); | |
| $mem = @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i]; |
This file contains hidden or 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
| var gulp = require('gulp'); | |
| var exec = require('child_process').exec; | |
| var path = require('path'); | |
| var fs = require('fs'); | |
| gulp.task('phpunit', function() { | |
| var class_file_to_test_file = function(class_path) { | |
| var test_file = class_path.replace(/\/Classes\//g, '/Tests/Unit/'); | |
| return test_file.slice(0, -4) + 'Test.php'; | |
| }; |
This file contains hidden or 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
| function executeWithJquery(callback) { | |
| (function($){ | |
| if(!$) { | |
| if(typeof console === 'object') { | |
| console.log('This plugin requires jQuery.'); | |
| } | |
| return; | |
| } | |
| callback(); | |
| })((typeof jQuery !== "undefined" ? jQuery : null)); |
This file contains hidden or 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
| eval `ssh-agent` # or | |
| exec ssh-agent bash | |
| ssh-add |
This file contains hidden or 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
| curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |