Running Windows 10 on AWS EC2
Downloading the image
Download the windows image you want.
AWS vmimport supported versions: Microsoft Windows 10 (Professional, Enterprise, Education) (US English) (64-bit only)
So Home wont work.
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: sftp | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: |
Download the windows image you want.
AWS vmimport supported versions: Microsoft Windows 10 (Professional, Enterprise, Education) (US English) (64-bit only)
So Home wont work.
package main | |
import ( | |
"example/pkg/temperature" | |
"fmt" | |
) | |
func main() { | |
t := convert.New(0, convert.Celsius) | |
fmt.Println(t.F()) |
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
type Game struct { | |
Welcome string |
def switch_suffix(digit): | |
switch = { | |
1: "st", | |
2: "nd", | |
3: "rd", | |
} | |
return switch.get(digit % 10, "th") | |
ordinals = [i+1 for i in range(10)] |
>>> ",".join("get all the words as a list then make them a csv".split())
'get,all,the,words,as,a,list,then,make,them,a,csv'
//assumes you have the following environment variables setup for AWS session creation | |
// AWS_SDK_LOAD_CONFIG=1 | |
// AWS_ACCESS_KEY_ID=XXXXXXXXXX | |
// AWS_SECRET_ACCESS_KEY=XXXXXXXX | |
// AWS_DEFAULT_REGION=us-east-1 | |
package main | |
import ( | |
"fmt" |
There are three easy to make mistakes in go. I present them here in the way they are often found in the wild, not in the way that is easiest to understand.
All three of these mistakes have been made in Kubernetes code, getting past code review at least once each that I know of.
What do these lines do? Make predictions and then scroll down.
func print(pi *int) { fmt.Println(*pi) }
$ perl -MMail::RFC822::Address=valid -e 'valid("example@example.com")'
$ echo $?
0
$
KSP found at c:/program files (x86)/steam/SteamApps/common/Kerbal Space Program | |
KSP Version: 0.90.0 | |
Installed Modules: | |
- CollisionFX 2.2 | |
- CommunityResourcePack 0.3.3 | |
- DistantObject v1.5.2 | |
- DistantObject-default v1.5.2 |