Edit hosts file on OSX

  05/06/2017

I had to modify local hosts file on OSX many times and it’s not just about edit and save because it requires few more things before and after.

To properly edit the hosts file on OSX, first you need to get super user access, then to remove protection from hosts file with chflags, edit hosts file and save, flush DNS cache (optional), and to set back the hosts file as protected (otherwise it will not work).

sudo su –
chflags nouchg /private/etc/hosts
sudo nano /private/etc/hosts
sudo killall -HUP mDNSResponder
chflags uchg /private/etc/hosts


Weather Forecast – Belgrade

20/05
Mon
weather - icon
Clear
22°C
21/05
Tue
weather - icon
Rain
21°C
22/05
Wed
weather - icon
Rain
21°C
23/05
Thu
weather - icon
Rain
20°C
24/05
Fri
weather - icon
Rain
17°C
25/05
Sat
weather - icon
Clear
20°C
26/05
Sun
weather - icon
Clouds
22°C

Powered by OpenWeatherMap | by Phee

RSS Laracasts

  • Storing Jobs in the Database 17/05/2019
    If you don't have much control over the environment your application runs in, you might consider using the database queue connection. With this approach, rather than using Redis or Memcached, your jobs will instead be stored and fetched from the database.
    Jeffrey Way
  • Multiple Queues and Workers 14/05/2019
    In this episode, we'll review how to create multiple queue stacks and workers, as well as when and why you might do so.
    Jeffrey Way
  • A UI For Your Redis-Backed Queues 13/05/2019
    When working with queues, it can often prove difficult to see what's happening. For example, how many jobs ran in the last hour? Did any of them fail? How many workers are running? And what about only the jobs that match a particular tag? Let's solve this by installing Laravel Horizon, a dashboard for your […]
    Jeffrey Way
  • Failed Jobs 10/05/2019
    So far, we've reviewed the "happy path" for a job, but what if an error or exception is thrown along the way? If you don't specify a maximum number of tries for your queue worker, the job will retry over and over again. In this episode, we'll learn how to fix this by creating a […]
    Jeffrey Way
  • Dispatchable 09/05/2019
    We've learned how to use the global dispatch() function, but there's an alternative option you should consider as well. By default, each Job class includes a Dispatchable trait.
    Jeffrey Way

Contact