This file contains 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
Description: Generic AWS VPC Networking | |
Parameters: | |
PrivateToInternetAccess: | |
Type: String | |
Description: If true, NAT Gateways and Elastic IPs will be created for the internet access from private subnets. | |
AllowedValues: | |
- "false" | |
- "true" | |
Default: "false" | |
CidrPrefix: |
This file contains 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
// workaround: when webpack resolve.alias not working | |
import * as VueAll from "vue"; | |
import VueDefault from "vue"; | |
export type Vue = VueDefault; | |
export const Vue = <typeof VueDefault><any>VueAll; | |
import * as VueRouterAll from "vue-router"; | |
import VueRouterDefault from "vue-router"; | |
export type Router = VueRouterDefault; |
This file contains 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
new Array(20).fill(undefined).map(() => {const chars = 'qwertyuiopasdfghjklzxcvbnm1234567890!@#$%^&*()-_=+[{]};:/?'.split(''); return chars[Math.floor(Math.random() * chars.length)]}).join(''); |
This file contains 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
// ... | |
"apps": [ | |
{ | |
"platform": "browser", | |
"root": "src", | |
"outDir": "dist/browser", | |
// ... | |
{ | |
"platform": "server", | |
"root": "src", |
This file contains 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
String(42, radix: 16) // => "2a" |
This file contains 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
4 |-------|-------|-------|------- | |
8 |---|---|---|---|---|---|---|--- | |
16 |-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|- | |
32 |||||||||||||||||||||||||||||||| | |
*** * *** * *** * *** * *** * ** | |
* * *** * *** * *** * *** * *** | |
* *** * *** * *** * *** * *** * |
This file contains 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
$ awsprice listOfferRegions -o AmazonEFS | |
[]awsprice.RegionCode{ | |
"ap-southeast-2", | |
"eu-west-1", | |
"us-east-1", | |
"us-east-2", | |
"us-west-2", | |
} |
This file contains 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 region = process.env["AWS_REGION"] || "us-east-1"; | |
const instanceType = process.env["INSTANCE_TYPE"] || "c4.large"; | |
const tenancy = process.env["TENANCY"] || "Shared"; | |
const operatingSystem = process.env["OPERATING_SYSTEM"] || "Linux"; | |
const offerType = process.env["OFFER_TYPE"] || "OnDemand"; | |
// ↑フィルター条件をenvで指定してね | |
const axios = require("axios"); |
This file contains 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
$ aws s3 sync s3://cfn-staticweb-example/ . |
This file contains 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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "ctrl+a", | |
"command": "cursorHome", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+a", | |
"command": "cursorHomeSelect" |