Skip to content

Instantly share code, notes, and snippets.

View brunoric's full-sized avatar
🎯
Focusing

Bruno Ricardo Siqueira brunoric

🎯
Focusing
  • AWS
  • Dublin, Ireland.
View GitHub Profile
@brunoric
brunoric / right-click
Last active July 25, 2019 16:13
Just a docker wrapper example
#!/usr/bin/env sh
docker run --rm -it php sh -c "php $@"
@brunoric
brunoric / testing.php
Last active April 22, 2018 18:30
Testing
<?php
echo "testing!";
@brunoric
brunoric / phpcs_check_errors.sh
Last active March 17, 2018 17:41
PHPCS check on diff and pre-commit hook
#!/usr/bin/env bash
RED='\033[0;31m' # red color
YELLOW='\033[1;33m' # red color
NC='\033[0m' # no color
FILE=$1;
RELATIVE_FILE_PATH=$(realpath --relative-to=${PWD} ${FILE});
STANDARD_LIST='SmartboxMagento';
PHPCS_REPORT_JSON=;
PHPCS_DEFAULT='phpcs'
PHPCS_LOCATION=$2;
@brunoric
brunoric / build-failing
Last active January 17, 2019 07:19
Build failing for PHP 7.2.0alpha2
# make finishes with
Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
directorytreeiterator.inc
clicommand.inc
invertedregexiterator.inc
directorygraphiterator.inc
pharcommand.inc
phar.inc
@brunoric
brunoric / increasing-your-productivity-with-an-awesome-cli-setup.post.md
Last active February 5, 2019 23:36
Increasing your productivity with an awesome CLI setup - FZF

Increasing your productivity with an awesome CLI setup

If you are a software developer, using *nix systems as your development environment, you may know that frequently we need to use the command line interface. For some, could be just to install and setup the development enviroment. Others, like back-end developers, uses it more often: to automatize daily tasks, to access remote environtments, to access logs, extract data, use a version control system, etc. Regardless how much time you spent using CLI or what is your level in SHELL scripting, with the right tools you can increase a lot your productivity.

I will start this post series talking about [Z Shell][zsh], [Oh my Zsh][oh-my-zsh] and [fzf][fzf]. The plan is have a lot of small screencasts with the behaviors and commands. Let's see how it goes. =)

Zsh

*Zsh is a shell designed for interactive use, although it is also a powerful scripting language. Many of the useful features of bash, ksh, and tcsh were incorporated into zsh; many original

@brunoric
brunoric / hello-world.post.md
Last active November 7, 2016 21:20
Hello world

About me

Hi, my name is Bruno Ricardo Siqueira, I'm Brazilian and I'm working as Senior Software Engineer at Smartbox (Dublin - Ireland). I have been working with web development and Internet for nine years, using the latest technologies available in the market, having followed the growth of PHP as language and the Internet as a work tool. I have pursued and successfully build Web Systems and applications following the best programming practices, software standards and design patterns. Over the past three years I have been attended as Speaker in tech events. I'm also founder of PHPSanca (PHP User Group in São Carlos - SP -

@brunoric
brunoric / README.md
Last active November 17, 2015 11:54
Jira Commit

Jira Commit

Instalation

curl -sS https://gist.githubusercontent.com/brunoric/f3a04ec14962957a6654/raw/0879f8158f4b82a635e27fc61a22958a78503510/installer.sh | bash

If you experience any permission denied error try call bash with sudo:

curl -sS https://gist.githubusercontent.com/brunoric/f3a04ec14962957a6654/raw/0879f8158f4b82a635e27fc61a22958a78503510/installer.sh | sudo bash
@brunoric
brunoric / commit-msg
Last active November 17, 2015 01:48
Commit message standard policy enforcer
#!/usr/bin/php
<?php
/**
* @file
* Commit message standard policy enforcer.
*
* @version 0.2.0
*
* @author brunoric <brunoric@gmail.com>
*/
@brunoric
brunoric / tdc-sp-2015-php7-references.post.md
Last active June 16, 2021 20:41
References for the my talk at TDC SP 2015 intitled 'PHP7: better & faster'.
@brunoric
brunoric / javascript-fullscreen-api.post.md
Last active July 13, 2016 20:50
Using the Fullscreen API example.

Já faz algum tempo, desde o fim de 2011, que existe um draft publicado no World Wide Web Consortium ([W3C][1]) pelo pessoal do Web Hypertext Application Technology Community Group ([WHATCG][2]) buscando padronizar uma API Javascript para exibição de conteúdo em tela cheia nos navegadores web. A especificação está em um processo chamado living specification, algo como uma especificação em andamento, e vem sofrendo modificações desde então. A última atualização data de julho de 2012 e de lá pra cá vários navegadores já a implementaram. Segue uma abaixo uma [tabela de compatibilidade][3].

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 15 -webkit 9.0 (9.0) -moz 11 -ms 12.10 5.0 -webkit
fullscreenEnabled 20 -webkit 10.0 (10.0) -moz 11 -ms 12.10 5.1 -webkit

Estamos no início de 2014 e, apenas