Makes Ionic server listen to all connection:
$ ionic serve -a
Ionic server listen to specific port:
$ ionic serve -p 8101
Makes Ionic server listen to all connection:
$ ionic serve -a
Ionic server listen to specific port:
$ ionic serve -p 8101
var express = require('express') | |
var app = express() | |
app.get('/api/feed', function(req, res) { | |
res.json({name: 'feed', items: ['first', 'second']}) | |
}) | |
var server = app.listen(3000, function () { | |
var host = server.address().address |
Remove remote branch
git push origin :[branch-name]
Remove stale remote brance
git remote prune origin
mysql> CREATE USER 'user_name'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON database_name.* TO 'user_name'@'localhost' WITH GRANT OPTION;
mysql> CREATE USER 'user_name'@'%' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON database_name.* TO 'user_name'@'%' WITH GRANT OPTION;
mysql> flush privileges;
At the prompt, enter the following command:
sudo nano /etc/network/interfaces
In the nano text editor, you’ll see something like this:
auto lo
$ sudo apt-get update
$ sudo rpi-update
You'll need to find your Pi on your network if its headless and you don't know it's IP. I used nmap. On MacOS this is available via homebrew:
$ brew install nmap
#Find your Raspberry Pi
To use it, from the command line, tell it to scan your network for machines with port 22 open (the SSH port):