Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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