Markdown Blog

blog with Hugo

There are many reasons and options to choose a static site generator, but the main reasons are speed and security. Speed because it can allow more control over the content you only load what is really required without additional server side content, for security not having a database that can be compromised and security updates to apply, reduce the attack vectors and the administration work. There are many options for static site generators created on diferent languages like: [Read More]

Checking and validating phone numbers

git cheatsheet

In applications sometimes is needed check and verify if a phone number is valid or possible if the number have all required digits to be valid for this purpose there are several options to tackle the problem like regular expressions for example to validate E.164 format, library like the Google libphonenumber and API like the Twillio Lookup for something more complete. for this post i created a small app for test a demo purpose using the python port of the Google library [Read More]

Some basics git commands

git cheatsheet

Basic workflow # setup the project git clone github/project.git git branch FeatureX git co FeatureX # make some changes git status git add . # commit changes git commit -m 'commit message' # push changes to branch git push origin branch-name # next pull request/merge with master on github or command line Sometimes you don’t want to track some files(like local env configuration settings) # no track file git update-index --assume-unchanged Gemfile . [Read More]