Skip to content

Instantly share code, notes, and snippets.

@shockalotti
shockalotti / gist:8226198
Last active January 2, 2016 00:49
puphpet vagrant output
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'!
@shockalotti
shockalotti / Go golang - first program
Last active August 29, 2015 14:01
Go Golang - First program
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
@shockalotti
shockalotti / Go golang - calculate degrees
Last active August 29, 2015 14:01
Go Golang - Calculate degrees celcius from farenheit
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
@shockalotti
shockalotti / Go golang - calculate meters
Created May 14, 2014 02:42
Go golang - calculate meters
package main
import"fmt"
func main (){
fmt.Print("Enter length in feet:")
var input float64
fmt.Scanf("%f", &input)
output:= input * 0.3048
@shockalotti
shockalotti / Go golang - print multiples of 3 and 5
Created May 14, 2014 02:50
Go golang - print multiples of 3 and 5
package main
import "fmt"
func main () {
for i:=1; i<=100; i++ {
if i % 15 == 0 {
fmt.Println("FizzBuzz")
} else if i % 3 == 0 {
@shockalotti
shockalotti / Go golang - basic array
Created May 14, 2014 02:53
Go golang - basic array
package main
import "fmt"
func main() {
var x[5]int
x[4] = 100
fmt.Println(x)
}
@shockalotti
shockalotti / Go golang - average array of 5 numbers
Created May 14, 2014 02:55
Go golang - average array of 5 numbers
package main
import "fmt"
func main() {
var x[5]float64
x[0]=98
x[1]=93
x[2]=77
x[3]=82
@shockalotti
shockalotti / Go golang - average array of 5 numbers (more efficient)
Last active March 3, 2021 14:40
Go golang - average array of 5 numbers (more efficient)
package main
import "fmt"
func main() {
x:= [5]float64{
98,
93,
77,
82,
@shockalotti
shockalotti / Go Golang - simple for loop
Last active August 29, 2015 14:01
Go Golang - Simple For loop
package main
import "fmt"
func main() {
for i:=1; i<=10; i++ {
fmt.Println(i)
}
}
@shockalotti
shockalotti / Summary instructions
Last active August 29, 2015 14:01
How to Install OMD & Nagios Server Monitor on Ubuntu
# 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