あまり深く理解してないので識者のツッコミ大歓迎
取り敢えず最低限だけ
# 補完を有効にする
aws_region='ap-northeast-1' | |
endpoint="https://DOMAIN_NAME.${aws_region}.es.amazonaws.com/" | |
AWS_ACCESS_KEY_ID='foo' | |
AWS_SECRET_ACCESS_KEY='bar' | |
curl $endpoint --verbose --aws-sigv4 "aws:amz:${aws_region}:es" --user "${AWS_ACCESS_KEY_ID}:${AWS_SECRET_ACCESS_KEY}" |
// VSCodeで、エディタとターミナルを往復できるショートカットの定義 | |
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "ctrl+`", | |
"command": "workbench.action.focusActiveEditorGroup", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+`", |
import { | |
CodePipelineClient, | |
StartPipelineExecutionCommand, | |
StartPipelineExecutionCommandOutput, | |
ConflictException, | |
} from "@aws-sdk/client-codepipeline"; | |
type StartPipelineExecutionResultFailed = { | |
success: false, | |
error: Error, |
URL: https://score.beginners.seccon.jp/
今回 CTF 初挑戦だったので、やってたこと、考えてたことなどを雑にメモっていく場所。
マジで何もわかっていないで書いてるので、(これを見てしまった人向けに)正解にたどり着きたい人、参考情報を得たい人が見るような「資料」じゃないことを予め断っておく。
自分が何考えてたのかをある程度 dump したものであって、バックグラウンドを理解して書いてるものではない。
import * as path from 'path'; | |
import * as cdk from '@aws-cdk/core'; | |
import * as ddb from '@aws-cdk/aws-dynamodb'; | |
import * as apiGatewayV2 from '@aws-cdk/aws-apigatewayv2'; | |
import { LambdaProxyIntegration } from '@aws-cdk/aws-apigatewayv2-integrations'; | |
import { NodejsFunction, NodejsFunctionProps } from '@aws-cdk/aws-lambda-nodejs'; | |
import { HttpIntegration, HttpIntegrationType } from '@aws-cdk/aws-apigatewayv2'; | |
import { dirname } from 'path'; | |
const project_root_dir = path.join(dirname(__filename), '../') |
package main | |
import ( | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/session" | |
"github.com/aws/aws-sdk-go/service/lambda" | |
"github.com/aws/aws-sdk-go/service/sts" | |
) | |
func main() { |
from enum import Enum | |
from functools import wraps | |
def assert_simgle_char(f): | |
@wraps(f) | |
def inner(c: str): | |
if len(c) != 1: | |
raise ValueError(c) | |
return f(c) |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
typeSwitch := func(v interface{}) { | |
switch v.(type) { |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"sort" | |
) | |
type Person struct { |