Skip to content

Instantly share code, notes, and snippets.

@p1aton
p1aton / docker_rus.md
Created August 13, 2022 11:43 — forked from wtw24/docker_rus.md
Шпаргалка с командами Docker

Шпаргалка с командами Docker

1552317264965 1552317537397 1552317711879

1552318467562 1552318531067 1552318577900 1552318614839

@p1aton
p1aton / install.sh
Created August 11, 2022 08:55 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# 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"
@p1aton
p1aton / docker-help.md
Created August 11, 2022 08:53 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@p1aton
p1aton / GitCommitEmoji.md
Created August 11, 2022 08:50 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji

Install Airflow

1. Install Airflow

Follow the installation instructions on the Airflow website.

Update Airflow Configurations

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 include
@p1aton
p1aton / tmux-cheat-sheet.md
Created July 22, 2022 10:02 — forked from michaellihs/tmux-cheat-sheet.md
tmux Cheat Sheet
Создание пользователя
---------------------
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
@p1aton
p1aton / squad_stanford.ipynb
Created July 14, 2022 19:51 — forked from raoulbia/squad_stanford.ipynb
squad_stanford.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@p1aton
p1aton / LINKS.md
Created June 26, 2022 11:31 — forked from yagop/LINKS.md
Crytpo Links - Some links I use for crypto trading [WIP]
@p1aton
p1aton / Streaming Crytocurrency Price Graph in Terminal
Created June 26, 2022 11:29 — forked from tjw0051/Streaming Crytocurrency Price Graph in Terminal
One-liner to draw streaming graph of cryptocurrency prices in the terminal
# 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