Skip to content

Instantly share code, notes, and snippets.

View arzola's full-sized avatar
:octocat:
Coding

Oscar Arzola arzola

:octocat:
Coding
View GitHub Profile
@arzola
arzola / phpcs.xml
Last active May 17, 2020 20:06
Laravel static analysis tools
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Laravel Standards">
<description>The Laravel Coding Standards
</description>
<rule ref="Generic.Classes.DuplicateClassName"/>
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/>
<rule ref="Generic.CodeAnalysis.JumbledIncrementer"/>
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/6.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
forceCoversAnnotation="true"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
verbose="true"
colors="true">
composer install --no-dev
user arzola staff;
worker_processes auto;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
{
"require": {
"arzola/pdf": "~0.6"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/arzola/pdf"
}
]
https://hub.docker.com/r/sath89/oracle-xe-11g/
https://vanwollingen.nl/install-oracle-instant-client-and-sqlplus-using-homebrew-a233ce224bf
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
backupGlobals="false"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutTodoAnnotatedTests="true"
verbose="true"
server{
listen 80 default_server;
server_name 10.1.17.116;
root /Users/arzola/Sites/multiple;
location /{
return 410; #Default root does not exists
}
if (!-d $request_filename){
rewrite ^/(.+)/$ /$1 permanent;
}
@arzola
arzola / nginx server with ssl
Created September 26, 2017 23:18
Nginx Server with SSL
server{
server_name gestor.dev;
listen 80;
root /Users/arzola/Sites/gestor/public;
error_log /Users/arzola/Sites/logs/gestor.log;
index index.htm index.php;
location / {
try_files $uri $uri/ /index.php;
autoindex on;
}