Have tested these steps successfully with Ubuntu 18.04LTS
and 16.04LTS
guests using VirtualBox 6.1
, 6.0
, 5.2
and 5.1
as host.
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
# install_certifi.py | |
# | |
# sample script to install or update a set of default Root Certificates | |
# for the ssl module. Uses the certificates provided by the certifi package: | |
# https://pypi.python.org/pypi/certifi | |
import os | |
import os.path | |
import ssl | |
import stat |
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.core import serializers | |
from myproject.myapp import models | |
data = serializers.serialize("json", models.MyModel.objects.all()) | |
out = open("dump.json", "w") | |
out.write(data) | |
out.close() |
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
#!/usr/bin/env bash | |
# docker hub username | |
USERNAME=marcosricardoss | |
# image name | |
IMAGE=helloworld | |
docker build -t $USERNAME/$IMAGE:latest . | |
# make it executable with chmod a+x ./build.sh |
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
# MY DEFAULT .GITIGNORE FILE | |
# Project files and directories | |
/static/ | |
/tmp/ | |
/media/ | |
/mysql/ | |
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] |
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
version: '3.2' | |
services: | |
swagger-editor: | |
container_name: swagger-editor | |
restart: always | |
image: swaggerapi/swagger-editor | |
ports: | |
- "8080:8080" | |
environment: | |
SWAGGER_FILE: /tmp/openapi/openapi.yaml |
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
version: '3.2' | |
services: | |
portainer.io: | |
container_name: portainer.io | |
restart: always | |
image: portainer/portainer | |
ports: | |
- "9000:9000" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock |
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
# The command finds the most recent tag that is reachable from a commit. | |
# If the tag points to the commit, then only the tag is shown. | |
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
# and the abbreviated object name of the most recent commit. | |
git describe | |
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
git describe --abbrev=0 | |
# other examples |
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
feat: add hat wobble | |
^--^ ^------------^ | |
| | | |
| +-> Summary in present tense. | |
| | |
+-------> Type: chore, docs, feat, fix, refactor, style, or test. | |
chore: add Oyster build script | |
docs: explain hat wobble |
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
git clone --single-branch --branch features/name https://github.com/username/reponame |
NewerOlder