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

29/03
Sun
weather - icon
Rain
18°C
30/03
Mon
weather - icon
Clear
11°C
31/03
Tue
weather - icon
Clouds
4°C
01/04
Wed
weather - icon
Snow
3°C
02/04
Thu
weather - icon
Clear
7°C
03/04
Fri
weather - icon
Clear
10°C
04/04
Sat
weather - icon
Clouds
13°C

Powered by OpenWeatherMap | by Phee

RSS Laracasts

  • Construct the Profile Page 27/03/2020
    Let's move on and implement a profile page for each user. This page should show their avatar, a short bio, and then a timeline their tweets. This lesson will give us the chance to flex our Tailwind chops!
    Jeffrey Way
  • Expanding the Timeline 26/03/2020
    Now that we have the necessary functionality to follow other Tweety users, we can fully expand the timeline to include all relevant posts.
    Jeffrey Way
  • Intro to Laravel Sanctum 25/03/2020
    Laravel Sanctum provides a light-weight authentication system for single-page applications and token-based APIs. In this episode, we'll review the former.
    Jeffrey Way
  • Build a Following 23/03/2020
    It wouldn't be much of a Twitter-clone if we didn't allow users to follow one another. Let's begin implementing that functionality now. View the source code for this episode on GitHub.
    Jeffrey Way
  • Make the Timeline Dynamic 21/03/2020
    Now that we have a nice - but static - layout in place, we can begin making the different sections dynamic. We'll begin with the core of our application: tweets! View the source code for this episode on GitHub.
    Jeffrey Way

Latest Tweets

  • @SinisaKovacevi6 Ma nervozan je nisu ga vodili na sisanje pa se ucebao
    17 minutes ago
  • RT @amfibolije: Pošto vidim da se ni posle dva meseca nismo razumeli po pitanju izolacije, koja se pokazala kao jedini način da se reši epi…
    4 hours ago
  • RT @Cicke69: Izvalite malog sa drvenim macem 😂👇 https://t.co/OQx2wyE2gl
    12 hours ago