Ready to commit, you fire your git status and you don’t see your files 🤔.
Use this command to ask Git what rule is causing this ignore:
$ git check-ignore -v filenameFor instance to see what rule ignores tests.pyc:
| #!/usr/bin/env python | |
| from type_checked_entities import entity_factory | |
| Giraffe = entity_factory( # let's define what is a giraffe! | |
| "giraffe", | |
| name=str, # my name is a string | |
| age=float, # my age is an int | |
| eats=object, # I eat pretty much everything. | |
| ) |
Long ago, the first time I read "The Pragmatic Programmer", I read some advice that really stuck with me.
"Don't Use Manual Procedures".
This in the chapter on Ubiquitous Automation. To summarize, they want you to automate all the things.
The trouble was that I hadn't much of an idea how to actually go
| from contextlib import ExitStack | |
| d = {index: str(index) for index in range(100)} | |
| with ExitStack() as stack: | |
| for key in d: | |
| if key % 13 == 0: | |
| stack.callback(d.pop, key) | |
| print(d) |
| import sys | |
| import pip | |
| from importlib import import_module | |
| from importlib.abc import MetaPathFinder | |
| class PipMetaPathFinder(MetaPathFinder): | |
| """A importlib.abc.MetaPathFinder to auto-install missing modules using pip | |
| """ | |
| def find_spec(fullname, path, target=None): |
| { | |
| "version": 1, | |
| "disable_existing_loggers": false, | |
| "formatters": { | |
| "simple": { | |
| "format": "%(asctime)s - %(levelname)s - %(module)s - %(message)s" | |
| }, | |
| "debug": { | |
| "format": "%(asctime)s - %(levelname)s - %(pathname)s:%(lineno)s:%(funcName)s - %(message)s" | |
| } |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # install HomeBrew | |
| brew tap caskroom/cask # install Cask | |
| brew cask install virtualbox # install VirtualBox | |
| brew install docker docker-machine # install Docker and Docker-machine | |
| docker-machine create --driver virtualbox default # create a Docker VM named "default" | |
| eval $(docker-machine env default) # set env var to tell Docker client to talk to our VM | |
| docker version # Docker works, yay! | |
| brew tap redspread/spread # tell HomeBrew where Spread is | |
| brew install kubectl spread # install Kubectl and Spread | |
| spread cluster start # ask Spread to start a k8s cluster with Docker client settings |