ps
# 起動中コンテナの表示
$ docker ps
# 全コンテナの表示
$ docker ps -a
# 最後に作成されたコンテナを表示(起動状態は問わない)| package main | |
| import ( | |
| "bufio" | |
| "flag" | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "regexp" | |
| "strings" |
| { | |
| "languageModel": { | |
| "types": [ | |
| { | |
| "name": "Service", | |
| "values": [ | |
| { | |
| "id": null, | |
| "name": { | |
| "value": "イーシーツー", |
| set noautofocus | |
| set autoupdategist | |
| set cncpcompletion | |
| set linkanimation | |
| let mapleader = ',' | |
| let locale = 'jp' | |
| let barposition = "bottom" | |
| map d closeTab |
| ''' | |
| Follow these steps to configure the webhook in Slack: | |
| 1. Navigate to https://<your-team-domain>.slack.com/services/new | |
| 2. Search for and select "Incoming WebHooks". | |
| 3. Choose the default channel where messages will be sent and click "Add Incoming WebHooks Integration". | |
| 4. Copy the webhook URL from the setup instructions and use it in the next section. |
| #!/bin/bash | |
| # | |
| # description | |
| # strict mode | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| # variables | |
| readonly COMMAND_NAME=$(basename ${0}) |
| console.log('Loading function'); | |
| const https = require('https'); | |
| const url = require('url'); | |
| const slack_url = 'https://hooks.slack.com/xxxxx'; | |
| const slack_req_opts = url.parse(slack_url); | |
| slack_req_opts.method = 'POST'; | |
| slack_req_opts.headers = {'Content-Type': 'application/json'}; | |
| exports.handler = function(event, context) { |
| $ aws iam create-role --role-name "lambdaEc2Execution" --asume-role-policy-document file://lambda_role.json |