mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-18 10:01:08 +00:00
Update cheatsheets
This commit is contained in:
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Show at most 100 changes in all branches:
|
- Show at most 100 changes in all branches:
|
||||||
|
|
||||||
` gitk --max-count={{100}} --all`
|
`gitk --max-count=100 --all`
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Generate client codes when a project is not in `$GOPATH`:
|
- Generate client codes when a project is not in `$GOPATH`:
|
||||||
|
|
||||||
` kitex -module {{github.com/xx-org/xx-name}} {{path/to/IDL_file.thrift}}`
|
`kitex -module {{github.com/xx-org/xx-name}} {{path/to/IDL_file.thrift}}`
|
||||||
|
|
||||||
- Generate client codes with protobuf IDL:
|
- Generate client codes with protobuf IDL:
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Copy files changed within the past 24 hours to a remote from the local machine, asking the user to confirm each file:
|
- Copy files changed within the past 24 hours to a remote from the local machine, asking the user to confirm each file:
|
||||||
|
|
||||||
`rclone copy --interactive --max-age 24h {{remote_name}}:{{path/to/directory}} {{path/to/local_directory}} `
|
`rclone copy --interactive --max-age 24h {{remote_name}}:{{path/to/directory}} {{path/to/local_directory}}`
|
||||||
|
|
||||||
- Mirror a specific file or directory (Note: Unlike copy, sync removes files from the remote if it does not exist locally):
|
- Mirror a specific file or directory (Note: Unlike copy, sync removes files from the remote if it does not exist locally):
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
|
|
||||||
- Create a Python virtual environment:
|
- Create a Python virtual environment:
|
||||||
|
|
||||||
` python -m venv {{path/to/virtual_environment}}`
|
`python -m venv {{path/to/virtual_environment}}`
|
||||||
|
|
||||||
- Activate the virtual environment (Linux and macOS):
|
- Activate the virtual environment (Linux and macOS):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user