- on macos: ** brew cask install minikube ** minikube start
- kubectl create secret generic mysql-pass --from-literal=password=YOUR_PASSWORD
package main | |
import ( | |
"bufio" | |
"context" | |
"crypto/rand" | |
"flag" | |
"fmt" | |
"io" | |
"log" |
import json | |
from json import JSONEncoder | |
class Student: | |
def __init__(self, first_name, last_name): | |
self._first_name = first_name | |
self._last_name = last_name | |
@property |
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"os" | |
"time" | |
) | |
// Card holds the card suits and types in the deck |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content="Apicart vue bundle example"> | |
<title>Vue default bundle example</title> | |
</head> | |
<body> | |
<!-- You can use custom layout. This is just for the example --> |
// A small SSH daemon providing bash sessions | |
// | |
// Server: | |
// cd my/new/dir/ | |
// #generate server keypair | |
// ssh-keygen -t rsa | |
// go get -v . | |
// go run sshd.go | |
// | |
// Client: |
package golambdainvoke | |
import ( | |
"encoding/json" | |
"errors" | |
"fmt" | |
"net/rpc" | |
"time" | |
"github.com/aws/aws-lambda-go/lambda/messages" |
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"sync" | |
"github.com/aws/aws-sdk-go/aws" |
package main | |
import ( | |
"strings" | |
"net/http" | |
"fmt" | |
"time" | |
"io/ioutil" | |
"net/url" | |
) |
package clients | |
import ( | |
"github.com/globalsign/mgo" | |
"testapp" | |
) | |
// NewSession returns a new Mongo Session. | |
func NewSession() testapp.Session { | |
mgoSession, err := mgo.Dial("localhost:27017") |