mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 22:59:13 +00:00
Update cheatsheets
This commit is contained in:
@@ -11,8 +11,8 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Display the physical size of an Android device's screen:
|
- Display the physical size of an Android device's screen:
|
||||||
|
|
||||||
`wm {{size}}`
|
`wm size`
|
||||||
|
|
||||||
- Display the physical density of an Android device's screen:
|
- Display the physical density of an Android device's screen:
|
||||||
|
|
||||||
`wm {{density}}`
|
`wm density`
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# dolt sql
|
# dolt sql
|
||||||
|
|
||||||
> Run a SQL query. Multiple SQL statements must be separated by semicolons.
|
> Run an SQL query. Multiple SQL statements must be separated by semicolons.
|
||||||
> More information: <https://docs.dolthub.com/cli-reference/cli#dolt-sql>.
|
> More information: <https://docs.dolthub.com/cli-reference/cli#dolt-sql>.
|
||||||
|
|
||||||
- Run a single query:
|
- Run a single query:
|
||||||
|
|||||||
@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`dotnet ef migrations list`
|
`dotnet ef migrations list`
|
||||||
|
|
||||||
- Generate a SQL script from migrations range:
|
- Generate an SQL script from migrations range:
|
||||||
|
|
||||||
`dotnet ef migrations script {{from_migration}} {{to_migration}}`
|
`dotnet ef migrations script {{from_migration}} {{to_migration}}`
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`duckdb -c "{{SELECT * FROM 'data_source.[csv|csv.gz|json|json.gz|parquet]'}}"`
|
`duckdb -c "{{SELECT * FROM 'data_source.[csv|csv.gz|json|json.gz|parquet]'}}"`
|
||||||
|
|
||||||
- Run a SQL script:
|
- Run an SQL script:
|
||||||
|
|
||||||
`duckdb -c ".read {{path/to/script.sql}}"`
|
`duckdb -c ".read {{path/to/script.sql}}"`
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# fastboot
|
# fastboot
|
||||||
|
|
||||||
> Communicate with connected Android devices when in bootloader mode (the one place `adb` doesn't work).
|
> Communicate with connected Android devices when in bootloader mode (the one place ADB doesn't work).
|
||||||
> More information: <https://cs.android.com/android/platform/superproject/+/main:system/core/fastboot>.
|
> More information: <https://cs.android.com/android/platform/superproject/+/main:system/core/fastboot>.
|
||||||
|
|
||||||
- Unlock the bootloader:
|
- Unlock the bootloader:
|
||||||
@@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`fastboot flash recovery {{path/to/file.img}}`
|
`fastboot flash recovery {{path/to/file.img}}`
|
||||||
|
|
||||||
- Display connected devices:
|
- List connected devices:
|
||||||
|
|
||||||
`fastboot devices`
|
`fastboot devices`
|
||||||
|
|
||||||
|
|||||||
@@ -5,18 +5,18 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# fdroidcl
|
# fdroidcl
|
||||||
|
|
||||||
> F-Droid CLI client.
|
> Manage F-Droid apps of devices connected via ADB.
|
||||||
> More information: <https://github.com/mvdan/fdroidcl>.
|
> More information: <https://github.com/mvdan/fdroidcl>.
|
||||||
|
|
||||||
- Fetch the F-Droid index:
|
- Fetch the F-Droid index:
|
||||||
|
|
||||||
`fdroidcl update`
|
`fdroidcl update`
|
||||||
|
|
||||||
- Display info about an app:
|
- Display information about an app:
|
||||||
|
|
||||||
`fdroidcl show {{app_id}}`
|
`fdroidcl show {{app_id}}`
|
||||||
|
|
||||||
- Download an APK file:
|
- Download the APK file of an app:
|
||||||
|
|
||||||
`fdroidcl download {{app_id}}`
|
`fdroidcl download {{app_id}}`
|
||||||
|
|
||||||
@@ -27,3 +27,11 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
- Install an app on a connected device:
|
- Install an app on a connected device:
|
||||||
|
|
||||||
`fdroidcl install {{app_id}}`
|
`fdroidcl install {{app_id}}`
|
||||||
|
|
||||||
|
- Add a repository:
|
||||||
|
|
||||||
|
`fdroidcl repo add {{repo_name}} {{url}}`
|
||||||
|
|
||||||
|
- Remove, enable or disable a repository:
|
||||||
|
|
||||||
|
`fdroidcl repo {{remove|enable|disable}} {{repo_name}}`
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# gcloud sql export sql
|
# gcloud sql export sql
|
||||||
|
|
||||||
> Export data from a Cloud SQL instance to a SQL file in Google Cloud Storage.
|
> Export data from a Cloud SQL instance to an SQL file in Google Cloud Storage.
|
||||||
> Useful for creating backups or migrating data. See also: `gcloud`.
|
> Useful for creating backups or migrating data. See also: `gcloud`.
|
||||||
> More information: <https://cloud.google.com/sdk/gcloud/reference/sql/export/sql>.
|
> More information: <https://cloud.google.com/sdk/gcloud/reference/sql/export/sql>.
|
||||||
|
|
||||||
- Export data from a specific Cloud SQL instance to a Google Cloud Storage bucket as a SQL dump file:
|
- Export data from a specific Cloud SQL instance to a Google Cloud Storage bucket as an SQL dump file:
|
||||||
|
|
||||||
`gcloud sql export sql {{instance}} gs://{{bucket_name}}/{{file_name}}`
|
`gcloud sql export sql {{instance}} gs://{{bucket_name}}/{{file_name}}`
|
||||||
|
|
||||||
|
|||||||
26
tldr/linux/aur
Normal file
26
tldr/linux/aur
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, linux]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# aur
|
||||||
|
|
||||||
|
> Build packages from the AUR and manage local repositories.
|
||||||
|
> Note: A local repository needs to be set in `/etc/pacman.conf` and `vifm` needs to be installed for this to fully function.
|
||||||
|
> More information: <https://github.com/aurutils/aurutils>.
|
||||||
|
|
||||||
|
- Search the AUR database for a package:
|
||||||
|
|
||||||
|
`aur search {{keyword}}`
|
||||||
|
|
||||||
|
- Download a package and its dependencies from AUR, build them and add them to a local repository:
|
||||||
|
|
||||||
|
`aur sync {{package}}`
|
||||||
|
|
||||||
|
- [l]ist packages available in your local repository:
|
||||||
|
|
||||||
|
`aur repo --list`
|
||||||
|
|
||||||
|
- [u]pgrade local repository packages:
|
||||||
|
|
||||||
|
`aur sync --upgrades`
|
||||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
> DNS enumeration tool.
|
> DNS enumeration tool.
|
||||||
> More information: <https://github.com/darkoperator/dnsrecon>.
|
> More information: <https://github.com/darkoperator/dnsrecon>.
|
||||||
|
|
||||||
- Scan a domain and save the results to a SQLite database:
|
- Scan a domain and save the results to an SQLite database:
|
||||||
|
|
||||||
`dnsrecon --domain {{example.com}} --db {{path/to/database.sqlite}}`
|
`dnsrecon --domain {{example.com}} --db {{path/to/database.sqlite}}`
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
`mysqlsh --user {{username}} --host {{hostname}} --port {{port}}`
|
`mysqlsh --user {{username}} --host {{hostname}} --port {{port}}`
|
||||||
|
|
||||||
- Execute a SQL statement on the server and exit:
|
- Execute an SQL statement on the server and exit:
|
||||||
|
|
||||||
`mysqlsh --user {{username}} --execute '{{sql_statement}}'`
|
`mysqlsh --user {{username}} --execute '{{sql_statement}}'`
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
> Execute SQL against structured text like csv or tsv files.
|
> Execute SQL against structured text like csv or tsv files.
|
||||||
> More information: <https://github.com/dinedal/textql>.
|
> More information: <https://github.com/dinedal/textql>.
|
||||||
|
|
||||||
- Print the lines in the specified `.csv` file that match a SQL query to `stdout`:
|
- Print the lines in the specified `.csv` file that match an SQL query to `stdout`:
|
||||||
|
|
||||||
`textql -sql "{{SELECT * FROM filename}}" {{path/to/filename.csv}}`
|
`textql -sql "{{SELECT * FROM filename}}" {{path/to/filename.csv}}`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user