PhpStorm PHPCodeSniffer and… CodeIgniter style guide

This article is related to my previous one about setting up PHPCodeSniffer with CodeIgniter coding standards.

Installation on Linux boxes is pretty yeasy:

sudo pear channel-update pear.php.net
yum install php-pear-PHP-CodeSniffer php-phpunit-phpcpd

On Mac OS X you have couple options. Pear or Homebrew:

brew install php-code-sniffer

And following that, on regular boxes CodeSniffer will be here:

/usr/share/pear/PHP/CodeSniffer/Standards

on Mac OS CodeSniffer will be located here:

/usr/lib/php/pear/PHP/CodeSniffer/Standards or… /usr/local/Cellar/php-code-sniffer/1.5.6/CodeSniffer/Standards

CodeIgniter standard can be downloaded from this location  https://github.com/thomas-ernest/CodeIgniter-for-PHP_CodeSniffer

TOTP security tokens and 2-Step Verification

Time-based One-time Password Algorithm (TOTP) is an algorithm that computes a  one-time password  from a  shared secret key  and the current time. The most popular implementation of this solution is Google Authenticator.

This application that implements  TOTP   security tokens . Usually is branded as “ Two-step verification {.mw-redirect}” (or 2-Step Verification). Authenticator provides a six- to eight-digit  one-time password  which users must provide in addition to their username and password to log into various services or other sites.

SSH and SFTP tunnels via ProxyCommand

Recently on CyberCity nice article appeared about using middle server to connect to our destination servers. Most of servers have firewalls which  allow connect only from given pool of IP addresses. So tunnelling is very useful as long we are using it in smart way.

Using Google Cloud storage with AWS libraries in GO LANG

Using Google Cloud storage with AWS libraries in GO LANG

Google Cloud storage  it’s Google answer to [Amazon S3][1] service. As long one of them is very popular 😉 Second wasn’t so successful amongst developers due to quite complex processes around service. Amazon is super simple, and developer friendly – Google… well not so easy. So the questions – why you may consider using GS instead of well documented, and super easy S3. Not many people realise but Google Cloud Storage is actually cheaper . The other reason to use Google Storage is having different provider as a backup solution. Anyway – let’s show how easy is to use GS with existing S3 libraries.

Useful libraries for SWIFT beginners

Useful libraries for SWIFT beginners

Recently we started working with Apple Swift language. It’s pretty simple but very power full language. Learning curve is hard – because it’s pretty new language, but from the other hand it’s good – because there is a lot of freshmen questions on StackOverflow and plenty of articles .

Because most of the stuff is related with REST communication with APIs core of my software works with JSON objects. In general we are looking also something for HTTP communication, uploading files and so on.