Skip to content

Instantly share code, notes, and snippets.

@GreatGodApollo
Last active April 1, 2020 23:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GreatGodApollo/71725ce655618f222c17c23e893f99fc to your computer and use it in GitHub Desktop.
Save GreatGodApollo/71725ce655618f222c17c23e893f99fc to your computer and use it in GitHub Desktop.
Testing
package main
import (
"fmt"
"os"
"strconv"
)
func main() {
for i, a := range os.Args {
fmt.Println(strconv.Itoa(i) + ": " + a)
}
}
process.argv.forEach((val, index) => {
console.log(`${index}: ${val}`);
});
#!/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
@echo off
echo Hello, World!
pwd
package main
import (
"fmt"
"time"
)
func main() {
fmt.Println("Hello,")
time.Sleep(3 * time.Second)
fmt.Println("World!")
}
console.log("Hello, World!");
#!/usr/bin/python
print("Hello, World!")
old_sync = $stdout.sync
$stdout.sync = true
puts "Hello,"
sleep 5
puts "World!"
$stdout.sync = old_sync
#!/bin/sh
echo Hello, World!
#!/usr/bin/python3
print("Hello, World!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment