From 9e6047a02daf1fa63d2bd357a93e2e137a3fb479 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Thu, 23 May 2024 00:13:58 +0000 Subject: [PATCH] Update cheatsheets --- tldr/bru | 2 +- tldr/cabal | 2 +- tldr/deemix | 2 +- tldr/docker-machine | 2 +- tldr/dotnet-test | 22 ++++++++++++++++++++++ tldr/gcloud-info | 2 +- tldr/golangci-lint | 2 +- tldr/hub-browse | 2 +- tldr/idnits | 2 +- tldr/jdupes | 2 +- tldr/linux/xrandr | 4 ++++ tldr/linux/xset | 4 ++++ tldr/nf-core | 2 +- tldr/pnpx | 3 ++- tldr/qemu-img | 2 +- 15 files changed, 43 insertions(+), 12 deletions(-) create mode 100644 tldr/dotnet-test diff --git a/tldr/bru b/tldr/bru index 11a268a3..09efaefb 100644 --- a/tldr/bru +++ b/tldr/bru @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # bru > CLI for Bruno, an Opensource IDE for exploring and testing APIs. -> More information: . +> More information: . - Run all request files from the current directory: diff --git a/tldr/cabal b/tldr/cabal index b6cac69a..6499e387 100644 --- a/tldr/cabal +++ b/tldr/cabal @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Command-line interface to the Haskell package infrastructure (Cabal). > Manage Haskell projects and Cabal packages from the Hackage package repository. -> More information: . +> More information: . - Search and list packages from Hackage: diff --git a/tldr/deemix b/tldr/deemix index d3843e0b..744a63fb 100644 --- a/tldr/deemix +++ b/tldr/deemix @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > A barebone deezer downloader library built from the ashes of Deezloader Remix. > It can be used as a standalone CLI app or implemented in a UI using the API. -> More information: . +> More information: . - Download a track or playlist: diff --git a/tldr/docker-machine b/tldr/docker-machine index e8c28bc6..d00157ed 100644 --- a/tldr/docker-machine +++ b/tldr/docker-machine @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # docker-machine > Create and manage machines running Docker. -> More information: . +> More information: . - List currently running Docker machines: diff --git a/tldr/dotnet-test b/tldr/dotnet-test new file mode 100644 index 00000000..2486c4f0 --- /dev/null +++ b/tldr/dotnet-test @@ -0,0 +1,22 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# dotnet test + +> Execute tests for a .NET application. +> Note: View for supported filter expressions. +> More information: . + +- Execute tests for a .NET project/solution in the current directory: + +`dotnet test` + +- Execute tests for a .NET project/solution in a specific location: + +`dotnet test {{path/to/project_or_solution}}` + +- Execute tests matching the given filter expression: + +`dotnet test --filter {{Name~TestMethod1}}` diff --git a/tldr/gcloud-info b/tldr/gcloud-info index 7febb8b0..c5af8f40 100644 --- a/tldr/gcloud-info +++ b/tldr/gcloud-info @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # gcloud info > Display information about the current `gcloud` environment. -> More information: . +> More information: . - Display `gcloud` environment information: diff --git a/tldr/golangci-lint b/tldr/golangci-lint index 2d51eaa4..fe5fd446 100644 --- a/tldr/golangci-lint +++ b/tldr/golangci-lint @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # golangci-lint > Parallelized, smart and fast Go linters runner that integrates with all major IDEs and supports YAML configuration. -> More information: . +> More information: . - Run linters in the current folder: diff --git a/tldr/hub-browse b/tldr/hub-browse index c01fbf38..e1dccb12 100644 --- a/tldr/hub-browse +++ b/tldr/hub-browse @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # hub browse > Open a GitHub repository in the browser or print the URL. -> More information: . +> More information: . - Open the homepage of the current repository in the default web browser: diff --git a/tldr/idnits b/tldr/idnits index 70ace0d8..ad842bf1 100644 --- a/tldr/idnits +++ b/tldr/idnits @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Check internet-drafts for submission nits. > Looks for violations of Section 2.1 and 2.2 of the requirements listed on . -> More information: . +> More information: . - Check a file for nits: diff --git a/tldr/jdupes b/tldr/jdupes index 65c74102..0427bfac 100644 --- a/tldr/jdupes +++ b/tldr/jdupes @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # jdupes > A powerful duplicate file finder and an enhanced fork of fdupes. -> More information: . +> More information: . - Search a single directory: diff --git a/tldr/linux/xrandr b/tldr/linux/xrandr index 32c0088e..6a6f4483 100644 --- a/tldr/linux/xrandr +++ b/tldr/linux/xrandr @@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git - Set the brightness for LVDS1 to 50%: `xrandr --output {{LVDS1}} --brightness {{0.5}}` + +- Display the current state of any X server: + +`xrandr --display :{{0}} --query` diff --git a/tldr/linux/xset b/tldr/linux/xset index 938eb1bf..2df31f81 100644 --- a/tldr/linux/xset +++ b/tldr/linux/xset @@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git - Enable DPMS (Energy Star) features: `xset +dpms` + +- Query information on any X server: + +`xset -display :{{0}} q` diff --git a/tldr/nf-core b/tldr/nf-core index f7bf2f21..df6475d3 100644 --- a/tldr/nf-core +++ b/tldr/nf-core @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nf-core > The nf-core framework tools, to create, check and develop best-practice guidelines for Nextflow. -> More information: . +> More information: . - List existing pipelines on nf-core: diff --git a/tldr/pnpx b/tldr/pnpx index e2f0f5ac..a5404c18 100644 --- a/tldr/pnpx +++ b/tldr/pnpx @@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git # pnpx > Directly execute binaries from npm packages, using `pnpm` instead of `npm`. -> More information: . +> Note: This command is deprecated! Use `pnpm exec` and `pnpm dlx` instead. +> More information: . - Execute the binary from a given npm module: diff --git a/tldr/qemu-img b/tldr/qemu-img index 6d46497e..8ced30b6 100644 --- a/tldr/qemu-img +++ b/tldr/qemu-img @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # qemu-img > Create and manipulate Quick Emulator Virtual HDD images. -> More information: . +> More information: . - Create disk image with a specific size (in gigabytes):