ULTIMATE GUIDE HERE: https://confluence.atlassian.com/pages/viewpage.action?pageId=271943168
Github will be the main account and bitbucket the secondary.
ssh-keygen -t rsa -C "github email"
| #! /usr/bin/env bash | |
| # Variables | |
| APPENV=local | |
| DBHOST=localhost | |
| DBNAME=dbname | |
| DBUSER=dbuser | |
| DBPASSWD=test123 | |
| echo -e "\n--- Mkay, installing now... ---\n" |
| # First, Install Vagrant and Virtualbox then: | |
| # Create new project directory | |
| mkdir -p ~/Sites/newproject # Create new project directory | |
| mk ~/Sites/newproject # Go into your new project directory | |
| # Setup Vagrant | |
| vagrant init | |
| # Edit vagrant file box and box url to install Ubuntu, just like https://gist.github.com/fideloper/dab171a2aa646e86b782#file-vagrantfile-share-var-www-rb-L6-L8 | |
| # Edit Vagrantfile to create a static IP address, just like https://gist.github.com/fideloper/dab171a2aa646e86b782#file-vagrantfile-share-var-www-rb-L10 |
ULTIMATE GUIDE HERE: https://confluence.atlassian.com/pages/viewpage.action?pageId=271943168
Github will be the main account and bitbucket the secondary.
ssh-keygen -t rsa -C "github email"
| { | |
| "europe": { | |
| "va": "vatican city", | |
| "ch": "switzerland", | |
| "ad": "andorra", | |
| "ee": "estonia", | |
| "is": "iceland", | |
| "am": "armenia", | |
| "al": "albania", | |
| "cz": "czech republic", |
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |
| ''' | |
| Bluetooth/Pyjnius example | |
| ========================= | |
| This was used to send some bytes to an arduino via bluetooth. | |
| The app must have BLUETOOTH and BLUETOOTH_ADMIN permissions (well, i didn't | |
| tested without BLUETOOTH_ADMIN, maybe it works.) | |
| Connect your device to your phone, via the bluetooth menu. After the | |
| pairing is done, you'll be able to use it in the app. |
$ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>$ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>