See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| version: '2.2' | |
| services: | |
| es01: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:7.12.0 | |
| container_name: es01 | |
| environment: | |
| - node.name=es01 | |
| - cluster.name=es-docker-cluster | |
| - discovery.seed_hosts=es02,es03 | |
| - cluster.initial_master_nodes=es01,es02,es03 |
| """ | |
| Compare two Excel sheets | |
| Inspired by https://pbpython.com/excel-diff-pandas-update.html | |
| For the documentation, download this file and type: | |
| python compare.py --help | |
| """ | |
| import argparse | |
| import pandas as pd |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| """ | |
| Django ORM Optimization Tips | |
| Caveats: | |
| * Only use optimizations that obfuscate the code if you need to. | |
| * Not all of these tips are hard and fast rules. | |
| * Use your judgement to determine what improvements are appropriate for your code. | |
| """ | |
| # --------------------------------------------------------------------------- |
| # i3 config file (v4) | |
| # | |
| # Please see https://i3wm.org/docs/userguide.html for a complete reference! | |
| # Some colors | |
| # Argonaut colors | |
| # Black / Bright Black | |
| set $color0 #232323 | |
| set $color8 #444444 |
| import sys | |
| from PyQt5 import QtCore, QtWidgets | |
| class MainWindow(QtWidgets.QWidget): | |
| switch_window = QtCore.pyqtSignal(str) | |
| def __init__(self): | |
| QtWidgets.QWidget.__init__(self) |
| FROM python:3.4 | |
| ADD . /app/ | |
| WORKDIR /app/ | |
| RUN pip install -r requirements.txt | |
| CMD ["echo", "hello"] |
| # -*- coding: utf-8 -*- | |
| # this file is released under public domain and you can use without limitations | |
| # ------------------------------------------------------------------------- | |
| # Sample shopping cart implementation. | |
| # ------------------------------------------------------------------------- | |
| import traceback | |
| def index(): |
| #!/bin/bash | |
| ################################################################ | |
| # Install a printer on Arch Linux with cups using command line # | |
| # Used for a HP PSC 1510 with default driver # | |
| ################################################################ | |
| sudo pacman -S cups | |
| sudo systemctl start org.cups.cupsd |
| #!/bin/bash | |
| # https://docs.docker.com/engine/installation/linux/ubuntulinux/ | |
| sudo apt-get update | |
| sudo apt-get -y install apt-transport-https ca-certificates | |
| sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
| sudo bash -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list' | |
| sudo apt-get update | |
| sudo apt-get -y install linux-image-extra-$(uname -r) | |
| sudo apt-get -y install docker-engine |