lscpu | grep -i VirtualizationVT-xfor IntelAMD-Vifor AMD
| vi: | |
| devise: | |
| confirmations: | |
| confirmed: Xác nhận tài khoản thành công! | |
| send_instructions: Bạn sẽ nhận được email hướng dẫn xác nhận tài khoản trong vài phút nữa. | |
| send_paranoid_instructions: Nếu email của bạn có trong hệ thống, bạn sẽ nhận được email hướng dẫn xác nhận tài khoản trong một vài phút nữa. | |
| failure: | |
| already_authenticated: Bạn đã đăng nhập. | |
| inactive: Tài khoản của bạn chưa được kích hoạt. | |
| invalid: "%{authentication_keys} hoặc mật khẩu không hợp lệ." |
| " Install Vim | |
| " sudo apt-get install vim | |
| " Install Vundle | |
| " git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
| " $ vim | |
| " $ :PluginInstall | |
| set shell=/bin/bash | |
| set nocompatible | |
| set encoding=utf-8 | |
| set fileencodings=urf-8 |
For VM instance, it's essential that:
compute API should be enabled gcloud services enable compute.googleapis.comzone and machine-type are required in order to create a VM instance--metadata={{ attribute name }}={{ attribute value }} which then can be retrieved by curl -H "Metadata-Flavor: Google" http://http://metadata.google.internal/computeMetadata/v1/instance/attributes/{{ attribute name }} while inside the instance.--metadata-from-file startup-script={{ Relative path to the startup script }}. But, do remember, startup-script is just an attribute so we can also do --metadata startup-script='...'. startup-script can be read by curl -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/attributes/startup-scriptvar Trix = require("trix")
require("@rails/actiontext")
Trix.config.blockAttributes.heading2 = {
tagName: 'h2',
terminal: true,
breakOnReturn: true,
group: false
}| # In deploy.rb | |
| # require_relative '../lib/mina/local_assets/tasks' | |
| # ... | |
| # task :deploy do | |
| # # uncomment this line to make sure you pushed your local branch to the remote origin | |
| # # invoke :'git:ensure_pushed' | |
| # invoke :'local_assets:clobber' | |
| # invoke :'local_assets:precompile' | |
| # invoke :'local_assets:sync_to_remote_tmp' | |
# docker/webapp/Dockerfile
FROM ruby:2.6.6
SHELL ["/bin/bash", "-c"]
RUN apt-get update -qq && apt-get install -y postgresql-client memcached tzdata nano
# Install node 12, yarn
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list