export CURRENT_IP=`/sbin/ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'`
export CURRENT_IP=/sbin/ifconfig | grep 'inet '| grep -v '127.0.0.1' | cut -d' ' -f10 | awk '{ print $1}'
| <?php | |
| namespace AppBundle\Controller; | |
| // use statements | |
| class HotelsController extends FOSRestController | |
| { | |
| /** | |
| * @Route("/hotels/search", name="airnav_hotels_search", methods={"GET"}, options={"expose"=true}) |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with useful tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2876759/hack.sh | sh | |
| # |