Шпаргалка с командами Docker
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
| # Ask for the user password | |
| # Script only works if sudo caches the password for a few minutes | |
| sudo true | |
| # Install kernel extra's to enable docker aufs support | |
| # sudo apt-get -y install linux-image-extra-$(uname -r) | |
| # Add Docker PPA and install latest version | |
| # sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| # sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
Follow the installation instructions on the Airflow website.
To configure Airflow to use Postgres rather than the default Sqlite3, go to airflow.cfg and update this configuration to LocalExecutor:
# The executor class that airflow should use. Choices includeTable of Contents
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
| Создание пользователя | |
| --------------------- | |
| adduser username | |
| usermod -aG sudo username | |
| group username | |
| su username | |
| --------------------------------------- | |
| Компиляции python 3.6 | |
| ---------------------- | |
| sudo apt-get install -y make build-essential libssl-dev zlib1g-dev |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # Dependencies: | |
| # - JQ (https://stedolan.github.io/jq/) | |
| # - Termeter (https://github.com/atsaki/termeter) | |
| # Info: | |
| # Uses cryptowat API to get prices. Replace 'btcusd' in url with | |
| # the desired currency. jq parses json output and termeter draws | |
| # graph. Change 'sleep 60' for desired polling rate in seconds. | |
| while true; do echo $(curl -s 'https://api.cryptowat.ch/markets/gdax/btcusd/price' | jq -r '.result.price') ; sleep 60; done | termeter |






