mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
41
tldr/gleam
Normal file
41
tldr/gleam
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gleam
|
||||
|
||||
> The compiler, build tool, package manager and code formatter for Gleam, "a friendly language for building type-safe systems that scale!".
|
||||
> More information: <https://gleam.run/writing-gleam/command-line-reference/>.
|
||||
|
||||
- Create a new gleam project:
|
||||
|
||||
`gleam new {{project_name}}`
|
||||
|
||||
- Build and run a gleam project:
|
||||
|
||||
`gleam run`
|
||||
|
||||
- Build the project:
|
||||
|
||||
`gleam build`
|
||||
|
||||
- Run a project for a particular platform and runtime:
|
||||
|
||||
`gleam run --target {{platform}} --runtime {{runtime}}`
|
||||
|
||||
- Add a hex dependency to your project:
|
||||
|
||||
`gleam add {{dependency_name}}`
|
||||
|
||||
- Run project tests:
|
||||
|
||||
`gleam test`
|
||||
|
||||
- Format source code:
|
||||
|
||||
`gleam format`
|
||||
|
||||
- Type check the project:
|
||||
|
||||
`gleam check`
|
||||
30
tldr/linux/bwa
Normal file
30
tldr/linux/bwa
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bwa
|
||||
|
||||
> Burrows-Wheeler Alignment tool.
|
||||
> Short, low-divergent DNA sequences mapper against a large reference genome, such as the human genome.
|
||||
> More information: <https://github.com/lh3/bwa>.
|
||||
|
||||
- Index the reference genome:
|
||||
|
||||
`bwa index {{path/to/reference.fa}}`
|
||||
|
||||
- Map single-end reads (sequences) to indexed genome using 32 [t]hreads and compress the result to save space:
|
||||
|
||||
`bwa mem -t 32 {{path/to/reference.fa}} {{path/to/read_single_end.fq.gz}} | gzip > {{path/to/alignment_single_end.sam.gz}}`
|
||||
|
||||
- Map pair-end reads (sequences) to the indexed genome using 32 [t]hreads and compress the result to save space:
|
||||
|
||||
`bwa mem -t 32 {{path/to/reference.fa}} {{path/to/read_pair_end_1.fq.gz}} {{path/to/read_pair_end_2.fq.gz}} | gzip > {{path/to/alignment_pair_end.sam.gz}}`
|
||||
|
||||
- Map pair-end reads (sequences) to the indexed genome using 32 [t]hreads with [M]arking shorter split hits as secondary for output SAM file compatibility in Picard software and compress the result:
|
||||
|
||||
`bwa mem -M -t 32 {{path/to/reference.fa}} {{path/to/read_pair_end_1.fq.gz}} {{path/to/read_pair_end_2.fq.gz}} | gzip > {{path/to/alignment_pair_end.sam.gz}}`
|
||||
|
||||
- Map pair-end reads (sequences) to indexed genome using 32 [t]hreads with FASTA/Q [C]omments (e.g. BC:Z:CGTAC) appending to a compressed result:
|
||||
|
||||
`bwa mem -C -t 32 {{path/to/reference.fa}} {{path/to/read_pair_end_1.fq.gz}} {{path/to/read_pair_end_2.fq.gz}} | gzip > {{path/to/alignment_pair_end.sam.gz}}`
|
||||
29
tldr/lstopo
Normal file
29
tldr/lstopo
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lstopo
|
||||
|
||||
> Show the hardware topology of the system.
|
||||
> More information: <https://manned.org/lstopo>.
|
||||
|
||||
- Show the summarized system topology in a graphical window (or print to console if no graphical display is available):
|
||||
|
||||
`lstopo`
|
||||
|
||||
- Show the full system topology without summarizations:
|
||||
|
||||
`lstopo --no-factorize`
|
||||
|
||||
- Show the summarized system topology with only [p]hysical indices (i.e. as seen by the OS):
|
||||
|
||||
`lstopo --physical`
|
||||
|
||||
- Write the full system topology to a file in the specified format:
|
||||
|
||||
`lstopo --no-factorize --output-format {{console|ascii|tex|fig|svg|pdf|ps|png|xml}} {{path/to/file}}`
|
||||
|
||||
- Output in monochrome or greyscale:
|
||||
|
||||
`lstopo --palette {{none|grey}}`
|
||||
Reference in New Issue
Block a user