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"/>
@arzola
arzola / embed_image
Created May 19, 2014 22:47
Add Embed Image with PhpMailer
<?php
$mail->AddEmbeddedImage("rocks.png", "my-attach", "rocks.png");
$mail->Body = 'Your <b>HTML</b> with an embedded Image: <img src="cid:my-attach"> Here is an image!';
<?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;
}