❯ crane digest cgr.dev/chainguard/python:latest
sha256:4cd9986c4e8c6c5f091a46f38f19b212e0f46a21e8e6e540596f266a123781c2
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
format = """ | |
$username\ | |
$hostname\ | |
$directory\ | |
$git_branch\ | |
$git_commit\ | |
$git_status\ | |
$git_state\ | |
$kubernetes\ | |
$golang\ |
kafkacat -b bootstrap.kafka.host:9092 \
-C -t topic \
-s avro -r http://schema-registry.host:8081 \
-f '
Key (%K bytes): %k
Value (%S bytes): %s
Timestamp: %T
Partition: %p
Offset: %o
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
{ | |
"exp": 1612718555, | |
"iat": 1612718255, | |
"auth_time": 1612717668, | |
"jti": "1546abd9-68c8-4167-a094-05bc09ca4811", | |
"iss": "https://keycloak.dungdm93.me/auth/realms/data", | |
"aud": [ | |
"realm-management", | |
"account" | |
], |
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
-- Show all databases | |
SELECT | |
database_id, | |
name, | |
create_date | |
FROM sys.databases; | |
--or using Stored Procedure | |
EXEC sp_databases; | |
-- Switch database |
SELECT
now()::TIME(0),
a.query,
p.phase,
p.blocks_total,
p.blocks_done,
plugins {
id "com.dorongold.task-tree" version "1.5"
}
task resolveDependencies {
setDescription "Resolves all projects dependencies from the repository."
setGroup "Build Server"
doLast {
Django staticfiles is the most common problem you need to solve before putting your app on the production. In this tutorial, I and you will walk through the solution options, included.
- runserver: Only in development environment.
- gunicorn: Use
gunicorn
as your app server. - nginx: Put
nginx
web server in a front of your app server (gunicorn). - whitenoise: Let your django app self-serve static files.
NewerOlder