#Command
wsl -l -v
#Output example
PS C:\WINDOWS\system32> wsl -l -v
This file contains hidden or 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
DockerAppHost | DockerAppPort | AppMessage | |
---|---|---|---|
http://localhost | 5001 | Welcome to my app! I am running on http://localhost:5001 | |
http://localhost | 5002 | Welcome to my app! I am running on http://localhost:5002 | |
http://localhost | 5003 | Welcome to my app! I am running on http://localhost:5003 |
This file contains hidden or 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 import models | |
class Container(models.Model): | |
container_host = models.URLField() | |
container_port = models.PositiveIntegerField() | |
container_default_message = models.CharField( | |
max_length=255 | |
) |
This file contains hidden or 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
# ... | |
INSTALLED_APPS = [ | |
'django.contrib.admin', | |
'django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.messages', | |
'django.contrib.staticfiles', | |
'dockerman', | |
] |
This file contains hidden or 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.contrib import admin | |
from dockerman.models import Container | |
@admin.register(Container) | |
class ContainerAdmin(admin.ModelAdmin): | |
list_display = ('container_host', 'container_port', 'container_default_message') |
This file contains hidden or 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
SELECT | |
do_no, | |
SUM(amount) AS amount_agg, | |
SUM(selling_amount) AS selling_amount_agg, | |
SUM(discount_amount) AS discount_amount_agg | |
FROM order_billing | |
GROUP BY | |
do_no |
This file contains hidden or 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
SELECT * FROM table_name |
This file contains hidden or 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
SELECT * FROM my_table; |
This file contains hidden or 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
{ | |
"type": "object", | |
"title": "MyTopic", | |
"properties": { | |
"o_id": {"type": ["number", "null"], "multipleOf": 1.0}, | |
"o_sap_ts": {"type": ["string", "null"]}, | |
"o_so_key": {"type": ["string", "null"]}, | |
"o_ordertypecode": {"type": ["string", "null"]}, | |
"o_salesorderno": {"type": ["string", "null"]}, | |
"o_salesofficecode": {"type": ["string", "null"]}, |
This file contains hidden or 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 serverless | |
npm install -g serverless | |
# creating serverless project | |
serverless create \ | |
--template aws-python3 \ | |
--name serverless-etl-sap-tms \ | |
--path serverless-etl-sap-tms |