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
$fastapi dev main.py | |
INFO Using path main.py | |
INFO | |
╭─ Python module file ─╮ | |
│ │ | |
│ 🐍 main.py │ | |
│ │ | |
╰──────────────────────╯ | |
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 -v | |
v22.1.0 | |
$node --run test | |
PASS ./hello.test.js | |
✓ Hello test (1 ms) | |
Test Suites: 1 passed, 1 total | |
Tests: 1 passed, 1 total | |
Snapshots: 0 total |
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
// Production code | |
@Configuration | |
class ProdConfiguration { | |
@Bean | |
MyService customService() { | |
return new ProdServiceImpl(); | |
} | |
} |
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
$docker image build -t v2 . | |
$docker images | |
REPOSITORY TAG IMAGE ID CREATED SIZE | |
v2 latest be1d4e472288 12 minutes ago 94.4MB | |
v1 latest ea33af4a5e61 18 minutes ago 741MB |
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
$bld | |
Downloading: https://repo1.maven.org/maven2/com/uwyn/rife2/bld/1.9.0/bld-1.9.0.jar ... done | |
Downloading: https://repo1.maven.org/maven2/com/uwyn/rife2/bld/1.9.0/bld-1.9.0-sources.jar ... done | |
Welcome to bld 1.9.0. | |
The bld CLI provides its features through a series of commands that | |
perform specific tasks. The help command provides more information about | |
the other commands. | |
Usage: help [command] |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<appender name="LOKI" class="com.github.loki4j.logback.Loki4jAppender"> | |
<http> | |
<url>http://localhost:3100/loki/api/v1/push</url> | |
</http> | |
<format> | |
<label> | |
<pattern>app=${name},host=${HOSTNAME},level=%level</pattern> | |
<readMarkers>true</readMarkers> |
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
$xz --version | |
xz (XZ Utils) 5.4.6 | |
liblzma 5.4.6 | |
$brew info xz | |
==> xz: stable 5.4.6 (bottled) | |
General-purpose data compression with high compression ratio | |
https://xz.tukaani.org/xz-utils/ | |
/opt/homebrew/Cellar/xz/5.4.6 (163 files, 2.6MB) * | |
Poured from bottle using the formulae.brew.sh API on 2024-03-30 at 10:25:43 |
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
# ตัวอย่าง table | |
CREATE TABLE merchants( | |
id serial PRIMARY KEY, | |
name VARCHAR (50) UNIQUE NOT NULL, | |
email VARCHAR (50) UNIQUE NOT NULL | |
); | |
# ใช้งาน GENERATE_SERIES สำหรับสร้างข้อมูลจำนวน 10,000 rows | |
INSERT INTO merchants (name, email) | |
SELECT |
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
var builder = WebApplication.CreateBuilder(args); | |
builder.Services.AddReverseProxy() | |
.LoadFromConfig(builder.Configuration.GetSection("ReverseProxy")); | |
var app = builder.Build(); | |
app.MapReverseProxy(); | |
app.Run(); |
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
{ | |
"name": "{{$randomFullName}}", | |
"userName": "{{$randomUserName}}", | |
"location": "{{$randomCity}}", | |
"company": "{{$randomCompanyName}}", | |
"jobTitle": "{{$randomJobTitle}}", | |
"updatedAt": "{{$timestamp}}" | |
} |
NewerOlder