Skip to content

Instantly share code, notes, and snippets.

Bruno Paulino brunojppb

Block or report user

Report or block brunojppb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

To install pycurl on Mac:

brew cask install wkhtmltopdf
brew reinstall openssl
pip install pycurl== --install-option=--with-openssl --install-option=--openssl-dir=/usr/local/opt/openssl
pip install phonenumbers
brunojppb /
Created Aug 15, 2019 — forked from ibraheem4/
Installing Postgres via Brew (OSX)

Installing Postgres via Brew


Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
brunojppb /
Last active Apr 3, 2019
Backup Redmine script
# Backup redmine script
# see
# Check redmine path
ps fax | grep redmine
# Dump mysql data
/usr/bin/mysqldump -u <USERNAME> -p<PASSWORD> -h <HOSTNAME> <DATABASE> > /var/data/redmine/backups/redmine-db-"`date +"%Y-%m-%d"`".sql
# TODO: Dump binary data (attachments)
brunojppb / fontastic_sizer.js
Created Feb 25, 2019
Show select input to change icon font-size for preview in Fontastic generated HTM
View fontastic_sizer.js
/** Show select input to change icon font-size for preview in Fontastic generated HTML ( */
const xpath = "//h2[text()='CSS mapping']";
const mainHeader = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
const fontSizes = [16, 24, 32, 64, 128, 256];
const selectList = document.createElement('select'); = "font-size-select";
fontSizes.forEach(size => {
const option = document.createElement('option');

Privacy Policy

Bruno Paulino built the Card Vault app as a Commercial app. This SERVICE is provided by Bruno Paulino and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Card Vault unless otherwise defined in this Privacy Policy.

brunojppb /
Created Feb 6, 2019
change apple screenshot default file format

To change apple screenshot saving format, just enter this command in the terminal

defaults write type [exntension]

where extension is the target extension you want to save. Like jpg, png, pdf, etc...

brunojppb /
Created Dec 5, 2018
django migration commands using docker compose

Generate Migrations

# django = cocker compose service name
$ docker-compose exec -u $UID django ./ makemigrations

Migrate DB

docker-compose exec -u $UID django ./ migrate 
brunojppb /
Last active Aug 21, 2019
configurando o git e o Rails no ubuntu

Instalar o git:

sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev

Instalar o rbenv:

git clone ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
brunojppb /
Created Sep 20, 2018
check if master branch is currently set for deployment. fail otherwise.
if [ = master ]; then exit 0; else echo "ERROR: you are trying to deploy branch. Only master is allowed. If you are sure about that, disable this build step"; exit 1; fi
curl -X POST --data-urlencode "payload={\"channel\": \"#general\", \"username\": \" (TeamCity)\", \"text\": \":rocket: New deployment sent to production servers. []\", \"icon_emoji\": \":rocket:\"}"<YOUR_URL_HERE>
You can’t perform that action at this time.