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

12/11
Tue
weather - icon
Clouds
16°C
13/11
Wed
weather - icon
Rain
17°C
14/11
Thu
weather - icon
Clouds
17°C
15/11
Fri
weather - icon
Clear
17°C
16/11
Sat
weather - icon
Clouds
17°C
17/11
Sun
weather - icon
Clouds
16°C
18/11
Mon
weather - icon
Clouds
16°C

Powered by OpenWeatherMap | by Phee

BUDI HUMAN WIDGET HTTP!!!

RSS Laracasts

  • Attach and Validate Many-to-Many Inserts 11/11/2019
    We now understand how to fetch and display records from a linking table. Let's next learn how to perform inserts. We can leverage the attach() and detach() methods to insert one or many records at once. However, we should also perform the necessary validation to ensure that a malicious user doesn't sneak an invalid id.
    Jeffrey Way
  • Manage Your Local Dev Environment With Docker 05/11/2019
    In this lesson, Jose Soto will show you, step by step, how easy it can be to maintain local database management systems on your machine, using Docker.
    Jeffrey Way
  • Testing and Deploying Laravel Packages 04/11/2019
    If you can't prove - through automated tests - that your package works correctly, how do you expect users to trust you? In this episode, we'll write a series of tests to confirm that our widget functionality works as expected. Once complete, we'll deploy the code to GitHub. At that point, the only remaining step […]
    Jeffrey Way
  • Rapid Laravel Package Development 01/11/2019
    In the previous episode, we tinkered around with the idea of widgets for our views. Let's now, mostly for learning purposes, extract this code into a reusable Composer package that anyone can pull in. When I need to create a new project, I always pull in Laravel Packager to expedite the setup process.
    Jeffrey Way
  • Everything You Need to Know About Dotfiles 30/10/2019
    Our first guest spotlight is Dries Vints, who works on Laravel as part of the core team. In this episode, he'll show you the ins ands out of managing and organizing dotfiles on your Mac. Have you ever reinstalled your OS, only to spend days downloading and reimplementing your preferences and settings? What if you […]
    Jeffrey Way