Skip to content

Instantly share code, notes, and snippets.

Avatar

Oscar Arzola arzola

View GitHub Profile
@arzola
arzola / phpcs.xml
Last active May 17, 2020
Laravel static analysis tools
View phpcs.xml
<?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"/>
View phpunit.xml
<?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">
View nginx.conf
user arzola staff;
worker_processes auto;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
View Include custom repositorie via composer
{
"require": {
"arzola/pdf": "~0.6"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/arzola/pdf"
}
]
View gist:c2ed643d1cc9572bfeb25ac8798cd191
https://hub.docker.com/r/sath89/oracle-xe-11g/
View gist:0fa04b9fe3dfa3cbc56824a270e998bc
https://vanwollingen.nl/install-oracle-instant-client-and-sqlplus-using-homebrew-a233ce224bf
View phpunit.xml
<?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"
View multiple locations nginx one ip
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 Sep 26, 2017
Nginx Server with SSL
View 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;
}
You can’t perform that action at this time.