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
| # Configure colors, if available. | |
| if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then | |
| c_reset='\[\e[0m\]' | |
| c_user='\[\e[1;33m\]' | |
| c_path='\[\e[0;33m\]' | |
| c_git_cleancleann='\[\e[0;36m\]' | |
| c_git_dirty='\[\e[0;35m\]' | |
| else | |
| c_reset= | |
| c_user= |
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
| #!/bin/bash | |
| git diff --cached --name-status --diff-filter=ACMR | while read STATUS FILE; do | |
| if [[ "$FILE" =~ ^.+(php|inc)$ ]]; then | |
| php -l "$FILE" 1> /dev/null | |
| if [ $? -ne 0 ]; then | |
| echo "Aborting commit due to files with syntax errors" >&2 | |
| exit 1 | |
| fi | |
| fi |
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
| <?php | |
| $ip = (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; | |
| if($ip === '###IP###') { | |
| dump(__FUNCTION__ .' / '. __FILE__ .' / '. __LINE__); | |
| } |
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
| <?php | |
| namespace FirstPlugin; | |
| use Shopware\Components\Plugin; | |
| /** | |
| * Class FirstPlugin | |
| * @package FirstPlugin | |
| */ | |
| class FirstPlugin extends Plugin | |
| { |
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 -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose | |
| chmod +x /usr/local/bin/docker-compose | |
| pip uninstall docker-py; pip uninstall docker; pip install docker; |
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
Show hidden characters
| [ | |
| { "keys": ["f1"], "command": "goto_documentation" }, | |
| { "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": false } }, | |
| { "keys": ["ctrl+shift+y"], "command": "upper_case" }, | |
| { "keys": ["ctrl+shift+x"], "command": "lower_case" }, | |
| { "keys": ["ctrl+shift+c"], "command": "show_panel", "args": {"panel": "console", "toggle": true} }, | |
| { "keys": ["ctrl+alt+a"], "command": "alignment" }, | |
| { "keys": ["ctrl+b"], "command": "toggle_side_bar" }, | |
| { "keys": ["ctrl+shift+d"], "command": "goto_definition" }, | |
| { "keys": ["ctrl+shift+r"], "command": "goto_symbol_in_project" }, |
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
| <?php | |
| public function _execute(array $params = null) | |
| { | |
| try { | |
| $start = microtime(true); | |
| if ($params !== null) { | |
| $ret = $this->_stmt->execute($params); | |
| } else { | |
| $ret = $this->_stmt->execute(); |
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
| # Alias for Windows folder | |
| alias winhome="cd /mnt/c/Users/wesolowski/Desktop/" | |
| alias work="cd ~/workspace" | |
| alias workspace=work | |
| alias nexus="cd ~/workspace/nexus" | |
| phpunit() { |
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
| docker exec teamcity_agent1 /bin/sh -c 'apt-get update && apt-get install -y wget docker-compose unzip' | |
| docker exec teamcity_agent2 /bin/sh -c 'apt-get update && apt-get install -y wget docker-compose unzip' | |
| docker exec teamcity_agent3 /bin/sh -c 'apt-get update && apt-get install -y wget docker-compose unzip' |
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
| <?php | |
| return [ | |
| '5WHTFyqSii0lmT9R21abT8' => [ | |
| ['Mabel', "Don't Call Me Up"], | |
| ], | |
| '5Jt9LBya59lo2T9qQ7jfH3' => [ | |
| ['Katarzyna Nosowska', 'Sobie i Wam'], | |
| ['Nosowska/Organek/Zalewski/Igo', 'Sobie i Wam'], | |
| ], |
OlderNewer