Sticky Posts
Categories
manual
excerpt
Post List
Shell 脚本必学技能 $1 变量详解
转载:Shell 脚本必学技能:$1 变量详解
# 特殊变量说明
Shell 脚本中常用的特殊变量及其含义
变量
含义
$0
脚本名称
$1
第一个参数
$2
第二个参数
$#
参数总数
$@
所有参数列表
# 实用案例
通过实际案例学习命令行参数的使用
goto - 快速切换目录并查看内容
1goto() { cd $1 && ls -al }
mkcd - 创建并进入新目录
1mkcd() { mkdir -p $1 && cd $1...
more...
Why Two Awaits?
repost: Why Two Awaits? -Tom Steven
I have a simple node server that demonstrates this content. The related code is all here.
You’ve seen these two await s before, right?
1234// first awaitlet response = await fetch("/some-url");// second awaitlet myObject = await...
more...
HTTP Response Header Content-Disposition
# Content-Disposition
from: atangshare/content-disposition
MDN Content-Disposition
The HTTP Content-Disposition header indicates whether content should be displayed inline in the browser as a web page or part of a web page or downloaded as an attachment locally.
The first parameter in the HTTP...
more...
How AS2 Works
repost: How AS2 Works
This guide provides a comprehensive description of the operation of the AS2 protocol.
The high level layout is broken down as follows:
How does AS2 work?
Key components of an AS2 system
Message flow in AS2
# 1 How does AS2 work?
Internal applications, first generate files...
more...
# Email Header
X-Sender: custom field corresponding to the SMTP sender.
X-Receiver: custom field corresponding to the SMTP receivers.
From: sender email address.
To: receiver email address.
Cc: this field is used by the sender to send an email to different people.
Reply-To: If a receiver replies to...
more...
OpenCV Tutorial with Python
From: opencv-course
# Reading Images & Video
12345678910111213141516171819202122232425import cv2 as cv# Reading Image# img = cv.imread('./Resources/Photos/cat.jpg')# img = cv.imread('./Resources/Photos/cat.jpg', cv.IMREAD_GRAYSCALE) # Read as Gray...
more...
Styling Tables the Modern CSS Way
repost: Styling Tables the Modern CSS Way
HTML tables are almost as old as the web itself, and have been used — and abused — for decades. Once upon a time, intrepid web designers hacked together complex layouts using tables, in the absence of other suitable methods. Thankfully that’s no longer...
more...
Command Line Data Processing Using DuckDB as a Unix Tool
repost: Command Line Data Processing: Using DuckDB as a Unix Tool
TL;DR: DuckDB’s CLI client is portable to many platforms and architectures. It handles CSV files conveniently and offers users the same rich SQL syntax everywhere. These characteristics make DuckDB an ideal tool to complement...
more...
WPF Excel to XML
resources: Welcome - The complete WPF tutorial
# Create WPF Project
dotnet new wpf -o ExcelToXML
ExceToXML.csproj
12345678910111213141516<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>WinExe</OutputType>...
more...
C# DataTable (How It Works For Developers Tutorial)
repost: C# Datatable (How It Works For Developers Tutorial) | IronPDF
Welcome to this tutorial on C# DataTables. A DataTable is a powerful data structure provided by the .NET framework, which allows you to store, manipulate, and query data in a tabular format. In this tutorial, we will explore the...
more...