This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
X:\test-puphpet> vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
[default] Box 'centos64-x64-vbox43-1383512148' was not found. Fetching box from specified URL for | |
the provider 'virtualbox'. Note that if the URL does not have | |
a box for this provider, you should interrupt Vagrant now and add | |
the box yourself. Otherwise Vagrant will attempt to download the | |
full box prior to discovering this error. | |
Downloading box from URL: http://box.puphpet.com/centos64-x64-vbox43.box | |
Extracting box...ate: 153k/s, Estimated time remaining: --:--:--) | |
Successfully added box 'centos64-x64-vbox43-1383512148' with provider 'virtualbox'! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
fmt.Println("hello world") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import"fmt" | |
func main (){ | |
fmt.Print("Enter a temperature in Farenheit:") | |
var input float64 | |
fmt.Scanf("%f", &input) | |
output:= (input - 32)*5/9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import"fmt" | |
func main (){ | |
fmt.Print("Enter length in feet:") | |
var input float64 | |
fmt.Scanf("%f", &input) | |
output:= input * 0.3048 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main () { | |
for i:=1; i<=100; i++ { | |
if i % 15 == 0 { | |
fmt.Println("FizzBuzz") | |
} else if i % 3 == 0 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
var x[5]int | |
x[4] = 100 | |
fmt.Println(x) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
var x[5]float64 | |
x[0]=98 | |
x[1]=93 | |
x[2]=77 | |
x[3]=82 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
x:= [5]float64{ | |
98, | |
93, | |
77, | |
82, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
for i:=1; i<=10; i++ { | |
fmt.Println(i) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to Install OMD Nagios Server Monitor | |
### Install OMD on Monitoring Server | |
``` | |
apt-get update | |
apt-get install gdebi | |
wget http://files.omdistro.org/releases/debian_ubuntu/omd-1.10_0.precise_amd64.deb |
OlderNewer