This file contains 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
from django.db.models import signals | |
# list_model_receivers(Model_Name) | |
# e.g. | |
# >>> list_model_receivers(MyModel) | |
def list_model_receivers(model): | |
for k, v in vars(signals).items(): | |
if not isinstance(v, signals.ModelSignal): |
This file contains 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
#!/bin/bash | |
# INPUT: | |
# ENV Variables: | |
# DOCKER_USERNAME | |
# DOCKER_PASSWORD | |
# IMAGE_NAME | |
# IMAGE_TAG | |
# OUTPUT: |
This file contains 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
concurrent = 2 | |
check_interval = 2 | |
[[runners]] | |
name = "gcp-runner" | |
url = "https://gitlab.com/" | |
token = "xxxxxx" | |
executor = "docker" | |
[runners.docker] | |
tls_verify = false |
This file contains 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
get python dependency graph | |
install snake food | |
sudo apt-get install snakefood | |
http://furius.ca/snakefood/ | |
install graphviz |
64.233.160.0/19
66.102.0.0/20
66.249.80.0/20
72.14.192.0/18
74.125.0.0/16
108.177.8.0/21
I hereby claim:
- I am jubel-han on github.
- I am jubel (https://keybase.io/jubel) on keybase.
- I have a public key ASAaHVEZ611Q8vwk8DToz6J5aD9h1wq9vwQD34k1T1PZwQo
To claim this, I am signing this object:
This file contains 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
node { | |
stage 'Checkout and Build' | |
createVirtualEnv 'env' | |
executeIn 'env', 'pip install -r requirements.txt' | |
executeIn 'env', './manage.py test' | |
executeIn 'env', './manage.py integration-test' | |
virtualEnv('true') | |
runCmd('pip install -r requirements.txt') |
NewerOlder