| 目的 | Visual Studio Code | IntelliJ | 補足 |
|---|---|---|---|
| 行複製 | Option + Shift + ↑ or ↓ | Command + D | Option + Shift + ↑ or ↓はIntelliJでは行入れ替えのショートカットキー |
| 行削除 | Command + Shift + K Command + X ※ ※ Clipbordに登録されるので、Command + Vで貼り付けできる |
Command + Delete | |
| 行追加※行末にいない状態で追加 | Command + EnterCommand + Shift + Enter ※※ Shiftをつけてると、上に行が追加される | Shif |
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
| #!/bin/bash | |
| # setup_dev.sh - Docker を使わずに開発環境をセットアップするスクリプト | |
| echo "🚀 動画生成アプリケーションの開発環境をセットアップします" | |
| echo "このスクリプトは Python 3.10+ と Node.js 20+ がインストールされていることを前提としています" | |
| # 変数 | |
| UV_VERSION="0.6.2" | |
| POETHEPOET_VERSION="0.32.2" |
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
| use async_trait::async_trait; | |
| use reqwest::Client; | |
| use rusoto_core::Region; | |
| use rusoto_s3::{GetObjectRequest, S3Client, S3}; | |
| use std::fs::File; | |
| use std::io::{Read, Write}; | |
| use std::path::Path; | |
| use tokio::io::AsyncReadExt; | |
| use url::Url; | |
| use data_encoding::BASE64; |
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
| # Copyright IBM Corp. All Rights Reserved. | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # | |
| --- | |
| ################################################################################ | |
| # | |
| # Section: Organizations | |
| # |
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
| #!/usr/bin/env bash | |
| version=2.0.1 | |
| arch=amd64 | |
| type=linux | |
| curl -L -O https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${version}/kubebuilder_${version}_${type}_${arch}.tar.gz | |
| tar -zxvf kubebuilder_${version}_${type}_${arch}.tar.gz | |
| mkdir -p ~/.local/bin | |
| mv kubebuilder_${version}_${type}_${arch}/bin/* ~/.local/bin/ |
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
| #!/bin/bash | |
| EMAIL=<your email> | |
| DOMAIN=<your domain> | |
| apt install certbot -y | |
| certbot certonly --webroot --webroot-path /var/www/html/ --email ${EMAIL} --domain ${DOMAIN} |
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
| #!/bin/bash | |
| apt install make gcc -y | |
| git clone https://github.com/ipfs/go-ipfs.git | |
| cd go-ipfs | |
| make install | |
| ipfs init | |
| echo "hello IPFS World" > test1.txt |
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
| #!/bin/bash | |
| GO_ZIPFILE=go1.13.1.linux-amd64.tar.gz | |
| GO_URL="https://dl.google.com/go/" + ${GO_ZIPFILE} | |
| cd ~ | |
| wget ${GO_URL} | |
| tar -xvf ${GO_ZIPFILE} | |
| mv ~/go /usr/local/ |
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
| After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work. | |
| The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0." | |
| Database files have to be updated before starting the server, here are the steps that had to be followed: | |
| # need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default | |
| brew unlink postgresql | |
| brew install [email protected] | |
| brew unlink [email protected] | |
| brew link postgresql |
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
| boto==2.27 | |
| google-api-python-client==1.4.2 | |
| typedtuple==0.1.0 | |
| enum34==1.0 | |
| click>=5.1 | |
| toolz>=0.7.4 | |
| fn>=0.4.3 | |
| pytoml>=0.1.4 | |
| ruamel.yaml>=0.10.12 | |
| jsonpickle==0.9.3 |
NewerOlder