This is a guide on how to configure multiple domain providers with a Rails app (or any web app actually!) on Heroku and GoDaddy

Setting up Heroku

  1. On the project folder you need to run the heroku domains:add heroku domains:add where the is your actual domain. Remember you can always add multiple domains this way.

Setting up GoDaddy

  1. Sign in to GoDaddy, go to the domains list, pick your domain or click on the manage button. This will take you to your domain configuration.
#!/bin/bash -x
sudo apt-key adv --keyserver hkp:// --recv EA312927
echo "deb xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt update
sudo apt install -y mongodb-org
sudo systemctl enable mongod
sudo vim /etc/mongod.conf
-- change access config if necessary
sudo systemctl start mongod
View gist:b8244d02df17be94c6ef


  • Desenvolver uma aplicação em Rails4 (com frontend) no qual o usuário digite uma palavra e a aplicação retorne os significados dela.

  • Caso os significados de uma palavra já existam no banco de dados da aplicação, use-as, caso não, consumir a API e armazenar no banco local.

  • Seguir os padrões W3C para o HTML semântico.

  • Desenvolver frontend usando obrigatoriamente Bootstrap.

View gist:7202822
convert <UNIT_NAME>: /fs:ntfs
View gist:7064995

How to use a PS3 controller on Mac OS X 10.7 (Lion)

  1. Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.

  2. Reset PS3 controller by inserting paperclip into pinhole near L2 button.

  3. Connect PS3 controller to Mac with USB cable.

  4. Enable Bluetooth.

View gist:6713661
For example, on that link .
Enterprise accounts doesn't requires to know client's UUID.
With enterprise account, just have a HTML pointing to a MANIFEST file that points to IPA.
View gist:6414493
$ sudo vim /etc/mysql/my.cnf
#comment out this line (add # in front of the line)
#bind-address =
$ sudo service mysql restart
mysql stop/waiting
mysql start/running, process 13081
View gist:6054063
afconvert -f caff -d LEI16@22050 yourInput.mp3 yourOutput.caf
View gist:4676177
Transforme seu browser num editor de texto.
Coloque isso na barra de endereços (remova as aspas):
"data:text/html, <html contenteditable>"
View gist:4529605
Try to add <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> to your .project file