<?php
/**
* When we want to perform a bulk insert we will not found support for this action in Eloquent or Query Builder
* To avoid performance issues i have to drop my preference to be database agnostic in my Apps
* To be used like:
* $table = 'table_name';
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
| # by Exadra37 | |
| # this will allow gtilab to process hudge diffrences | |
| # restart gitlab to apply changes | |
| # change from 30 to 300 | |
| timeout 300 |
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
| set smartindent | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set expandtab | |
| set statusline="%f%m%r%h%w [%Y] [0x%02.2B]%< %F%=%4v,%4l %3p%% of %L" | |
| nnoremap <F2> :set invpaste paste?<CR> | |
| set pastetoggle=<F2> | |
| set showmode | |
| set nu |
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 | |
| /** | |
| * @author Exadra37 <exadra37atgmailpointcom> | |
| * @since 2014/01/03 | |
| */ | |
| if (!function_exists('debugOnScreen')) { | |
| function debugOnScreen(array $vars, $print_r = false, $die = false) |
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 | |
| /** | |
| * The helper function inside section DEBUG will allow to use var_dump and print_r | |
| * with an formatted output. | |
| * | |
| * The functions ddv(), ddp(), dv(), dp() will cal dump(), | |
| * that for is turn will call isAllowedToDebug() to check if we need to check the ip address | |
| * and in that case if the remote ip address is in the allowed ip addresses. | |
| * |
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
| #!/bin/bash | |
| # @author Exadra37 <exadra37ingmailpointcom> | |
| # @since 2015/03/18 | |
| # @link exadra37.com | |
| # @see Heavily inspired in http://stackoverflow.com/a/7244456 | |
| # | |
| # | |
| # I use this script to update my Prestashop fork when i want to make a contribution | |
| # |
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 | |
| /** | |
| * @author Paulo Silva(Exadra37) <exadra37ingmaildotcom> | |
| * @since 2015/06/04 | |
| */ | |
| abstract class BasicTestCase extends PHPUnit_Framework_TestCase // Orchestra\Testbench\TestCase for Laravel | |
| { | |
| /** |
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
| $> tail -f -n 100 /var/lib/mysql/devint1.log | |
| ... | |
| 8941 Prepare select * from `stepFeed` where `productId` = ? limit 1 | |
| 8941 Execute select * from `stepFeed` where `productId` = '764773' limit 1 |
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
Show hidden characters
| { | |
| "bootstrapped": true, | |
| "in_process_packages": | |
| [ | |
| ], | |
| "installed_packages": | |
| [ | |
| "Alignment", | |
| "Blade Snippets", | |
| "CSS Format", |
The blog post can be found here.
This walk-though will show us how simple it is to integrate Approov in a current API server using Python and the Flask framework.
We will see the requirements, dependencies and a step by step walk-through over the code necessary to implement Approov in a Python Flask API.