To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
| #!/bin/bash | |
| # To run this script you need to give execute permission. | |
| # $chmod +x restart_bluetooth.sh; | |
| # If you want only to restart: | |
| # $ ./restart_bluetooth.sh; | |
| # If you want to turn bluetooth on; | |
| # $ ./restart_bluetooth.sh 1; | |
| # If you want to turn bluetooth off; | |
| # $ ./restart_bluetooth.sh 0; |
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |