Skip to content

Instantly share code, notes, and snippets.

View quantranld's full-sized avatar
🐰

Quan Tran quantranld

🐰
  • Vietnam
View GitHub Profile
# --- GENERAL SETTINGS ---
# This is windows so plugins - tpm won't work
set -g mouse on # Enable mouse clicking, resizing, and scrolling
set -g base-index 1 # Start windows at 1 instead of 0
setw -g pane-base-index 1 # Start panes at 1 instead of 0
set -g renumber-windows on # Automatically renumber windows when one is closed
setw -g mode-keys vi # Use vi keys in copy mode and menus

Key Points

  • Ford Territory 2025 và Lynk & Co 06 có sự khác biệt rõ rệt về kích thước, động cơ và tiện nghi, phù hợp với nhu cầu khác nhau.
  • Ford Territory có nhiều phiên bản (Trend, Titanium, Sport, Titanium X) với giá từ 759–889 triệu VND (dựa trên 2022), trong khi Lynk & Co 06 chỉ có một phiên bản với giá 729 triệu VND.
  • Research suggests Ford Territory 2025 có không gian rộng hơn, phù hợp cho gia đình, còn Lynk & Co 06 tiết kiệm nhiên liệu hơn với mức tiêu thụ 6.4 lít/100km.
  • Sự lựa chọn phụ thuộc vào nhu cầu cá nhân, với Ford Territory linh hoạt hơn nhờ nhiều phiên bản, còn Lynk & Co 06 đơn giản với một lựa chọn duy nhất.

So sánh tổng quan

Ford Territory 2025 và Lynk & Co 06 là hai mẫu SUV thuộc phân khúc khác nhau, với Ford Territory nhắm đến phân khúc C-crossover và Lynk & Co 06 thuộc phân khúc SUV cỡ B. Dưới đây là so sánh chi tiết giúp bạn dễ dàng nhận biết sự khác biệt.

@quantranld
quantranld / linux funny commands
Last active August 8, 2021 14:20
Some common function with file and folder when using linux
#!/bin/bash
# search for pattern and rename it by adding 0 upfront
# ex '1. something' will be '01. something'
# bypass stupid sort
DELIMITER='.'
SEARCH_PATTERN=$1
if [[ -z $SEARCH_PATTERN ]]; then
# echo 'error: search pattern must be provided'
{
"workbench.startupEditor": "newUntitledFile",
"files.insertFinalNewline": true,
"editor.minimap.enabled": false,
"editor.cursorBlinking": "phase",
"editor.renderWhitespace": "all",
"php-cs-fixer.lastDownload": 1619311967413,
"php-cs-fixer.executablePath": "${extensionPath}/php-cs-fixer.phar",
"php-cs-fixer.config": "/home/vuongtran/.phpcsfixer",
"php-cs-fixer.formatHtml": true,
@quantranld
quantranld / swaggerUI
Created March 16, 2021 08:12
swagger ui for virtual path
app.UseSwaggerUI(
options =>
{
// build a swagger endpoint for each discovered API version
foreach (var description in provider.ApiVersionDescriptions)
{
options.SwaggerEndpoint($"../swagger/{description.GroupName}/swagger.json", description.GroupName.ToUpperInvariant());
}
});
Here is the fix to make it quick.
Add new User
adduser developer
# password@7
usermod -aG sudo developer
su - developer
Login to the newly created User
su - developer
# password@7
@quantranld
quantranld / dotnet ef
Last active June 14, 2020 07:56
EF Core Migrations commands
// add migration
dotnet ef migrations add CreatingIdentityScheme --project .\IdentityByExamples\IdentityByExamples.csproj
// update db
dotnet ef database update --project .\IdentityByExamples\IdentityByExamples.csproj
@quantranld
quantranld / outlook.html
Created February 6, 2020 07:11
mail template outlook
<!-- Button : Begin -->
<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" style="margin: auto;">
<tr>
<td style="border-radius: 3px; background: #a52023; text-align: center;">
<a href="http://www.google.com" style="background: #a52023; border: 15px solid #a52023; font-family: tahoma; font-weight: 900; letter-spacing: 2px; font-size: 16px; mso-height-rule: exactly; line-height: 60px; text-align: center; text-decoration: none; display: block; border-radius: 3px; font-weight: 900; text-transform: uppercase;">
&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#ffffff">Get Free Workwear</span>&nbsp;&nbsp;&nbsp;&nbsp;
</a>
</td>
</tr>
</table>
@quantranld
quantranld / template-form-validation.ts
Last active December 3, 2019 02:33
angular tips & tricks
// work around to trigger angular form control validation - template form
// [formName], [formControlName]
this.formName.form.controls.formControlName.markAsDirty();
this.formName.form.controls.formControlName.updateValueAndValidity();
@quantranld
quantranld / Autoface manuall get service.md
Last active November 13, 2019 06:23
Autoface manuall get service

No scope with a Tag matching 'AutofacWebRequest, work' is visible from the scope in which the instance was requested. This generally indicates that a component registered as per-HTTP request is being requested by a SingleInstance() component (or a similar scenario.) Under the web integration always request dependencies from the DependencyResolver.Current or ILifetimeScopeProvider.RequestLifetime, never from the container itself.

Configuration.DependencyResolver

.BeginScope() // cuz the resolver is lifetimescope and the below controller is per-http request scope, then there must be a new scope comes along with it

.GetService(typeof(ReportViewController)) as ReportViewController;