Last active
May 5, 2020 19:44
-
-
Save GreatGodApollo/00d91bfb540b8bc0169606b4d4f740a3 to your computer and use it in GitHub Desktop.
Apollo's Gist Repository
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 fizzbuzz(num int) { | |
if num%3 == 0 && num%5 == 0 { | |
fmt.Println("FizzBuzz") | |
} else if num%5 == 0 { | |
fmt.Println("Buzz") | |
} else if num%3 == 0 { | |
fmt.Println("Fizz") | |
} else { | |
fmt.Println(num) | |
} | |
} | |
func main() { | |
for i := 1; i < 100; i++ { | |
fizzbuzz(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
@echo off | |
git init | |
go mod init %1 |
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
#!/bin/bash | |
sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list << EOF | |
deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.2 main | |
EOF | |
sudo tee /etc/apt/sources.list.d/pritunl.list << EOF | |
deb http://repo.pritunl.com/stable/apt stretch main | |
EOF | |
sudo apt-get install dirmngr | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv E162F504A20CDF15827F718D4B7C549A058F8B6B | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A | |
sudo apt-get update | |
sudo apt-get --assume-yes install pritunl mongodb-server | |
sudo systemctl start mongodb pritunl | |
sudo systemctl enable mongodb pritunl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment