Skip to content

Instantly share code, notes, and snippets.

@Mindzy
Created April 24, 2019 06:22
Show Gist options
  • Select an option

  • Save Mindzy/1e261c938d40079b85d1f62066e734a8 to your computer and use it in GitHub Desktop.

Select an option

Save Mindzy/1e261c938d40079b85d1f62066e734a8 to your computer and use it in GitHub Desktop.

Revisions

  1. Mindzy created this gist Apr 24, 2019.
    2 changes: 2 additions & 0 deletions pull_hosts.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    (Invoke-WebRequest https://github.com/googlehosts/hosts/raw/master/hosts-files/hosts).Content.Replace("`n", "`r`n") | Out-File -Encoding ASCII "C:\Windows\System32\drivers\etc\hosts"
    Clear-DnsClientCache