Skip to content

Commit c4603ae

Browse files
committed
Add commands
1 parent dcf02d6 commit c4603ae

5 files changed

Lines changed: 423 additions & 0 deletions

File tree

assets/commands/index.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6088,6 +6088,7 @@ qemu-system-i386.md
60886088
qemu-system-riscv64.md
60896089
qemu-system-x86_64.md
60906090
qemu.md
6091+
qgis.md
60916092
qjoypad.md
60926093
qm-agent.md
60936094
qm-cleanup.md
@@ -6855,6 +6856,7 @@ spotifyd.md
68556856
spottopgm.md
68566857
spring.md
68576858
sprio.md
6859+
sprof.md
68586860
sprofile.md
68596861
sputoppm.md
68606862
sq.md
@@ -6936,6 +6938,7 @@ steamos-readonly.md
69366938
steamos-select-branch.md
69376939
steamos-session-select.md
69386940
steamos-update.md
6941+
steamosctl.md
69396942
steghide.md
69406943
stegsnow.md
69416944
step-ca.md

assets/commands/lightpanda.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# TAGLINE
2+
3+
Headless browser designed for AI and automation
4+
5+
# TLDR
6+
7+
**Fetch a URL** and dump the rendered HTML to stdout
8+
9+
```lightpanda fetch --dump html [url]```
10+
11+
**Fetch a URL** and output as **markdown**
12+
13+
```lightpanda fetch --dump markdown [url]```
14+
15+
**Start a CDP server** on the default host and port
16+
17+
```lightpanda serve```
18+
19+
**Start a CDP server** on a specific host and port
20+
21+
```lightpanda serve --host [127.0.0.1] --port [9222]```
22+
23+
**Fetch a URL** while obeying robots.txt
24+
25+
```lightpanda fetch --obey_robots --dump html [url]```
26+
27+
**Fetch a URL** through an HTTP proxy
28+
29+
```lightpanda fetch --http_proxy [proxy_host:port] --dump html [url]```
30+
31+
# SYNOPSIS
32+
33+
**lightpanda** _command_ [_options_] [_url_]
34+
35+
# PARAMETERS
36+
37+
**fetch**
38+
> Fetch a URL, execute JavaScript, and output the rendered page content to stdout.
39+
40+
**serve**
41+
> Start a Chrome DevTools Protocol (CDP) server for remote automation via Playwright, Puppeteer, or raw CDP clients.
42+
43+
**help**
44+
> Display available commands and options.
45+
46+
**--dump** _html_|_markdown_
47+
> Output format for the fetched page. Use **html** for rendered HTML or **markdown** for a Markdown conversion. (fetch only)
48+
49+
**--with_base**
50+
> Add a **\<base\>** tag in the dumped output. (fetch only)
51+
52+
**--host** _address_
53+
> Host address for the CDP server. Default **127.0.0.1**. (serve only)
54+
55+
**--port** _port_
56+
> Port for the CDP server. Default **9222**. (serve only)
57+
58+
**--timeout** _seconds_
59+
> Inactivity timeout in seconds before disconnecting clients. Default **10**. (serve only)
60+
61+
**--obey_robots**
62+
> Fetch and obey the robots.txt of the target web pages.
63+
64+
**--http_proxy** _host:port_
65+
> HTTP proxy to use for all requests. Supports optional **username:password** for basic authentication.
66+
67+
**--http_timeout** _milliseconds_
68+
> Maximum time in milliseconds the transfer is allowed to complete. **0** means no timeout. Default **10000**.
69+
70+
**--log_level** _level_
71+
> Set logging verbosity. Default **info**. Use **debug** for detailed output.
72+
73+
**--log_format** _format_
74+
> Set log output format. Use **pretty** for human-readable output.
75+
76+
# DESCRIPTION
77+
78+
**Lightpanda** is an open-source headless browser built from scratch in **Zig** with the **V8** JavaScript engine, purpose-built for AI agents, web scraping, LLM training, and test automation. Unlike headless modes of traditional browsers, Lightpanda skips graphical rendering entirely, focusing only on DOM construction and JavaScript execution.
79+
80+
It exposes a **Chrome DevTools Protocol** (CDP) endpoint, making it compatible with existing automation tools like **Playwright**, **Puppeteer**, and **chromedp** as a drop-in replacement for headless Chrome. The **fetch** command retrieves a single URL and dumps the rendered page, while **serve** launches a persistent CDP server for remote browser control.
81+
82+
Lightpanda achieves **9x less memory usage** and **11x faster execution** compared to headless Chrome, making it particularly suited for high-volume scraping and automation workloads.
83+
84+
# CAVEATS
85+
86+
Lightpanda is in **beta** and does not yet implement the full web platform. Complex web applications that rely on advanced CSS layout, canvas, WebGL, or certain newer Web APIs may not work correctly. Windows is not natively supported; use WSL instead. As a non-Chromium browser, some sites with browser fingerprinting may behave differently.
87+
88+
# HISTORY
89+
90+
Lightpanda was created by **Francis** and **Pierre**, who previously worked on large-scale web scraping using headless Chrome and found it too resource-heavy for high-volume workloads. They spent over **two years** building a headless browser from scratch in **Zig**, choosing the language for its low-level control and performance characteristics. The project was publicly announced on **Hacker News in early 2025** and released as open source under the **AGPL-3.0** license.
91+
92+
# SEE ALSO
93+
94+
[chromium](/man/chromium)(1), [curl](/man/curl)(1), [wget](/man/wget)(1), [puppeteer](/man/puppeteer)(1)

assets/commands/qgis.md

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
# TAGLINE
2+
3+
Open-source Geographic Information System
4+
5+
# TLDR
6+
7+
**Launch QGIS**
8+
9+
```qgis```
10+
11+
**Open a specific project file**
12+
13+
```qgis --project [path/to/project.qgs]```
14+
15+
**Open QGIS with specific layers**
16+
17+
```qgis [path/to/file.shp] [path/to/raster.tif]```
18+
19+
**Export a map snapshot** to an image file
20+
21+
```qgis --snapshot [output.png] --width [1024] --height [768] --project [project.qgs]```
22+
23+
**Launch without splash screen** and without plugins
24+
25+
```qgis --nologo --noplugins```
26+
27+
**Export project layers to DXF**
28+
29+
```qgis --dxf-export [output.dxf] --project [project.qgs]```
30+
31+
**Use a specific user profile**
32+
33+
```qgis --profile [profilename]```
34+
35+
**Run a Python script on startup**
36+
37+
```qgis --code [path/to/script.py]```
38+
39+
# SYNOPSIS
40+
41+
**qgis** [_options_] [_file_ ...]
42+
43+
# PARAMETERS
44+
45+
**-p**, **--project** _projectfile_
46+
> Load the given QGIS project file.
47+
48+
**-s**, **--snapshot** _filename_
49+
> Emit a snapshot of loaded datasets to the given image file.
50+
51+
**-w**, **--width** _width_
52+
> Width of snapshot to emit.
53+
54+
**-h**, **--height** _height_
55+
> Height of snapshot to emit.
56+
57+
**-e**, **--extent** _xmin,ymin,xmax,ymax_
58+
> Set initial map extent.
59+
60+
**-n**, **--nologo**
61+
> Hide the splash screen on startup.
62+
63+
**-V**, **--noversioncheck**
64+
> Don't check for new version at startup.
65+
66+
**-P**, **--noplugins**
67+
> Don't restore plugins on startup.
68+
69+
**--nopython**
70+
> Disable Python support entirely.
71+
72+
**-B**, **--skipbadlayers**
73+
> Don't prompt for missing layers.
74+
75+
**-C**, **--nocustomization**
76+
> Don't apply GUI customization.
77+
78+
**-z**, **--customizationfile** _path_
79+
> Use given ini file as GUI customization.
80+
81+
**-f**, **--code** _path_
82+
> Run given Python file on load.
83+
84+
**--profile** _name_
85+
> Load a named profile from the profiles folder.
86+
87+
**-S**, **--profiles-path** _path_
88+
> Path to store user profile folders.
89+
90+
**-l**, **--lang** _language_
91+
> Use specified language for the interface.
92+
93+
**-d**, **--defaultui**
94+
> Reset user UI settings to default.
95+
96+
**--hide-browser**
97+
> Hide the browser widget.
98+
99+
**--dxf-export** _filename.dxf_
100+
> Emit DXF output of loaded datasets.
101+
102+
**--dxf-extent** _xmin,ymin,xmax,ymax_
103+
> Set extent for DXF export.
104+
105+
**--dxf-symbology-mode** _mode_
106+
> Symbology mode for DXF export: none, symbollayer, or feature.
107+
108+
**-v**, **--version**
109+
> Display version information and exit.
110+
111+
**--help**
112+
> Display help text.
113+
114+
# DESCRIPTION
115+
116+
**QGIS** is a cross-platform, free and open-source Geographic Information System licensed under the GNU GPLv2+. It supports viewing, editing, and analysis of geospatial data. Written primarily in C++ using the Qt framework, it features extensive Python plugin support.
117+
118+
QGIS handles vector formats (Shapefiles, GeoJSON, GML, KML, GeoPackage, PostGIS, and all OGR-supported formats), raster formats (GeoTIFF, ERDAS IMG, and all GDAL-supported formats), and database sources. It integrates with GRASS GIS for advanced analytical functions and uses GDAL/OGR for data format translation. Features include map composition, spatial analysis, digitizing, geoprocessing, and a rich plugin ecosystem.
119+
120+
For headless or batch processing, use the companion tool **qgis_process** instead.
121+
122+
# CONFIGURATION
123+
124+
User settings stored in **~/.config/QGIS/qgis.conf**. QGIS supports multiple user profiles, each with separate settings, plugins, and project templates. Use **--profile** to switch between profiles or **--profiles-path** to specify a custom profiles directory.
125+
126+
# CAVEATS
127+
128+
QGIS is primarily a GUI application; command-line usage is limited to launching with options, taking snapshots, and DXF export. Python plugins may affect startup time; use **--noplugins** or **--nopython** for faster launches. Large projects with many layers can consume significant memory. The **--configpath** option from QGIS 2.x was replaced by **--profiles-path** in QGIS 3.x.
129+
130+
# HISTORY
131+
132+
Development began in **February 2002** by **Gary Sherman** as **Quantum GIS**, initially a simple PostGIS data viewer for Linux. The first public release came in **July 2002**. It became an **OSGeo** incubator project in **2007**, and version 1.0 was released in **January 2009**. In **September 2013**, version 2.0 was released and the project was officially renamed from Quantum GIS to **QGIS**. Gary Sherman received the **Sol Katz Award** for open-source GIS contributions in **2014**.
133+
134+
# SEE ALSO
135+
136+
[gdalinfo](/man/gdalinfo)(1), [ogr2ogr](/man/ogr2ogr)(1), [ogrinfo](/man/ogrinfo)(1), [gdalwarp](/man/gdalwarp)(1), [gdal_translate](/man/gdal_translate)(1)

assets/commands/sprof.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# TAGLINE
2+
3+
Read and display shared object profiling data
4+
5+
# TLDR
6+
7+
**Set up profiling** for a shared library by running a program with profiling enabled
8+
9+
```LD_PROFILE=[libfoo.so.1] LD_PROFILE_OUTPUT=[/tmp/prof] [./myprogram]```
10+
11+
**Display flat profile and call graph** (default output)
12+
13+
```sprof [libfoo.so.1] [libfoo.so.1.profile]```
14+
15+
**Display only the flat profile**
16+
17+
```sprof -p [libfoo.so.1] [libfoo.so.1.profile]```
18+
19+
**Display only the call graph**
20+
21+
```sprof -q [libfoo.so.1] [libfoo.so.1.profile]```
22+
23+
**Display call pairs**
24+
25+
```sprof -c [libfoo.so.1] [libfoo.so.1.profile]```
26+
27+
# SYNOPSIS
28+
29+
**sprof** [_option_ ...] _shared-object-path_ [_profile-data-path_]
30+
31+
# PARAMETERS
32+
33+
**-c**, **--call-pairs**
34+
> Print a list of pairs of call paths for the interfaces exported by the shared object, along with the number of times each path is used.
35+
36+
**-p**, **--flat-profile**
37+
> Generate a flat profile of all of the functions in the monitored object, with counts and ticks.
38+
39+
**-q**, **--graph**
40+
> Generate a call graph.
41+
42+
**-?**, **--help**
43+
> Display a summary of command-line options and arguments and exit.
44+
45+
**--usage**
46+
> Display a short usage message and exit.
47+
48+
**-V**, **--version**
49+
> Display the program version and exit.
50+
51+
# DESCRIPTION
52+
53+
**sprof** displays a profiling summary for a shared object (shared library) specified as its first command-line argument. The profiling summary is created using previously generated profiling data in the optional second argument. If the profiling data path is omitted, sprof looks for a file named **\<soname\>.profile** in the current directory.
54+
55+
Profiling data is generated by setting the **LD_PROFILE** environment variable to the soname of the shared library and optionally **LD_PROFILE_OUTPUT** to a directory for the profile data file. Running any application that loads the library then causes the dynamic linker to collect profiling data automatically.
56+
57+
If none of **-c**, **-p**, or **-q** is specified, the default behavior is to display both a flat profile and a call graph.
58+
59+
# CAVEATS
60+
61+
Only one shared library can be profiled at a time via **LD_PROFILE**. Do not compile with **-pg** when using sprof; the gprof profiling flag interferes with sprof and produces zeroes for execution times. sprof is a GNU extension and is not specified by POSIX. Requires glibc 2.5-34 or newer; older versions may fail with missing internal flags.
62+
63+
# HISTORY
64+
65+
**sprof** was written by **Ulrich Drepper** as part of the **GNU C Library (glibc)**, first appearing around **glibc 2.0** in **1997**. It was created to fill the gap left by **gprof**, which cannot profile shared libraries. The profiling data collection is handled by the glibc dynamic linker itself, making sprof unique in its ability to profile shared objects without recompilation.
66+
67+
# SEE ALSO
68+
69+
[gprof](/man/gprof)(1), [ldd](/man/ldd)(1), [ld](/man/ld)(1), [perf](/man/perf)(1)

0 commit comments

Comments
 (0)