備忘用 あとで時間があったら埋めてく
Java/Scala
mvn
mvn archetype:generate -DgroupId=my.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart \
-DarchetypeVersion=1.4 -DinteractiveMode=false
gradle
# create project
mkdir prj && cd prj
gradle init -type java-application
sbt
sbt new scala/scala-seed.g8
cd <prj dir>
sbt new clean compile
sbt run
Python
poetry
poetry init
poetry add
poetry install
poetry run
pyenv
pyenv install v2.7.10
pyenv virtualenv v2.7.10 <env-name>
pyenv activate <env-name>
pyenv deactive
pipenv
# install
sudo pip install --upgrade pip
pip3 install pipenv
# setup
pipenv install -three
pipenv install <package>
# setup by requirements.txt
pipenv install --three -r requirements.txt
# activate
pipenv shell
# exit
deactive
exit
Jupyter
# start
jupyter notebook
# show list
jupyter notebook list
JS
npm
# setup (initialize)
npm init
# install
npm install
# run script
npm run xxxx
# version check
npm outdated
# ci
npm ci
## if use webpack
npm install -D npx
npm install -D webpack webpack-cli
webpack
# setup (initialize)
npx webpack init
# run
npx webpack --config webpack.config.js
# configuration package.json
vi package.json
scripts: { "build": "webpack" }
npm run build
rollup
C++
gyp
make
cmake
cmake -Gninja
golang
linter
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.20.0
go mod
go mod init github.com/myrepo/package
# dependency
go mod download
# vedoring
go mod vendor
configuration, develop tools
sudo apt install direnv
go get github.com/oxequa/realize
glide deprecated
glide install
glide get <package name>
dep deprecated
dep init
dep ensure
dep ensure -add <package name>
dep status
Haskell
setup platform
sudo apt install haskell-platform
# `.
# |- ghc
# |- cabal
# |- stack
# `- and more
sudo apt install haskell-stack
see https://www.haskell.org/platform/
stack
cabal
Others
Emacs
C++
VSCode
lang in
Optout
- 設定> Search "telemetry.enabledTelemetry" > ユーザー設定 "telemetry.enabledTelemetry": false
Vagrant
# add box
$ vagrant box add {title} {url}
$ vagrant init {title}
$ vagrant up
Configuration Management
Ansible
EXT_VAR1="" EXT_VAR2=0.1 ansible-playbook -i hosts investory_file.yml --extra-vars="show_debug=on"
Terraform
$ terrafrom init
$ terraform plan
$ terraform apply
$ terraform destroy