sudo yum provides mysql-client
sudo yum provides mysql*
sudo yum install https://dev.mysql.com/get/mysql80-community-release-el9-4.noarch.rpm -y
sudo yum repolist
sudo yum provides mysql-community-client
sudo yum install mysql-community-client
mysql -V
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: hello-kubernetes-alb | |
| spec: | |
| type: NodePort | |
| ports: | |
| - port: 80 | |
| targetPort: 8080 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface stsInterface { | |
| [index: string]: string | |
| } | |
| const sts: stsInterface = { | |
| UserId: "AAAAAanbc:botocore-session", | |
| Account: "123456789012", | |
| Arn: "arn:aws:sts::123456789012:assumed-role/abc", | |
| Account1: "123456789012", |
# create a project dir.
$ mkdir django-lab
$ cd django-lab
# Use pipenv install django
$ pipenv install django
# activate virtualenvs use `pipenv shell`
$ pipenv shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const apple = [1,2,3,4,5] | |
| console.log('const of: ') | |
| for (const num of apple) { | |
| console.log(num) | |
| } | |
| // const of: | |
| // 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def buy_list(items: dict[str, int]): | |
| lists = [] | |
| for i in items.keys(): | |
| lists.append(f'{i}: {items.get(i)}') | |
| return '\n'.join(lists) | |
| def note(note_name, date, **items): | |
| print(f''' | |
| {note_name} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: sample-rbac-mapping | |
| namespace: default | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| kind: ClusterRole | |
| metadata: | |
| name: sample-rbac-mapping |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as path from 'path'; | |
| import * as codebuild from '@aws-cdk/aws-codebuild'; | |
| import * as codecommit from '@aws-cdk/aws-codecommit'; | |
| import * as ecr from '@aws-cdk/aws-ecr'; | |
| import * as iam from '@aws-cdk/aws-iam'; | |
| import { App, Construct, RemovalPolicy, Stack, StackProps } from '@aws-cdk/core'; | |
| export class MyStack extends Stack { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "os" | |
| "github.com/aws/aws-sdk-go-v2/aws" | |
| "github.com/aws/aws-sdk-go-v2/config" |
NewerOlder