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
image: lorisleiva/laravel-docker:latest | |
before_script: | |
- mkdir -p ~/.ssh | |
- echo "$PACKAGE_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa | |
- chmod 600 ~/.ssh/id_rsa | |
- eval "$(ssh-agent -s)" | |
- ssh-add ~/.ssh/id_rsa | |
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' | |
- mysql -h $DB_HOST -u root -p$MYSQL_ROOT_PASSWORD -e "SHOW DATABASES;" |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>uniMail</title> | |
</head> | |
<body> | |
<form action="mail.php" method="POST"> |
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 | |
/* connect to gmail */ | |
$hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; | |
$username = '****@gmail.com'; | |
$password = 'PASSword'; | |
echo "<script>console.log( 'Debug Objects: " . $username . "' ); </script>"; | |
/* try to connect */ | |
$items = array( |
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 twelve; | |
require_once 'CanMove.php'; | |
class Car | |
{ | |
use CanMove; |
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 | |
$sitemap = "sitemap.xml"; | |
$startUrl = "http://php.net"; | |
$extencions = [ | |
".html", | |
".php", | |
"/", | |
]; | |
$scanned = []; |
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
image: php:7.1-fpm | |
pipelines: | |
default: | |
- step: | |
caches: | |
- composer | |
script: | |
# Update dependencies | |
- apt-get update | |
# Install dependencies |
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
#!/usr/bin/env bash | |
echo "php-cs-fixer pre commit hook start" | |
PHP_CS_FIXER="bin/php-cs-fixer" | |
PHP_CS_CONFIG=".php_cs" | |
CHANGED_FILES=$(git diff --cached --name-only --diff-filter=ACM -- '*.php') | |
if [ -n "$CHANGED_FILES" ]; then | |
$PHP_CS_FIXER fix --config "$PHP_CS_CONFIG" $CHANGED_FILES; | |
git add $CHANGED_FILES; |
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
- hosts: all | |
vars: | |
branch: "master" | |
app_root: /www | |
app_repo: "[email protected]" | |
tasks: | |
- name: Enable maintenance mode | |
shell: php artisan down | |
args: |
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
""" | |
Application router decoretor. | |
""" | |
from functools import wraps | |
ROUTES = dict() | |
def bluprint_add_routes(blueprint, routes): |
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
# Virtual Hosts | |
# | |
# Required modules: mod_log_config | |
# If you want to maintain multiple domains/hostnames on your | |
# machine you can setup VirtualHost containers for them. Most configurations | |
# use only name-based virtual hosts so the server doesn't need to worry about | |
# IP addresses. This is indicated by the asterisks in the directives below. | |
# | |
# Please see the documentation at |