Steps:
- edit
/etc/hostname: only 1 line with thenew-hostname
new-hostname
- edit
/etc/hosts: 2 lines
127.0.0.1 localhost new-hostname
127.0.1.1 new-hostname
| # this helps: https://github.com/pyenv/pyenv/wiki/Common-build-problems | |
| AR=/usr/bin/ar asdf install python 3.9.2 |
Steps:
/etc/hostname: only 1 line with the new-hostnamenew-hostname
/etc/hosts: 2 lines127.0.0.1 localhost new-hostname
127.0.1.1 new-hostname
Receiver vs. return value:
| Returns block result | Returns receiver | |
|---|---|---|
Receiver available as it |
let |
also |
Receiver available as this |
run |
apply |
How to read the table:
| func ip2int(ip net.IP) uint32 { | |
| if len(ip) == 16 { | |
| return binary.BigEndian.Uint32(ip[12:16]) | |
| } | |
| return binary.BigEndian.Uint32(ip) | |
| } | |
| func int2ip(nn uint32) net.IP { | |
| ip := make(net.IP, 4) | |
| binary.BigEndian.PutUint32(ip, nn) |
| # Copy and self modified from ys.zsh-theme, the one of default themes in master repository | |
| # Clean, simple, compatible and meaningful. | |
| # Tested on Linux, Unix and Windows under ANSI colors. | |
| # It is recommended to use with a dark background and the font Inconsolata. | |
| # Colors: black, red, green, yellow, *blue, magenta, cyan, and white. | |
| # http://xiaofan.at | |
| # 2 Jul 2015 - Xiaofan | |
| # Machine name. | |
| function box_name { |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Copyright (C) 2014 ADDY OSMANI <addyosmani.com> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
Press minus + shift + s and return to chop/fold long lines!