This file contains 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 | |
/** | |
* Converts a CamelCase word into snake_case | |
* - improved version of http://stackoverflow.com/a/19533226 | |
* - this version avoid failing when using the $input = "_ThisIsATest_To_check_this" | |
* . stack overlow answer will output "__this_is_atest__to_check_this" | |
* . this improved version will output "this_is_a_test_to_check_this" | |
* | |
* @author Exadra37 exadra37 in gmail point com |
This file contains 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 | |
# | |
# Will uninstall / remove completely mysql from your system | |
# This script was done to work in Ubuntu 13.10, but can be easily modified to work in other distributions | |
# | |
# @author Exadra37 | |
# @version 1.0.0 | |
# @since 14/10/2014 | |
# @see http://askubuntu.com/a/172516 | |
# http://stackoverflow.com/a/16178696 |
This file contains 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 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 Paulo Silva <exadra37atgmailpointcom> | |
# @since 2014/08/20 | |
echo -e "\n Import CSV File to Database \n"; | |
error=0; | |
if [ "$1" != "-h" ] || [ "$1" != "--help" ] | |
then |
This file contains 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 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 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 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 | |
* @package exadra37/tools | |
* @version 1.0.0 | |
* @since 1.0.3 - 19/09/2014 | |
* 1.0.2 - 15/09/2014 | |
* 1.0.1 - 15/09/2014 |
This file contains 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 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) exadra37 in gmail point com | |
* @package exadra37/PDO | |
* @version 0.0.1 | |
* @since 24/01/2014 | |
* | |
*/ |
OlderNewer