Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-24 00:12:28 +00:00
parent 6ad53288ef
commit 40892cc890
11 changed files with 49 additions and 15 deletions

View File

@@ -11,8 +11,8 @@ source: https://github.com/tldr-pages/tldr.git
- Display the physical size of an Android device's screen:
`wm {{size}}`
`wm size`
- Display the physical density of an Android device's screen:
`wm {{density}}`
`wm density`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# 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>.
- Run a single query:

View File

@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
`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}}`

View File

@@ -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]'}}"`
- Run a SQL script:
- Run an SQL script:
`duckdb -c ".read {{path/to/script.sql}}"`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# 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>.
- Unlock the bootloader:
@@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
`fastboot flash recovery {{path/to/file.img}}`
- Display connected devices:
- List connected devices:
`fastboot devices`

View File

@@ -5,18 +5,18 @@ source: https://github.com/tldr-pages/tldr.git
---
# fdroidcl
> F-Droid CLI client.
> Manage F-Droid apps of devices connected via ADB.
> More information: <https://github.com/mvdan/fdroidcl>.
- Fetch the F-Droid index:
`fdroidcl update`
- Display info about an app:
- Display information about an app:
`fdroidcl show {{app_id}}`
- Download an APK file:
- Download the APK file of an app:
`fdroidcl download {{app_id}}`
@@ -27,3 +27,11 @@ source: https://github.com/tldr-pages/tldr.git
- Install an app on a connected device:
`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}}`

View File

@@ -5,11 +5,11 @@ source: https://github.com/tldr-pages/tldr.git
---
# 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`.
> 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}}`

26
tldr/linux/aur Normal file
View 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`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> DNS enumeration tool.
> 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}}`

View File

@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
`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}}'`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Execute SQL against structured text like csv or tsv files.
> 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}}`