Skip to content

Instantly share code, notes, and snippets.

@Diligens
Diligens / gist:ed4cd24030bb712258ea49f56e754b4a
Last active December 4, 2018 04:35
Change Hostname in Ubuntu
1. hostname NEW_NAME_HERE
This will change the hostname until next reboot.
The change won’t be visible immediately in your current terminal. Start a new terminal to see the new hostname.
2. To change the name permanently, run command to edit the host files:
sudo gedit /etc/hostname /etc/hosts
1
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
@Diligens
Diligens / forIE8
Created May 19, 2016 14:03
Use this code in html documents make Internet Explorer 8 and old versions understanding HTML5 syntax
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->