create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| // main.tf | |
| // Specify the AWS provider version | |
| provider "aws" { | |
| version = "5.64.0" | |
| region = "us-east-1" // Adjust the region as needed | |
| } | |
| // Data source to get the default VPC | |
| data "aws_vpc" "default" { |
| variable "env" { | |
| type = string | |
| default = "dev" | |
| } | |
| variable "api_host" { | |
| type = string | |
| default = "my.api.com" | |
| } |
| terraform { | |
| required_providers { | |
| aws = { | |
| source = "hashicorp/aws" | |
| version = "~> 4.0" | |
| } | |
| } | |
| } | |
| provider "aws" { |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| data := new(StripeInitParams) | |
| r.UnmarshalBody(data) | |
| data.ClientSecret = util.Config.StripeTest | |
| data.GrantType = "authorization_code" | |
| requestJson, _ := json.Marshal(data) | |
| req, _ := http.NewRequest("POST", "https://connect.stripe.com/oauth/token", bytes.NewBuffer(requestJson)) | |
| req.Header.Set("Content-Type", "application/json") | |
| func listFromInterface(x interface{})([]interface{}, error) { | |
| s := reflect.ValueOf(x); | |
| fmt.Println(s) | |
| if valueType := s.Kind(); valueType != reflect.Slice && valueType != reflect.Array && valueType != reflect.String { | |
| return nil, fmt.Errorf("Given a non-list type"); | |
| } | |
| pe := make([]interface{}, s.Len()) | |
| for i := 0; i < s.Len(); i++ { | |
| pe[i] = s.Index(i).Interface() |
| #include <stdio.h> | |
| #include <math.h> | |
| double c = 5; | |
| double x0=0.0; | |
| double y0=1.0; | |
| double f(double x, double y){ | |
| return 2 * pow(x, 2) + y; |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Registration</title> | |
| </head> | |
| <body> | |
| <header> | |
| <h1>Registration</h1> |
| wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py | |
| chmod +x speedtest-cli | |
| sudo mv speedtest-cli /usr/bin |
| xcodebuild -exportArchive -exportFormat ipa -archivePath {PATH}/MyApp.xcarchive -exportPath ~/Desktop/MyApp.ipa |