Skip to content

Instantly share code, notes, and snippets.

Oscar Arzola arzola

Block or report user

Report or block arzola

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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;
}
View PSR-2 ruleset
<?xml version="1.0"?>
<ruleset name="PSR2">
<description>The PSR-2 coding standard.</description>
<arg name="tab-width" value="4"/>
<!-- 2. General -->
<!-- 2.1 Basic Coding Standard -->
<!-- Include the whole PSR-1 standard -->
You can’t perform that action at this time.